.'\n );\n }\n }\n if (staticClass) {\n el.staticClass = JSON.stringify(staticClass);\n }\n var classBinding = getBindingAttr(el, 'class', false /* getStatic */);\n if (classBinding) {\n el.classBinding = classBinding;\n }\n}\n\nfunction genData$1 (el) {\n var data = '';\n if (el.staticClass) {\n data += \"staticClass:\" + (el.staticClass) + \",\";\n }\n if (el.classBinding) {\n data += \"class:\" + (el.classBinding) + \",\";\n }\n return data\n}\n\nvar klass$1 = {\n staticKeys: ['staticClass'],\n transformNode: transformNode,\n genData: genData$1\n};\n\n/* */\n\nfunction transformNode$1 (el, options) {\n var warn = options.warn || baseWarn;\n var staticStyle = getAndRemoveAttr(el, 'style');\n if (staticStyle) {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production') {\n var expression = parseText(staticStyle, options.delimiters);\n if (expression) {\n warn(\n \"style=\\\"\" + staticStyle + \"\\\": \" +\n 'Interpolation inside attributes has been removed. ' +\n 'Use v-bind or the colon shorthand instead. For example, ' +\n 'instead of
, use
.'\n );\n }\n }\n el.staticStyle = JSON.stringify(parseStyleText(staticStyle));\n }\n\n var styleBinding = getBindingAttr(el, 'style', false /* getStatic */);\n if (styleBinding) {\n el.styleBinding = styleBinding;\n }\n}\n\nfunction genData$2 (el) {\n var data = '';\n if (el.staticStyle) {\n data += \"staticStyle:\" + (el.staticStyle) + \",\";\n }\n if (el.styleBinding) {\n data += \"style:(\" + (el.styleBinding) + \"),\";\n }\n return data\n}\n\nvar style$1 = {\n staticKeys: ['staticStyle'],\n transformNode: transformNode$1,\n genData: genData$2\n};\n\nvar modules$1 = [\n klass$1,\n style$1\n];\n\n/* */\n\nfunction text (el, dir) {\n if (dir.value) {\n addProp(el, 'textContent', (\"_s(\" + (dir.value) + \")\"));\n }\n}\n\n/* */\n\nfunction html (el, dir) {\n if (dir.value) {\n addProp(el, 'innerHTML', (\"_s(\" + (dir.value) + \")\"));\n }\n}\n\nvar directives$1 = {\n model: model,\n text: text,\n html: html\n};\n\n/* */\n\nvar baseOptions = {\n expectHTML: true,\n modules: modules$1,\n directives: directives$1,\n isPreTag: isPreTag,\n isUnaryTag: isUnaryTag,\n mustUseProp: mustUseProp,\n canBeLeftOpenTag: canBeLeftOpenTag,\n isReservedTag: isReservedTag,\n getTagNamespace: getTagNamespace,\n staticKeys: genStaticKeys(modules$1)\n};\n\nvar ref$1 = createCompiler(baseOptions);\nvar compileToFunctions = ref$1.compileToFunctions;\n\n/* */\n\nvar idToTemplate = cached(function (id) {\n var el = query(id);\n return el && el.innerHTML\n});\n\nvar mount = Vue$3.prototype.$mount;\nVue$3.prototype.$mount = function (\n el,\n hydrating\n) {\n el = el && query(el);\n\n /* istanbul ignore if */\n if (el === document.body || el === document.documentElement) {\n process.env.NODE_ENV !== 'production' && warn(\n \"Do not mount Vue to or - mount to normal elements instead.\"\n );\n return this\n }\n\n var options = this.$options;\n // resolve template/el and convert to render function\n if (!options.render) {\n var template = options.template;\n if (template) {\n if (typeof template === 'string') {\n if (template.charAt(0) === '#') {\n template = idToTemplate(template);\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && !template) {\n warn(\n (\"Template element not found or is empty: \" + (options.template)),\n this\n );\n }\n }\n } else if (template.nodeType) {\n template = template.innerHTML;\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn('invalid template option:' + template, this);\n }\n return this\n }\n } else if (el) {\n template = getOuterHTML(el);\n }\n if (template) {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && config.performance && mark) {\n mark('compile');\n }\n\n var ref = compileToFunctions(template, {\n shouldDecodeNewlines: shouldDecodeNewlines,\n delimiters: options.delimiters\n }, this);\n var render = ref.render;\n var staticRenderFns = ref.staticRenderFns;\n options.render = render;\n options.staticRenderFns = staticRenderFns;\n\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && config.performance && mark) {\n mark('compile end');\n measure(((this._name) + \" compile\"), 'compile', 'compile end');\n }\n }\n }\n return mount.call(this, el, hydrating)\n};\n\n/**\n * Get outerHTML of elements, taking care\n * of SVG elements in IE as well.\n */\nfunction getOuterHTML (el) {\n if (el.outerHTML) {\n return el.outerHTML\n } else {\n var container = document.createElement('div');\n container.appendChild(el.cloneNode(true));\n return container.innerHTML\n }\n}\n\nVue$3.compile = compileToFunctions;\n\nexport default Vue$3;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue/dist/vue.esm.js\n// module id = 25\n// module chunks = 0","import KkRoot from \"components/KkRoot\";\r\nimport xamatron from \"xamatron\";\r\nxamatron.ready(function () {\r\n new KkRoot().$mount(\"#root\");\r\n});\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/main.ts\n// module id = 27\n// module chunks = 0","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(utils.merge(defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/axios.js\n// module id = 28\n// module chunks = 0","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/cancel/CancelToken.js\n// module id = 29\n// module chunks = 0","'use strict';\n\nvar defaults = require('./../defaults');\nvar utils = require('./../utils');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = utils.merge({\n url: arguments[0]\n }, arguments[1]);\n }\n\n config = utils.merge(defaults, this.defaults, { method: 'get' }, config);\n config.method = config.method.toLowerCase();\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(utils.merge(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/core/Axios.js\n// module id = 30\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/core/InterceptorManager.js\n// module id = 31\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\nvar isAbsoluteURL = require('./../helpers/isAbsoluteURL');\nvar combineURLs = require('./../helpers/combineURLs');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Support baseURL config\n if (config.baseURL && !isAbsoluteURL(config.url)) {\n config.url = combineURLs(config.baseURL, config.url);\n }\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers || {}\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/core/dispatchRequest.js\n// module id = 32\n// module chunks = 0","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n error.request = request;\n error.response = response;\n return error;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/core/enhanceError.js\n// module id = 33\n// module chunks = 0","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n // Note: status is not exposed by XDomainRequest\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/core/settle.js\n// module id = 34\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/core/transformData.js\n// module id = 35\n// module chunks = 0","'use strict';\n\n// btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js\n\nvar chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\nfunction E() {\n this.message = 'String contains an invalid character';\n}\nE.prototype = new Error;\nE.prototype.code = 5;\nE.prototype.name = 'InvalidCharacterError';\n\nfunction btoa(input) {\n var str = String(input);\n var output = '';\n for (\n // initialize result and counter\n var block, charCode, idx = 0, map = chars;\n // if the next str index does not exist:\n // change the mapping table to \"=\"\n // check if d has no fractional digits\n str.charAt(idx | 0) || (map = '=', idx % 1);\n // \"8 - idx % 1 * 8\" generates the sequence 2, 4, 6, 8\n output += map.charAt(63 & block >> 8 - idx % 1 * 8)\n ) {\n charCode = str.charCodeAt(idx += 3 / 4);\n if (charCode > 0xFF) {\n throw new E();\n }\n block = block << 8 | charCode;\n }\n return output;\n}\n\nmodule.exports = btoa;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/helpers/btoa.js\n// module id = 36\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%40/gi, '@').\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n }\n\n if (!utils.isArray(val)) {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/helpers/buildURL.js\n// module id = 37\n// module chunks = 0","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/helpers/combineURLs.js\n// module id = 38\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/helpers/cookies.js\n// module id = 39\n// module chunks = 0","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/helpers/isAbsoluteURL.js\n// module id = 40\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/helpers/isURLSameOrigin.js\n// module id = 41\n// module chunks = 0","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/helpers/normalizeHeaderName.js\n// module id = 42\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/helpers/parseHeaders.js\n// module id = 43\n// module chunks = 0","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/axios/lib/helpers/spread.js\n// module id = 44\n// module chunks = 0","/*!\n * @overview es6-promise - a tiny implementation of Promises/A+.\n * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)\n * @license Licensed under MIT license\n * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE\n * @version v4.2.8+1e68dce6\n */\n\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n\ttypeof define === 'function' && define.amd ? define(factory) :\n\t(global.ES6Promise = factory());\n}(this, (function () { 'use strict';\n\nfunction objectOrFunction(x) {\n var type = typeof x;\n return x !== null && (type === 'object' || type === 'function');\n}\n\nfunction isFunction(x) {\n return typeof x === 'function';\n}\n\n\n\nvar _isArray = void 0;\nif (Array.isArray) {\n _isArray = Array.isArray;\n} else {\n _isArray = function (x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n };\n}\n\nvar isArray = _isArray;\n\nvar len = 0;\nvar vertxNext = void 0;\nvar customSchedulerFn = void 0;\n\nvar asap = function asap(callback, arg) {\n queue[len] = callback;\n queue[len + 1] = arg;\n len += 2;\n if (len === 2) {\n // If len is 2, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n if (customSchedulerFn) {\n customSchedulerFn(flush);\n } else {\n scheduleFlush();\n }\n }\n};\n\nfunction setScheduler(scheduleFn) {\n customSchedulerFn = scheduleFn;\n}\n\nfunction setAsap(asapFn) {\n asap = asapFn;\n}\n\nvar browserWindow = typeof window !== 'undefined' ? window : undefined;\nvar browserGlobal = browserWindow || {};\nvar BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nvar isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n// test for web worker but not in IE10\nvar isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';\n\n// node\nfunction useNextTick() {\n // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n // see https://github.com/cujojs/when/issues/410 for details\n return function () {\n return process.nextTick(flush);\n };\n}\n\n// vertx\nfunction useVertxTimer() {\n if (typeof vertxNext !== 'undefined') {\n return function () {\n vertxNext(flush);\n };\n }\n\n return useSetTimeout();\n}\n\nfunction useMutationObserver() {\n var iterations = 0;\n var observer = new BrowserMutationObserver(flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function () {\n node.data = iterations = ++iterations % 2;\n };\n}\n\n// web worker\nfunction useMessageChannel() {\n var channel = new MessageChannel();\n channel.port1.onmessage = flush;\n return function () {\n return channel.port2.postMessage(0);\n };\n}\n\nfunction useSetTimeout() {\n // Store setTimeout reference so es6-promise will be unaffected by\n // other code modifying setTimeout (like sinon.useFakeTimers())\n var globalSetTimeout = setTimeout;\n return function () {\n return globalSetTimeout(flush, 1);\n };\n}\n\nvar queue = new Array(1000);\nfunction flush() {\n for (var i = 0; i < len; i += 2) {\n var callback = queue[i];\n var arg = queue[i + 1];\n\n callback(arg);\n\n queue[i] = undefined;\n queue[i + 1] = undefined;\n }\n\n len = 0;\n}\n\nfunction attemptVertx() {\n try {\n var vertx = Function('return this')().require('vertx');\n vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return useVertxTimer();\n } catch (e) {\n return useSetTimeout();\n }\n}\n\nvar scheduleFlush = void 0;\n// Decide what async method to use to triggering processing of queued callbacks:\nif (isNode) {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else if (isWorker) {\n scheduleFlush = useMessageChannel();\n} else if (browserWindow === undefined && typeof require === 'function') {\n scheduleFlush = attemptVertx();\n} else {\n scheduleFlush = useSetTimeout();\n}\n\nfunction then(onFulfillment, onRejection) {\n var parent = this;\n\n var child = new this.constructor(noop);\n\n if (child[PROMISE_ID] === undefined) {\n makePromise(child);\n }\n\n var _state = parent._state;\n\n\n if (_state) {\n var callback = arguments[_state - 1];\n asap(function () {\n return invokeCallback(_state, child, callback, parent._result);\n });\n } else {\n subscribe(parent, child, onFulfillment, onRejection);\n }\n\n return child;\n}\n\n/**\n `Promise.resolve` returns a promise that will become resolved with the\n passed `value`. It is shorthand for the following:\n\n ```javascript\n let promise = new Promise(function(resolve, reject){\n resolve(1);\n });\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n let promise = Promise.resolve(1);\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n @method resolve\n @static\n @param {Any} value value that the returned promise will be resolved with\n Useful for tooling.\n @return {Promise} a promise that will become fulfilled with the given\n `value`\n*/\nfunction resolve$1(object) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (object && typeof object === 'object' && object.constructor === Constructor) {\n return object;\n }\n\n var promise = new Constructor(noop);\n resolve(promise, object);\n return promise;\n}\n\nvar PROMISE_ID = Math.random().toString(36).substring(2);\n\nfunction noop() {}\n\nvar PENDING = void 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\n\nfunction selfFulfillment() {\n return new TypeError(\"You cannot resolve a promise with itself\");\n}\n\nfunction cannotReturnOwn() {\n return new TypeError('A promises callback cannot return that same promise.');\n}\n\nfunction tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {\n try {\n then$$1.call(value, fulfillmentHandler, rejectionHandler);\n } catch (e) {\n return e;\n }\n}\n\nfunction handleForeignThenable(promise, thenable, then$$1) {\n asap(function (promise) {\n var sealed = false;\n var error = tryThen(then$$1, thenable, function (value) {\n if (sealed) {\n return;\n }\n sealed = true;\n if (thenable !== value) {\n resolve(promise, value);\n } else {\n fulfill(promise, value);\n }\n }, function (reason) {\n if (sealed) {\n return;\n }\n sealed = true;\n\n reject(promise, reason);\n }, 'Settle: ' + (promise._label || ' unknown promise'));\n\n if (!sealed && error) {\n sealed = true;\n reject(promise, error);\n }\n }, promise);\n}\n\nfunction handleOwnThenable(promise, thenable) {\n if (thenable._state === FULFILLED) {\n fulfill(promise, thenable._result);\n } else if (thenable._state === REJECTED) {\n reject(promise, thenable._result);\n } else {\n subscribe(thenable, undefined, function (value) {\n return resolve(promise, value);\n }, function (reason) {\n return reject(promise, reason);\n });\n }\n}\n\nfunction handleMaybeThenable(promise, maybeThenable, then$$1) {\n if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) {\n handleOwnThenable(promise, maybeThenable);\n } else {\n if (then$$1 === undefined) {\n fulfill(promise, maybeThenable);\n } else if (isFunction(then$$1)) {\n handleForeignThenable(promise, maybeThenable, then$$1);\n } else {\n fulfill(promise, maybeThenable);\n }\n }\n}\n\nfunction resolve(promise, value) {\n if (promise === value) {\n reject(promise, selfFulfillment());\n } else if (objectOrFunction(value)) {\n var then$$1 = void 0;\n try {\n then$$1 = value.then;\n } catch (error) {\n reject(promise, error);\n return;\n }\n handleMaybeThenable(promise, value, then$$1);\n } else {\n fulfill(promise, value);\n }\n}\n\nfunction publishRejection(promise) {\n if (promise._onerror) {\n promise._onerror(promise._result);\n }\n\n publish(promise);\n}\n\nfunction fulfill(promise, value) {\n if (promise._state !== PENDING) {\n return;\n }\n\n promise._result = value;\n promise._state = FULFILLED;\n\n if (promise._subscribers.length !== 0) {\n asap(publish, promise);\n }\n}\n\nfunction reject(promise, reason) {\n if (promise._state !== PENDING) {\n return;\n }\n promise._state = REJECTED;\n promise._result = reason;\n\n asap(publishRejection, promise);\n}\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n var _subscribers = parent._subscribers;\n var length = _subscribers.length;\n\n\n parent._onerror = null;\n\n _subscribers[length] = child;\n _subscribers[length + FULFILLED] = onFulfillment;\n _subscribers[length + REJECTED] = onRejection;\n\n if (length === 0 && parent._state) {\n asap(publish, parent);\n }\n}\n\nfunction publish(promise) {\n var subscribers = promise._subscribers;\n var settled = promise._state;\n\n if (subscribers.length === 0) {\n return;\n }\n\n var child = void 0,\n callback = void 0,\n detail = promise._result;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n if (child) {\n invokeCallback(settled, child, callback, detail);\n } else {\n callback(detail);\n }\n }\n\n promise._subscribers.length = 0;\n}\n\nfunction invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value = void 0,\n error = void 0,\n succeeded = true;\n\n if (hasCallback) {\n try {\n value = callback(detail);\n } catch (e) {\n succeeded = false;\n error = e;\n }\n\n if (promise === value) {\n reject(promise, cannotReturnOwn());\n return;\n }\n } else {\n value = detail;\n }\n\n if (promise._state !== PENDING) {\n // noop\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (succeeded === false) {\n reject(promise, error);\n } else if (settled === FULFILLED) {\n fulfill(promise, value);\n } else if (settled === REJECTED) {\n reject(promise, value);\n }\n}\n\nfunction initializePromise(promise, resolver) {\n try {\n resolver(function resolvePromise(value) {\n resolve(promise, value);\n }, function rejectPromise(reason) {\n reject(promise, reason);\n });\n } catch (e) {\n reject(promise, e);\n }\n}\n\nvar id = 0;\nfunction nextId() {\n return id++;\n}\n\nfunction makePromise(promise) {\n promise[PROMISE_ID] = id++;\n promise._state = undefined;\n promise._result = undefined;\n promise._subscribers = [];\n}\n\nfunction validationError() {\n return new Error('Array Methods must be provided an Array');\n}\n\nvar Enumerator = function () {\n function Enumerator(Constructor, input) {\n this._instanceConstructor = Constructor;\n this.promise = new Constructor(noop);\n\n if (!this.promise[PROMISE_ID]) {\n makePromise(this.promise);\n }\n\n if (isArray(input)) {\n this.length = input.length;\n this._remaining = input.length;\n\n this._result = new Array(this.length);\n\n if (this.length === 0) {\n fulfill(this.promise, this._result);\n } else {\n this.length = this.length || 0;\n this._enumerate(input);\n if (this._remaining === 0) {\n fulfill(this.promise, this._result);\n }\n }\n } else {\n reject(this.promise, validationError());\n }\n }\n\n Enumerator.prototype._enumerate = function _enumerate(input) {\n for (var i = 0; this._state === PENDING && i < input.length; i++) {\n this._eachEntry(input[i], i);\n }\n };\n\n Enumerator.prototype._eachEntry = function _eachEntry(entry, i) {\n var c = this._instanceConstructor;\n var resolve$$1 = c.resolve;\n\n\n if (resolve$$1 === resolve$1) {\n var _then = void 0;\n var error = void 0;\n var didError = false;\n try {\n _then = entry.then;\n } catch (e) {\n didError = true;\n error = e;\n }\n\n if (_then === then && entry._state !== PENDING) {\n this._settledAt(entry._state, i, entry._result);\n } else if (typeof _then !== 'function') {\n this._remaining--;\n this._result[i] = entry;\n } else if (c === Promise$1) {\n var promise = new c(noop);\n if (didError) {\n reject(promise, error);\n } else {\n handleMaybeThenable(promise, entry, _then);\n }\n this._willSettleAt(promise, i);\n } else {\n this._willSettleAt(new c(function (resolve$$1) {\n return resolve$$1(entry);\n }), i);\n }\n } else {\n this._willSettleAt(resolve$$1(entry), i);\n }\n };\n\n Enumerator.prototype._settledAt = function _settledAt(state, i, value) {\n var promise = this.promise;\n\n\n if (promise._state === PENDING) {\n this._remaining--;\n\n if (state === REJECTED) {\n reject(promise, value);\n } else {\n this._result[i] = value;\n }\n }\n\n if (this._remaining === 0) {\n fulfill(promise, this._result);\n }\n };\n\n Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) {\n var enumerator = this;\n\n subscribe(promise, undefined, function (value) {\n return enumerator._settledAt(FULFILLED, i, value);\n }, function (reason) {\n return enumerator._settledAt(REJECTED, i, reason);\n });\n };\n\n return Enumerator;\n}();\n\n/**\n `Promise.all` accepts an array of promises, and returns a new promise which\n is fulfilled with an array of fulfillment values for the passed promises, or\n rejected with the reason of the first passed promise to be rejected. It casts all\n elements of the passed iterable to promises as it runs this algorithm.\n\n Example:\n\n ```javascript\n let promise1 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n let promises = [ promise1, promise2, promise3 ];\n\n Promise.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n let promise1 = resolve(1);\n let promise2 = reject(new Error(\"2\"));\n let promise3 = reject(new Error(\"3\"));\n let promises = [ promise1, promise2, promise3 ];\n\n Promise.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @static\n @param {Array} entries array of promises\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n @static\n*/\nfunction all(entries) {\n return new Enumerator(this, entries).promise;\n}\n\n/**\n `Promise.race` returns a new promise which is settled in the same way as the\n first passed promise to settle.\n\n Example:\n\n ```javascript\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 2');\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // result === 'promise 2' because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `Promise.race` is deterministic in that only the state of the first\n settled promise matters. For example, even if other promises given to the\n `promises` array argument are resolved, but the first settled promise has\n become rejected before the other promises became fulfilled, the returned\n promise will become rejected:\n\n ```javascript\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error('promise 2'));\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // Code here never runs\n }, function(reason){\n // reason.message === 'promise 2' because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n An example real-world use case is implementing timeouts:\n\n ```javascript\n Promise.race([ajax('foo.json'), timeout(5000)])\n ```\n\n @method race\n @static\n @param {Array} promises array of promises to observe\n Useful for tooling.\n @return {Promise} a promise which settles in the same way as the first passed\n promise to settle.\n*/\nfunction race(entries) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (!isArray(entries)) {\n return new Constructor(function (_, reject) {\n return reject(new TypeError('You must pass an array to race.'));\n });\n } else {\n return new Constructor(function (resolve, reject) {\n var length = entries.length;\n for (var i = 0; i < length; i++) {\n Constructor.resolve(entries[i]).then(resolve, reject);\n }\n });\n }\n}\n\n/**\n `Promise.reject` returns a promise rejected with the passed `reason`.\n It is shorthand for the following:\n\n ```javascript\n let promise = new Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n let promise = Promise.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @static\n @param {Any} reason value that the returned promise will be rejected with.\n Useful for tooling.\n @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject$1(reason) {\n /*jshint validthis:true */\n var Constructor = this;\n var promise = new Constructor(noop);\n reject(promise, reason);\n return promise;\n}\n\nfunction needsResolver() {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n}\n\nfunction needsNew() {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n}\n\n/**\n Promise objects represent the eventual result of an asynchronous operation. The\n primary way of interacting with a promise is through its `then` method, which\n registers callbacks to receive either a promise's eventual value or the reason\n why the promise cannot be fulfilled.\n\n Terminology\n -----------\n\n - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n - `thenable` is an object or function that defines a `then` method.\n - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n - `exception` is a value that is thrown using the throw statement.\n - `reason` is a value that indicates why a promise was rejected.\n - `settled` the final resting state of a promise, fulfilled or rejected.\n\n A promise can be in one of three states: pending, fulfilled, or rejected.\n\n Promises that are fulfilled have a fulfillment value and are in the fulfilled\n state. Promises that are rejected have a rejection reason and are in the\n rejected state. A fulfillment value is never a thenable.\n\n Promises can also be said to *resolve* a value. If this value is also a\n promise, then the original promise's settled state will match the value's\n settled state. So a promise that *resolves* a promise that rejects will\n itself reject, and a promise that *resolves* a promise that fulfills will\n itself fulfill.\n\n\n Basic Usage:\n ------------\n\n ```js\n let promise = new Promise(function(resolve, reject) {\n // on success\n resolve(value);\n\n // on failure\n reject(reason);\n });\n\n promise.then(function(value) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Advanced Usage:\n ---------------\n\n Promises shine when abstracting away asynchronous interactions such as\n `XMLHttpRequest`s.\n\n ```js\n function getJSON(url) {\n return new Promise(function(resolve, reject){\n let xhr = new XMLHttpRequest();\n\n xhr.open('GET', url);\n xhr.onreadystatechange = handler;\n xhr.responseType = 'json';\n xhr.setRequestHeader('Accept', 'application/json');\n xhr.send();\n\n function handler() {\n if (this.readyState === this.DONE) {\n if (this.status === 200) {\n resolve(this.response);\n } else {\n reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n }\n }\n };\n });\n }\n\n getJSON('/posts.json').then(function(json) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Unlike callbacks, promises are great composable primitives.\n\n ```js\n Promise.all([\n getJSON('/posts'),\n getJSON('/comments')\n ]).then(function(values){\n values[0] // => postsJSON\n values[1] // => commentsJSON\n\n return values;\n });\n ```\n\n @class Promise\n @param {Function} resolver\n Useful for tooling.\n @constructor\n*/\n\nvar Promise$1 = function () {\n function Promise(resolver) {\n this[PROMISE_ID] = nextId();\n this._result = this._state = undefined;\n this._subscribers = [];\n\n if (noop !== resolver) {\n typeof resolver !== 'function' && needsResolver();\n this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n }\n }\n\n /**\n The primary way of interacting with a promise is through its `then` method,\n which registers callbacks to receive either a promise's eventual value or the\n reason why the promise cannot be fulfilled.\n ```js\n findUser().then(function(user){\n // user is available\n }, function(reason){\n // user is unavailable, and you are given the reason why\n });\n ```\n Chaining\n --------\n The return value of `then` is itself a promise. This second, 'downstream'\n promise is resolved with the return value of the first promise's fulfillment\n or rejection handler, or rejected if the handler throws an exception.\n ```js\n findUser().then(function (user) {\n return user.name;\n }, function (reason) {\n return 'default name';\n }).then(function (userName) {\n // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n // will be `'default name'`\n });\n findUser().then(function (user) {\n throw new Error('Found user, but still unhappy');\n }, function (reason) {\n throw new Error('`findUser` rejected and we're unhappy');\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'.\n });\n ```\n If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n ```js\n findUser().then(function (user) {\n throw new PedagogicalException('Upstream error');\n }).then(function (value) {\n // never reached\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // The `PedgagocialException` is propagated all the way down to here\n });\n ```\n Assimilation\n ------------\n Sometimes the value you want to propagate to a downstream promise can only be\n retrieved asynchronously. This can be achieved by returning a promise in the\n fulfillment or rejection handler. The downstream promise will then be pending\n until the returned promise is settled. This is called *assimilation*.\n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // The user's comments are now available\n });\n ```\n If the assimliated promise rejects, then the downstream promise will also reject.\n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // If `findCommentsByAuthor` fulfills, we'll have the value here\n }, function (reason) {\n // If `findCommentsByAuthor` rejects, we'll have the reason here\n });\n ```\n Simple Example\n --------------\n Synchronous Example\n ```javascript\n let result;\n try {\n result = findResult();\n // success\n } catch(reason) {\n // failure\n }\n ```\n Errback Example\n ```js\n findResult(function(result, err){\n if (err) {\n // failure\n } else {\n // success\n }\n });\n ```\n Promise Example;\n ```javascript\n findResult().then(function(result){\n // success\n }, function(reason){\n // failure\n });\n ```\n Advanced Example\n --------------\n Synchronous Example\n ```javascript\n let author, books;\n try {\n author = findAuthor();\n books = findBooksByAuthor(author);\n // success\n } catch(reason) {\n // failure\n }\n ```\n Errback Example\n ```js\n function foundBooks(books) {\n }\n function failure(reason) {\n }\n findAuthor(function(author, err){\n if (err) {\n failure(err);\n // failure\n } else {\n try {\n findBoooksByAuthor(author, function(books, err) {\n if (err) {\n failure(err);\n } else {\n try {\n foundBooks(books);\n } catch(reason) {\n failure(reason);\n }\n }\n });\n } catch(error) {\n failure(err);\n }\n // success\n }\n });\n ```\n Promise Example;\n ```javascript\n findAuthor().\n then(findBooksByAuthor).\n then(function(books){\n // found books\n }).catch(function(reason){\n // something went wrong\n });\n ```\n @method then\n @param {Function} onFulfilled\n @param {Function} onRejected\n Useful for tooling.\n @return {Promise}\n */\n\n /**\n `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n as the catch block of a try/catch statement.\n ```js\n function findAuthor(){\n throw new Error('couldn't find that author');\n }\n // synchronous\n try {\n findAuthor();\n } catch(reason) {\n // something went wrong\n }\n // async with promises\n findAuthor().catch(function(reason){\n // something went wrong\n });\n ```\n @method catch\n @param {Function} onRejection\n Useful for tooling.\n @return {Promise}\n */\n\n\n Promise.prototype.catch = function _catch(onRejection) {\n return this.then(null, onRejection);\n };\n\n /**\n `finally` will be invoked regardless of the promise's fate just as native\n try/catch/finally behaves\n \n Synchronous example:\n \n ```js\n findAuthor() {\n if (Math.random() > 0.5) {\n throw new Error();\n }\n return new Author();\n }\n \n try {\n return findAuthor(); // succeed or fail\n } catch(error) {\n return findOtherAuther();\n } finally {\n // always runs\n // doesn't affect the return value\n }\n ```\n \n Asynchronous example:\n \n ```js\n findAuthor().catch(function(reason){\n return findOtherAuther();\n }).finally(function(){\n // author was either found, or not\n });\n ```\n \n @method finally\n @param {Function} callback\n @return {Promise}\n */\n\n\n Promise.prototype.finally = function _finally(callback) {\n var promise = this;\n var constructor = promise.constructor;\n\n if (isFunction(callback)) {\n return promise.then(function (value) {\n return constructor.resolve(callback()).then(function () {\n return value;\n });\n }, function (reason) {\n return constructor.resolve(callback()).then(function () {\n throw reason;\n });\n });\n }\n\n return promise.then(callback, callback);\n };\n\n return Promise;\n}();\n\nPromise$1.prototype.then = then;\nPromise$1.all = all;\nPromise$1.race = race;\nPromise$1.resolve = resolve$1;\nPromise$1.reject = reject$1;\nPromise$1._setScheduler = setScheduler;\nPromise$1._setAsap = setAsap;\nPromise$1._asap = asap;\n\n/*global self*/\nfunction polyfill() {\n var local = void 0;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof self !== 'undefined') {\n local = self;\n } else {\n try {\n local = Function('return this')();\n } catch (e) {\n throw new Error('polyfill failed because global object is unavailable in this environment');\n }\n }\n\n var P = local.Promise;\n\n if (P) {\n var promiseToString = null;\n try {\n promiseToString = Object.prototype.toString.call(P.resolve());\n } catch (e) {\n // silently ignored\n }\n\n if (promiseToString === '[object Promise]' && !P.cast) {\n return;\n }\n }\n\n local.Promise = Promise$1;\n}\n\n// Strange compat..\nPromise$1.polyfill = polyfill;\nPromise$1.Promise = Promise$1;\n\nreturn Promise$1;\n\n})));\n\n\n\n//# sourceMappingURL=es6-promise.map\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/es6-promise/dist/es6-promise.js\n// module id = 45\n// module chunks = 0","/*!\n * Determine if an object is a Buffer\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nmodule.exports = function (obj) {\n return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\n}\n\nfunction isBuffer (obj) {\n return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer (obj) {\n return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/is-buffer/index.js\n// module id = 46\n// module chunks = 0","/*! *****************************************************************************\nCopyright (C) Microsoft. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\nvar Reflect;\n(function (Reflect) {\n // Metadata Proposal\n // https://rbuckton.github.io/reflect-metadata/\n (function (factory) {\n var root = typeof global === \"object\" ? global :\n typeof self === \"object\" ? self :\n typeof this === \"object\" ? this :\n Function(\"return this;\")();\n var exporter = makeExporter(Reflect);\n if (typeof root.Reflect === \"undefined\") {\n root.Reflect = Reflect;\n }\n else {\n exporter = makeExporter(root.Reflect, exporter);\n }\n factory(exporter);\n function makeExporter(target, previous) {\n return function (key, value) {\n if (typeof target[key] !== \"function\") {\n Object.defineProperty(target, key, { configurable: true, writable: true, value: value });\n }\n if (previous)\n previous(key, value);\n };\n }\n })(function (exporter) {\n var hasOwn = Object.prototype.hasOwnProperty;\n // feature test for Symbol support\n var supportsSymbol = typeof Symbol === \"function\";\n var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== \"undefined\" ? Symbol.toPrimitive : \"@@toPrimitive\";\n var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== \"undefined\" ? Symbol.iterator : \"@@iterator\";\n var supportsCreate = typeof Object.create === \"function\"; // feature test for Object.create support\n var supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support\n var downLevel = !supportsCreate && !supportsProto;\n var HashMap = {\n // create an object in dictionary mode (a.k.a. \"slow\" mode in v8)\n create: supportsCreate\n ? function () { return MakeDictionary(Object.create(null)); }\n : supportsProto\n ? function () { return MakeDictionary({ __proto__: null }); }\n : function () { return MakeDictionary({}); },\n has: downLevel\n ? function (map, key) { return hasOwn.call(map, key); }\n : function (map, key) { return key in map; },\n get: downLevel\n ? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; }\n : function (map, key) { return map[key]; },\n };\n // Load global or shim versions of Map, Set, and WeakMap\n var functionPrototype = Object.getPrototypeOf(Function);\n var usePolyfill = typeof process === \"object\" && process.env && process.env[\"REFLECT_METADATA_USE_MAP_POLYFILL\"] === \"true\";\n var _Map = !usePolyfill && typeof Map === \"function\" && typeof Map.prototype.entries === \"function\" ? Map : CreateMapPolyfill();\n var _Set = !usePolyfill && typeof Set === \"function\" && typeof Set.prototype.entries === \"function\" ? Set : CreateSetPolyfill();\n var _WeakMap = !usePolyfill && typeof WeakMap === \"function\" ? WeakMap : CreateWeakMapPolyfill();\n // [[Metadata]] internal slot\n // https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots\n var Metadata = new _WeakMap();\n /**\n * Applies a set of decorators to a property of a target object.\n * @param decorators An array of decorators.\n * @param target The target object.\n * @param propertyKey (Optional) The property key to decorate.\n * @param attributes (Optional) The property descriptor for the target key.\n * @remarks Decorators are applied in reverse order.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Example = Reflect.decorate(decoratorsArray, Example);\n *\n * // property (on constructor)\n * Reflect.decorate(decoratorsArray, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.decorate(decoratorsArray, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Object.defineProperty(Example, \"staticMethod\",\n * Reflect.decorate(decoratorsArray, Example, \"staticMethod\",\n * Object.getOwnPropertyDescriptor(Example, \"staticMethod\")));\n *\n * // method (on prototype)\n * Object.defineProperty(Example.prototype, \"method\",\n * Reflect.decorate(decoratorsArray, Example.prototype, \"method\",\n * Object.getOwnPropertyDescriptor(Example.prototype, \"method\")));\n *\n */\n function decorate(decorators, target, propertyKey, attributes) {\n if (!IsUndefined(propertyKey)) {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsObject(target))\n throw new TypeError();\n if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes))\n throw new TypeError();\n if (IsNull(attributes))\n attributes = undefined;\n propertyKey = ToPropertyKey(propertyKey);\n return DecorateProperty(decorators, target, propertyKey, attributes);\n }\n else {\n if (!IsArray(decorators))\n throw new TypeError();\n if (!IsConstructor(target))\n throw new TypeError();\n return DecorateConstructor(decorators, target);\n }\n }\n exporter(\"decorate\", decorate);\n // 4.1.2 Reflect.metadata(metadataKey, metadataValue)\n // https://rbuckton.github.io/reflect-metadata/#reflect.metadata\n /**\n * A default metadata decorator factory that can be used on a class, class member, or parameter.\n * @param metadataKey The key for the metadata entry.\n * @param metadataValue The value for the metadata entry.\n * @returns A decorator function.\n * @remarks\n * If `metadataKey` is already defined for the target and target key, the\n * metadataValue for that key will be overwritten.\n * @example\n *\n * // constructor\n * @Reflect.metadata(key, value)\n * class Example {\n * }\n *\n * // property (on constructor, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticProperty;\n * }\n *\n * // property (on prototype, TypeScript only)\n * class Example {\n * @Reflect.metadata(key, value)\n * property;\n * }\n *\n * // method (on constructor)\n * class Example {\n * @Reflect.metadata(key, value)\n * static staticMethod() { }\n * }\n *\n * // method (on prototype)\n * class Example {\n * @Reflect.metadata(key, value)\n * method() { }\n * }\n *\n */\n function metadata(metadataKey, metadataValue) {\n function decorator(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey))\n throw new TypeError();\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n return decorator;\n }\n exporter(\"metadata\", metadata);\n /**\n * Define a unique metadata entry on the target.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param metadataValue A value that contains attached metadata.\n * @param target The target object on which to define metadata.\n * @param propertyKey (Optional) The property key for the target.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * Reflect.defineMetadata(\"custom:annotation\", options, Example);\n *\n * // property (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticProperty\");\n *\n * // property (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"property\");\n *\n * // method (on constructor)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example, \"staticMethod\");\n *\n * // method (on prototype)\n * Reflect.defineMetadata(\"custom:annotation\", options, Example.prototype, \"method\");\n *\n * // decorator factory as metadata-producing annotation.\n * function MyAnnotation(options): Decorator {\n * return (target, key?) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\n * }\n *\n */\n function defineMetadata(metadataKey, metadataValue, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey);\n }\n exporter(\"defineMetadata\", defineMetadata);\n /**\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasMetadata\", hasMetadata);\n /**\n * Gets a value indicating whether the target object has the provided metadata key defined.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function hasOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"hasOwnMetadata\", hasOwnMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getMetadata\", getMetadata);\n /**\n * Gets the metadata value for the provided metadata key on the target object.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function getOwnMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey);\n }\n exporter(\"getOwnMetadata\", getOwnMetadata);\n /**\n * Gets the metadata keys defined on the target object or its prototype chain.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryMetadataKeys(target, propertyKey);\n }\n exporter(\"getMetadataKeys\", getMetadataKeys);\n /**\n * Gets the unique metadata keys defined on the target object.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns An array of unique metadata keys.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.getOwnMetadataKeys(Example);\n *\n * // property (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.getOwnMetadataKeys(Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.getOwnMetadataKeys(Example.prototype, \"method\");\n *\n */\n function getOwnMetadataKeys(target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n return OrdinaryOwnMetadataKeys(target, propertyKey);\n }\n exporter(\"getOwnMetadataKeys\", getOwnMetadataKeys);\n /**\n * Deletes the metadata entry from the target object with the provided key.\n * @param metadataKey A key used to store and retrieve metadata.\n * @param target The target object on which the metadata is defined.\n * @param propertyKey (Optional) The property key for the target.\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\n * @example\n *\n * class Example {\n * // property declarations are not part of ES6, though they are valid in TypeScript:\n * // static staticProperty;\n * // property;\n *\n * constructor(p) { }\n * static staticMethod(p) { }\n * method(p) { }\n * }\n *\n * // constructor\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example);\n *\n * // property (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticProperty\");\n *\n * // property (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"property\");\n *\n * // method (on constructor)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example, \"staticMethod\");\n *\n * // method (on prototype)\n * result = Reflect.deleteMetadata(\"custom:annotation\", Example.prototype, \"method\");\n *\n */\n function deleteMetadata(metadataKey, target, propertyKey) {\n if (!IsObject(target))\n throw new TypeError();\n if (!IsUndefined(propertyKey))\n propertyKey = ToPropertyKey(propertyKey);\n var metadataMap = GetOrCreateMetadataMap(target, propertyKey, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n if (!metadataMap.delete(metadataKey))\n return false;\n if (metadataMap.size > 0)\n return true;\n var targetMetadata = Metadata.get(target);\n targetMetadata.delete(propertyKey);\n if (targetMetadata.size > 0)\n return true;\n Metadata.delete(target);\n return true;\n }\n exporter(\"deleteMetadata\", deleteMetadata);\n function DecorateConstructor(decorators, target) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsConstructor(decorated))\n throw new TypeError();\n target = decorated;\n }\n }\n return target;\n }\n function DecorateProperty(decorators, target, propertyKey, descriptor) {\n for (var i = decorators.length - 1; i >= 0; --i) {\n var decorator = decorators[i];\n var decorated = decorator(target, propertyKey, descriptor);\n if (!IsUndefined(decorated) && !IsNull(decorated)) {\n if (!IsObject(decorated))\n throw new TypeError();\n descriptor = decorated;\n }\n }\n return descriptor;\n }\n function GetOrCreateMetadataMap(O, P, Create) {\n var targetMetadata = Metadata.get(O);\n if (IsUndefined(targetMetadata)) {\n if (!Create)\n return undefined;\n targetMetadata = new _Map();\n Metadata.set(O, targetMetadata);\n }\n var metadataMap = targetMetadata.get(P);\n if (IsUndefined(metadataMap)) {\n if (!Create)\n return undefined;\n metadataMap = new _Map();\n targetMetadata.set(P, metadataMap);\n }\n return metadataMap;\n }\n // 3.1.1.1 OrdinaryHasMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasmetadata\n function OrdinaryHasMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return true;\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryHasMetadata(MetadataKey, parent, P);\n return false;\n }\n // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata\n function OrdinaryHasOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return false;\n return ToBoolean(metadataMap.has(MetadataKey));\n }\n // 3.1.3.1 OrdinaryGetMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetmetadata\n function OrdinaryGetMetadata(MetadataKey, O, P) {\n var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn)\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (!IsNull(parent))\n return OrdinaryGetMetadata(MetadataKey, parent, P);\n return undefined;\n }\n // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata\n function OrdinaryGetOwnMetadata(MetadataKey, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return undefined;\n return metadataMap.get(MetadataKey);\n }\n // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata\n function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ true);\n metadataMap.set(MetadataKey, MetadataValue);\n }\n // 3.1.6.1 OrdinaryMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinarymetadatakeys\n function OrdinaryMetadataKeys(O, P) {\n var ownKeys = OrdinaryOwnMetadataKeys(O, P);\n var parent = OrdinaryGetPrototypeOf(O);\n if (parent === null)\n return ownKeys;\n var parentKeys = OrdinaryMetadataKeys(parent, P);\n if (parentKeys.length <= 0)\n return ownKeys;\n if (ownKeys.length <= 0)\n return parentKeys;\n var set = new _Set();\n var keys = [];\n for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) {\n var key = ownKeys_1[_i];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) {\n var key = parentKeys_1[_a];\n var hasKey = set.has(key);\n if (!hasKey) {\n set.add(key);\n keys.push(key);\n }\n }\n return keys;\n }\n // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)\n // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys\n function OrdinaryOwnMetadataKeys(O, P) {\n var keys = [];\n var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false);\n if (IsUndefined(metadataMap))\n return keys;\n var keysObj = metadataMap.keys();\n var iterator = GetIterator(keysObj);\n var k = 0;\n while (true) {\n var next = IteratorStep(iterator);\n if (!next) {\n keys.length = k;\n return keys;\n }\n var nextValue = IteratorValue(next);\n try {\n keys[k] = nextValue;\n }\n catch (e) {\n try {\n IteratorClose(iterator);\n }\n finally {\n throw e;\n }\n }\n k++;\n }\n }\n // 6 ECMAScript Data Typ0es and Values\n // https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values\n function Type(x) {\n if (x === null)\n return 1 /* Null */;\n switch (typeof x) {\n case \"undefined\": return 0 /* Undefined */;\n case \"boolean\": return 2 /* Boolean */;\n case \"string\": return 3 /* String */;\n case \"symbol\": return 4 /* Symbol */;\n case \"number\": return 5 /* Number */;\n case \"object\": return x === null ? 1 /* Null */ : 6 /* Object */;\n default: return 6 /* Object */;\n }\n }\n // 6.1.1 The Undefined Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type\n function IsUndefined(x) {\n return x === undefined;\n }\n // 6.1.2 The Null Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type\n function IsNull(x) {\n return x === null;\n }\n // 6.1.5 The Symbol Type\n // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type\n function IsSymbol(x) {\n return typeof x === \"symbol\";\n }\n // 6.1.7 The Object Type\n // https://tc39.github.io/ecma262/#sec-object-type\n function IsObject(x) {\n return typeof x === \"object\" ? x !== null : typeof x === \"function\";\n }\n // 7.1 Type Conversion\n // https://tc39.github.io/ecma262/#sec-type-conversion\n // 7.1.1 ToPrimitive(input [, PreferredType])\n // https://tc39.github.io/ecma262/#sec-toprimitive\n function ToPrimitive(input, PreferredType) {\n switch (Type(input)) {\n case 0 /* Undefined */: return input;\n case 1 /* Null */: return input;\n case 2 /* Boolean */: return input;\n case 3 /* String */: return input;\n case 4 /* Symbol */: return input;\n case 5 /* Number */: return input;\n }\n var hint = PreferredType === 3 /* String */ ? \"string\" : PreferredType === 5 /* Number */ ? \"number\" : \"default\";\n var exoticToPrim = GetMethod(input, toPrimitiveSymbol);\n if (exoticToPrim !== undefined) {\n var result = exoticToPrim.call(input, hint);\n if (IsObject(result))\n throw new TypeError();\n return result;\n }\n return OrdinaryToPrimitive(input, hint === \"default\" ? \"number\" : hint);\n }\n // 7.1.1.1 OrdinaryToPrimitive(O, hint)\n // https://tc39.github.io/ecma262/#sec-ordinarytoprimitive\n function OrdinaryToPrimitive(O, hint) {\n if (hint === \"string\") {\n var toString_1 = O.toString;\n if (IsCallable(toString_1)) {\n var result = toString_1.call(O);\n if (!IsObject(result))\n return result;\n }\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n else {\n var valueOf = O.valueOf;\n if (IsCallable(valueOf)) {\n var result = valueOf.call(O);\n if (!IsObject(result))\n return result;\n }\n var toString_2 = O.toString;\n if (IsCallable(toString_2)) {\n var result = toString_2.call(O);\n if (!IsObject(result))\n return result;\n }\n }\n throw new TypeError();\n }\n // 7.1.2 ToBoolean(argument)\n // https://tc39.github.io/ecma262/2016/#sec-toboolean\n function ToBoolean(argument) {\n return !!argument;\n }\n // 7.1.12 ToString(argument)\n // https://tc39.github.io/ecma262/#sec-tostring\n function ToString(argument) {\n return \"\" + argument;\n }\n // 7.1.14 ToPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-topropertykey\n function ToPropertyKey(argument) {\n var key = ToPrimitive(argument, 3 /* String */);\n if (IsSymbol(key))\n return key;\n return ToString(key);\n }\n // 7.2 Testing and Comparison Operations\n // https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations\n // 7.2.2 IsArray(argument)\n // https://tc39.github.io/ecma262/#sec-isarray\n function IsArray(argument) {\n return Array.isArray\n ? Array.isArray(argument)\n : argument instanceof Object\n ? argument instanceof Array\n : Object.prototype.toString.call(argument) === \"[object Array]\";\n }\n // 7.2.3 IsCallable(argument)\n // https://tc39.github.io/ecma262/#sec-iscallable\n function IsCallable(argument) {\n // NOTE: This is an approximation as we cannot check for [[Call]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.4 IsConstructor(argument)\n // https://tc39.github.io/ecma262/#sec-isconstructor\n function IsConstructor(argument) {\n // NOTE: This is an approximation as we cannot check for [[Construct]] internal method.\n return typeof argument === \"function\";\n }\n // 7.2.7 IsPropertyKey(argument)\n // https://tc39.github.io/ecma262/#sec-ispropertykey\n function IsPropertyKey(argument) {\n switch (Type(argument)) {\n case 3 /* String */: return true;\n case 4 /* Symbol */: return true;\n default: return false;\n }\n }\n // 7.3 Operations on Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-objects\n // 7.3.9 GetMethod(V, P)\n // https://tc39.github.io/ecma262/#sec-getmethod\n function GetMethod(V, P) {\n var func = V[P];\n if (func === undefined || func === null)\n return undefined;\n if (!IsCallable(func))\n throw new TypeError();\n return func;\n }\n // 7.4 Operations on Iterator Objects\n // https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects\n function GetIterator(obj) {\n var method = GetMethod(obj, iteratorSymbol);\n if (!IsCallable(method))\n throw new TypeError(); // from Call\n var iterator = method.call(obj);\n if (!IsObject(iterator))\n throw new TypeError();\n return iterator;\n }\n // 7.4.4 IteratorValue(iterResult)\n // https://tc39.github.io/ecma262/2016/#sec-iteratorvalue\n function IteratorValue(iterResult) {\n return iterResult.value;\n }\n // 7.4.5 IteratorStep(iterator)\n // https://tc39.github.io/ecma262/#sec-iteratorstep\n function IteratorStep(iterator) {\n var result = iterator.next();\n return result.done ? false : result;\n }\n // 7.4.6 IteratorClose(iterator, completion)\n // https://tc39.github.io/ecma262/#sec-iteratorclose\n function IteratorClose(iterator) {\n var f = iterator[\"return\"];\n if (f)\n f.call(iterator);\n }\n // 9.1 Ordinary Object Internal Methods and Internal Slots\n // https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots\n // 9.1.1.1 OrdinaryGetPrototypeOf(O)\n // https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof\n function OrdinaryGetPrototypeOf(O) {\n var proto = Object.getPrototypeOf(O);\n if (typeof O !== \"function\" || O === functionPrototype)\n return proto;\n // TypeScript doesn't set __proto__ in ES5, as it's non-standard.\n // Try to determine the superclass constructor. Compatible implementations\n // must either set __proto__ on a subclass constructor to the superclass constructor,\n // or ensure each class has a valid `constructor` property on its prototype that\n // points back to the constructor.\n // If this is not the same as Function.[[Prototype]], then this is definately inherited.\n // This is the case when in ES6 or when using __proto__ in a compatible browser.\n if (proto !== functionPrototype)\n return proto;\n // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.\n var prototype = O.prototype;\n var prototypeProto = prototype && Object.getPrototypeOf(prototype);\n if (prototypeProto == null || prototypeProto === Object.prototype)\n return proto;\n // If the constructor was not a function, then we cannot determine the heritage.\n var constructor = prototypeProto.constructor;\n if (typeof constructor !== \"function\")\n return proto;\n // If we have some kind of self-reference, then we cannot determine the heritage.\n if (constructor === O)\n return proto;\n // we have a pretty good guess at the heritage.\n return constructor;\n }\n // naive Map shim\n function CreateMapPolyfill() {\n var cacheSentinel = {};\n var arraySentinel = [];\n var MapIterator = /** @class */ (function () {\n function MapIterator(keys, values, selector) {\n this._index = 0;\n this._keys = keys;\n this._values = values;\n this._selector = selector;\n }\n MapIterator.prototype[\"@@iterator\"] = function () { return this; };\n MapIterator.prototype[iteratorSymbol] = function () { return this; };\n MapIterator.prototype.next = function () {\n var index = this._index;\n if (index >= 0 && index < this._keys.length) {\n var result = this._selector(this._keys[index], this._values[index]);\n if (index + 1 >= this._keys.length) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n else {\n this._index++;\n }\n return { value: result, done: false };\n }\n return { value: undefined, done: true };\n };\n MapIterator.prototype.throw = function (error) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n throw error;\n };\n MapIterator.prototype.return = function (value) {\n if (this._index >= 0) {\n this._index = -1;\n this._keys = arraySentinel;\n this._values = arraySentinel;\n }\n return { value: value, done: true };\n };\n return MapIterator;\n }());\n return /** @class */ (function () {\n function Map() {\n this._keys = [];\n this._values = [];\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n Object.defineProperty(Map.prototype, \"size\", {\n get: function () { return this._keys.length; },\n enumerable: true,\n configurable: true\n });\n Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };\n Map.prototype.get = function (key) {\n var index = this._find(key, /*insert*/ false);\n return index >= 0 ? this._values[index] : undefined;\n };\n Map.prototype.set = function (key, value) {\n var index = this._find(key, /*insert*/ true);\n this._values[index] = value;\n return this;\n };\n Map.prototype.delete = function (key) {\n var index = this._find(key, /*insert*/ false);\n if (index >= 0) {\n var size = this._keys.length;\n for (var i = index + 1; i < size; i++) {\n this._keys[i - 1] = this._keys[i];\n this._values[i - 1] = this._values[i];\n }\n this._keys.length--;\n this._values.length--;\n if (key === this._cacheKey) {\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n }\n return true;\n }\n return false;\n };\n Map.prototype.clear = function () {\n this._keys.length = 0;\n this._values.length = 0;\n this._cacheKey = cacheSentinel;\n this._cacheIndex = -2;\n };\n Map.prototype.keys = function () { return new MapIterator(this._keys, this._values, getKey); };\n Map.prototype.values = function () { return new MapIterator(this._keys, this._values, getValue); };\n Map.prototype.entries = function () { return new MapIterator(this._keys, this._values, getEntry); };\n Map.prototype[\"@@iterator\"] = function () { return this.entries(); };\n Map.prototype[iteratorSymbol] = function () { return this.entries(); };\n Map.prototype._find = function (key, insert) {\n if (this._cacheKey !== key) {\n this._cacheIndex = this._keys.indexOf(this._cacheKey = key);\n }\n if (this._cacheIndex < 0 && insert) {\n this._cacheIndex = this._keys.length;\n this._keys.push(key);\n this._values.push(undefined);\n }\n return this._cacheIndex;\n };\n return Map;\n }());\n function getKey(key, _) {\n return key;\n }\n function getValue(_, value) {\n return value;\n }\n function getEntry(key, value) {\n return [key, value];\n }\n }\n // naive Set shim\n function CreateSetPolyfill() {\n return /** @class */ (function () {\n function Set() {\n this._map = new _Map();\n }\n Object.defineProperty(Set.prototype, \"size\", {\n get: function () { return this._map.size; },\n enumerable: true,\n configurable: true\n });\n Set.prototype.has = function (value) { return this._map.has(value); };\n Set.prototype.add = function (value) { return this._map.set(value, value), this; };\n Set.prototype.delete = function (value) { return this._map.delete(value); };\n Set.prototype.clear = function () { this._map.clear(); };\n Set.prototype.keys = function () { return this._map.keys(); };\n Set.prototype.values = function () { return this._map.values(); };\n Set.prototype.entries = function () { return this._map.entries(); };\n Set.prototype[\"@@iterator\"] = function () { return this.keys(); };\n Set.prototype[iteratorSymbol] = function () { return this.keys(); };\n return Set;\n }());\n }\n // naive WeakMap shim\n function CreateWeakMapPolyfill() {\n var UUID_SIZE = 16;\n var keys = HashMap.create();\n var rootKey = CreateUniqueKey();\n return /** @class */ (function () {\n function WeakMap() {\n this._key = CreateUniqueKey();\n }\n WeakMap.prototype.has = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.has(table, this._key) : false;\n };\n WeakMap.prototype.get = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? HashMap.get(table, this._key) : undefined;\n };\n WeakMap.prototype.set = function (target, value) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ true);\n table[this._key] = value;\n return this;\n };\n WeakMap.prototype.delete = function (target) {\n var table = GetOrCreateWeakMapTable(target, /*create*/ false);\n return table !== undefined ? delete table[this._key] : false;\n };\n WeakMap.prototype.clear = function () {\n // NOTE: not a real clear, just makes the previous data unreachable\n this._key = CreateUniqueKey();\n };\n return WeakMap;\n }());\n function CreateUniqueKey() {\n var key;\n do\n key = \"@@WeakMap@@\" + CreateUUID();\n while (HashMap.has(keys, key));\n keys[key] = true;\n return key;\n }\n function GetOrCreateWeakMapTable(target, create) {\n if (!hasOwn.call(target, rootKey)) {\n if (!create)\n return undefined;\n Object.defineProperty(target, rootKey, { value: HashMap.create() });\n }\n return target[rootKey];\n }\n function FillRandomBytes(buffer, size) {\n for (var i = 0; i < size; ++i)\n buffer[i] = Math.random() * 0xff | 0;\n return buffer;\n }\n function GenRandomBytes(size) {\n if (typeof Uint8Array === \"function\") {\n if (typeof crypto !== \"undefined\")\n return crypto.getRandomValues(new Uint8Array(size));\n if (typeof msCrypto !== \"undefined\")\n return msCrypto.getRandomValues(new Uint8Array(size));\n return FillRandomBytes(new Uint8Array(size), size);\n }\n return FillRandomBytes(new Array(size), size);\n }\n function CreateUUID() {\n var data = GenRandomBytes(UUID_SIZE);\n // mark as random - RFC 4122 § 4.4\n data[6] = data[6] & 0x4f | 0x40;\n data[8] = data[8] & 0xbf | 0x80;\n var result = \"\";\n for (var offset = 0; offset < UUID_SIZE; ++offset) {\n var byte = data[offset];\n if (offset === 4 || offset === 6 || offset === 8)\n result += \"-\";\n if (byte < 16)\n result += \"0\";\n result += byte.toString(16).toLowerCase();\n }\n return result;\n }\n }\n // uses a heuristic used by v8 and chakra to force an object into dictionary mode.\n function MakeDictionary(obj) {\n obj.__ = undefined;\n delete obj.__;\n return obj;\n }\n });\n})(Reflect || (Reflect = {}));\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/reflect-metadata/Reflect.js\n// module id = 47\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component, Prop } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport axios from \"axios\";\r\nvar EventParticipantTopList = /** @class */ (function (_super) {\r\n tslib_1.__extends(EventParticipantTopList, _super);\r\n function EventParticipantTopList() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.loading = true;\r\n _this.store = store;\r\n return _this;\r\n }\r\n EventParticipantTopList.prototype.created = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var _a;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n _a = this;\r\n return [4 /*yield*/, axios.get(\"sponsors/event-sponsorships/\" + this.event.eventId)];\r\n case 1:\r\n _a.sponsorships = (_b.sent()).data;\r\n this.userPosition = this.sponsorships.findIndex(function (s) { return s.userId === store.currentUser.userId; });\r\n this.loading = false;\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n tslib_1.__decorate([\r\n Prop({ default: 10 }),\r\n tslib_1.__metadata(\"design:type\", Number)\r\n ], EventParticipantTopList.prototype, \"numTop\", void 0);\r\n tslib_1.__decorate([\r\n Prop(),\r\n tslib_1.__metadata(\"design:type\", Object)\r\n ], EventParticipantTopList.prototype, \"event\", void 0);\r\n EventParticipantTopList = tslib_1.__decorate([\r\n Component\r\n ], EventParticipantTopList);\r\n return EventParticipantTopList;\r\n}(Vue));\r\nexport default EventParticipantTopList;\r\nVue.component(\"kk-event-participant-top-list\", EventParticipantTopList);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/components/EventParticipantTopList.vue\n// module id = 48\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component, Prop } from \"vue-property-decorator\";\r\nvar KkGenericPopup = /** @class */ (function (_super) {\r\n tslib_1.__extends(KkGenericPopup, _super);\r\n function KkGenericPopup() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n KkGenericPopup.prototype.close = function () {\r\n this.$emit('close');\r\n };\r\n tslib_1.__decorate([\r\n Prop(),\r\n tslib_1.__metadata(\"design:type\", String)\r\n ], KkGenericPopup.prototype, \"title\", void 0);\r\n tslib_1.__decorate([\r\n Prop({ default: false }),\r\n tslib_1.__metadata(\"design:type\", Boolean)\r\n ], KkGenericPopup.prototype, \"visible\", void 0);\r\n KkGenericPopup = tslib_1.__decorate([\r\n Component\r\n ], KkGenericPopup);\r\n return KkGenericPopup;\r\n}(Vue));\r\nexport default KkGenericPopup;\r\nVue.component(\"kk-generic-popup\", KkGenericPopup);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/components/KkGenericPopup.vue\n// module id = 49\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nvar KkPopup = /** @class */ (function (_super) {\r\n tslib_1.__extends(KkPopup, _super);\r\n function KkPopup() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n _this.p = _this.store.popup;\r\n return _this;\r\n }\r\n KkPopup = tslib_1.__decorate([\r\n Component\r\n ], KkPopup);\r\n return KkPopup;\r\n}(Vue));\r\nexport default KkPopup;\r\nVue.component('kk-popup', KkPopup);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/components/KkPopup.vue\n// module id = 50\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport \"es6-promise\";\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport axios from \"axios\";\r\nimport VueI18n from \"vue-i18n\";\r\nimport VueRouter from \"vue-router\";\r\nimport Mixins from \"vue-mixins\";\r\nimport xamatron from \"xamatron\";\r\nimport \"components\";\r\nimport i18n from \"i18n\";\r\nimport { routes } from \"views\";\r\nimport { store } from \"store\";\r\nimport { getQueryStringArgs } from \"common\";\r\nimport \"../components/KkPopup\";\r\nVue.mixin(Mixins);\r\nVue.use(VueRouter);\r\nVue.use(VueI18n);\r\nvar KkRoot = /** @class */ (function (_super) {\r\n tslib_1.__extends(KkRoot, _super);\r\n function KkRoot() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n return _this;\r\n }\r\n Object.defineProperty(KkRoot.prototype, \"currentUser\", {\r\n get: function () {\r\n return store.currentUser;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n KkRoot.prototype.getSiteUrl = function (path) {\r\n var baseUrl = \"https://kunniakierros.fi/\" + this.$i18n.locale + \"/\";\r\n return baseUrl + path;\r\n };\r\n KkRoot.prototype.created = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var _this = this;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n store.identity = {\r\n deviceId: this.getDeviceId(),\r\n accessToken: localStorage.getItem(\"accessToken\") || null,\r\n };\r\n xamatron.setBackButtonHandler(function () { return _this.back(); });\r\n xamatron.initialNotification;\r\n this.initAxios();\r\n // this.$router.push(store.identity.accessToken ? \"/home\" : \"/login\");\r\n this.$router.push(store.identity.accessToken ? \"/home\" : \"/start\");\r\n return [4 /*yield*/, this.privacyPopup()];\r\n case 1:\r\n _a.sent();\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n KkRoot.prototype.privacyPopup = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var showCookieInfo;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, axios.get(\"applicationsettings/cookie-info-status/\" + store.identity.deviceId)];\r\n case 1:\r\n showCookieInfo = (_a.sent()).data.showCookieInfo;\r\n if (showCookieInfo) {\r\n store.popup.title = \"\";\r\n store.popup.description = this.$t(\"loginView.cookieInfo\");\r\n store.popup.visible = true;\r\n }\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n KkRoot.prototype.initAxios = function () {\r\n var _this = this;\r\n axios.defaults.baseURL = getQueryStringArgs().apiurl || \"https://kunniakierros.fi/api/v1/\";\r\n axios.interceptors.request.use(function (config) {\r\n if (store.identity.accessToken)\r\n config.headers[\"Authorization\"] = \"AccessToken \" + store.identity.deviceId + \" \" + store.identity.accessToken;\r\n return config;\r\n });\r\n axios.interceptors.response.use(null, function (err) {\r\n if (err.response.status == 401) {\r\n localStorage.removeItem(\"accessToken\");\r\n // alert(\"User authentication expired.\");\r\n location.reload();\r\n store.popup.title = _this.$t(\"loginView.authErrorTitle\");\r\n store.popup.description = _this.$t(\"loginView.authErrorDescription\");\r\n store.popup.visible = true;\r\n }\r\n return Promise.reject(err);\r\n });\r\n };\r\n KkRoot.prototype.back = function () {\r\n if (this.$route.name == \"HomeView\" || this.$route.name == \"Start\")\r\n xamatron.exitApplication();\r\n else\r\n this.$router.go(-1);\r\n };\r\n KkRoot.prototype.getDeviceId = function () {\r\n var id = localStorage.getItem(\"deviceId\");\r\n if (!id) {\r\n id = tslib_1.__spread(Array(32)).map(function (i) { return Math.floor(Math.random() * 16).toString(16); }).join(\"\");\r\n localStorage.setItem(\"deviceId\", id);\r\n }\r\n return id;\r\n };\r\n KkRoot = tslib_1.__decorate([\r\n Component({\r\n router: new VueRouter({\r\n mode: \"abstract\",\r\n linkActiveClass: \"active\",\r\n routes: routes\r\n }),\r\n i18n: new VueI18n(tslib_1.__assign({ locale: \"fi\", fallbackLocale: \"fi\" }, i18n))\r\n })\r\n ], KkRoot);\r\n return KkRoot;\r\n}(Vue));\r\nexport default KkRoot;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/components/KkRoot.vue\n// module id = 51\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nvar KkSpinner = /** @class */ (function (_super) {\r\n tslib_1.__extends(KkSpinner, _super);\r\n function KkSpinner() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n KkSpinner.prototype.created = function () {\r\n };\r\n KkSpinner = tslib_1.__decorate([\r\n Component\r\n ], KkSpinner);\r\n return KkSpinner;\r\n}(Vue));\r\nexport default KkSpinner;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/components/KkSpinner.vue\n// module id = 52\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component, Prop } from \"vue-property-decorator\";\r\nimport { isNotificationAllowed, isInvitationAllowed } from \"common\";\r\nimport { store } from \"store\";\r\nvar SponsorListItem = /** @class */ (function (_super) {\r\n tslib_1.__extends(SponsorListItem, _super);\r\n function SponsorListItem() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.s = _this.sponsor;\r\n // TODO: use mixin instead?\r\n _this.isNotificationAllowed = isNotificationAllowed;\r\n _this.isInvitationAllowed = isInvitationAllowed;\r\n return _this;\r\n }\r\n SponsorListItem.prototype.dateDisplay = function (d) {\r\n if (!d)\r\n return \"\";\r\n return this.$d(new Date(d));\r\n };\r\n Object.defineProperty(SponsorListItem.prototype, \"canSendBill\", {\r\n get: function () {\r\n return store.selectedEvent.eventParticipant.canSendBill;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n tslib_1.__decorate([\r\n Prop(),\r\n tslib_1.__metadata(\"design:type\", Object)\r\n ], SponsorListItem.prototype, \"sponsor\", void 0);\r\n SponsorListItem = tslib_1.__decorate([\r\n Component\r\n ], SponsorListItem);\r\n return SponsorListItem;\r\n}(Vue));\r\nexport default SponsorListItem;\r\nVue.component('kk-sponsor-list-item', SponsorListItem);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/components/SponsorListItem.vue\n// module id = 53\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport axios from \"axios\";\r\nvar AboutKKView = /** @class */ (function (_super) {\r\n tslib_1.__extends(AboutKKView, _super);\r\n function AboutKKView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n _this.description = \"\";\r\n return _this;\r\n }\r\n AboutKKView.prototype.routed = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var aboutKK;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n store.page.showTopNav = true;\r\n return [4 /*yield*/, axios.get(\"applicationsettings/description\", { params: { locale: this.$i18n.locale } })];\r\n case 1:\r\n aboutKK = (_a.sent()).data;\r\n this.description = aboutKK.description;\r\n store.page.title = aboutKK.title;\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n AboutKKView.prototype.signUp = function () {\r\n };\r\n AboutKKView = tslib_1.__decorate([\r\n Component\r\n ], AboutKKView);\r\n return AboutKKView;\r\n}(Vue));\r\nexport default AboutKKView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/AboutKKView.vue\n// module id = 54\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport axios from \"axios\";\r\nvar AddSponsorView = /** @class */ (function (_super) {\r\n tslib_1.__extends(AddSponsorView, _super);\r\n function AddSponsorView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.sponsorAdded = false;\r\n _this.banks = null;\r\n _this.sponsor = {\r\n sponsorId: null,\r\n firstname: null,\r\n lastname: null,\r\n fullName: null,\r\n email: null,\r\n sponsorType: \"Private\",\r\n companyName: null,\r\n payment: null,\r\n paymentMethod: \"Manual\",\r\n billSentOn: null,\r\n participationStatus: \"Participates\",\r\n notificationSentOn: null,\r\n numNotificationsSent: 0,\r\n shouldPay: null,\r\n paid: 0,\r\n estimatedPayment: null,\r\n eventParticipantId: store.selectedEvent.eventParticipant.eventParticipantId,\r\n streetAddress: \"\",\r\n zipCode: \"\",\r\n city: \"\",\r\n sendingEmail: false,\r\n editingEmail: false,\r\n info: null,\r\n preferredBillingMethod: \"Email\",\r\n eInvoicePaymentAddress: \"\",\r\n };\r\n _this.store = store;\r\n return _this;\r\n }\r\n AddSponsorView.prototype.routed = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var _a;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n _a = this;\r\n return [4 /*yield*/, axios.get(\"banks\")];\r\n case 1:\r\n _a.banks = (_b.sent()).data;\r\n this.sponsorAdded = false;\r\n store.page.title = this.$t(\"addSponsorView.title\");\r\n store.page.showTopNav = true;\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n AddSponsorView.prototype.billingMethodChanged = function () {\r\n };\r\n Object.defineProperty(AddSponsorView.prototype, \"minPayment\", {\r\n get: function () {\r\n if (this.sponsor.paymentMethod == \"Manual\")\r\n return store.globalSettings.paymentMinManual;\r\n else\r\n return store.globalSettings.paymentMinPerRepeat;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AddSponsorView.prototype, \"isValidatedForSave\", {\r\n get: function () {\r\n var _this = this;\r\n if (!this.sponsor.payment || this.sponsor.payment < this.minPayment)\r\n return false;\r\n // if (this.isDuplicateSponsor)\r\n // return false;\r\n var requiredFields = [];\r\n if (this.sponsor.sponsorType === \"Private\") {\r\n requiredFields = [\r\n this.sponsor.firstname,\r\n this.sponsor.lastname,\r\n ];\r\n }\r\n if (this.sponsor.sponsorType === \"Company\")\r\n requiredFields = [this.sponsor.companyName];\r\n switch (this.sponsor.preferredBillingMethod) {\r\n case \"Mail\":\r\n requiredFields.push(this.sponsor.streetAddress, this.sponsor.city, this.sponsor.zipCode);\r\n break;\r\n case \"Email\":\r\n requiredFields.push(this.sponsor.email);\r\n break;\r\n case \"EInvoice\":\r\n var selectedBank = this.banks.find(function (b) { return b.bankId == _this.sponsor.bankId; });\r\n var bankName = null;\r\n if (selectedBank)\r\n bankName = selectedBank.name;\r\n requiredFields.push(bankName, this.sponsor.eInvoicePaymentAddress);\r\n break;\r\n }\r\n return this.validateTextInputs(requiredFields);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n AddSponsorView.prototype.validateTextInputs = function (fields) {\r\n var isValidTextInput = function (s) { return s && s.trim().length > 0; };\r\n return fields\r\n .map(isValidTextInput)\r\n .every(function (x) { return x === true; });\r\n };\r\n AddSponsorView.prototype.addSponsor = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var sponsorId, newSponsor, e_1;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 3, , 4]);\r\n return [4 /*yield*/, axios.post(\"sponsors\", this.sponsor, { params: { eventId: store.selectedEvent.eventId } })];\r\n case 1:\r\n sponsorId = (_a.sent()).data.sponsorId;\r\n return [4 /*yield*/, axios.get(\"sponsors/\" + sponsorId)];\r\n case 2:\r\n newSponsor = (_a.sent()).data;\r\n store.selectedEvent.sponsors.push(newSponsor);\r\n this.sponsorAdded = true;\r\n this.$router.push(\"/sponsors?sponsorAdded\");\r\n return [3 /*break*/, 4];\r\n case 3:\r\n e_1 = _a.sent();\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n AddSponsorView.prototype.perRepeatPaymentSelected = function (e) {\r\n var value = e.target.value;\r\n if (value === \"PerRepeat\" && this.sponsor.payment)\r\n this.sponsor.payment = 0;\r\n };\r\n Object.defineProperty(AddSponsorView.prototype, \"isDuplicateSponsor\", {\r\n get: function () {\r\n var _this = this;\r\n if (this.sponsor.email === null)\r\n return false;\r\n return store.selectedEvent.sponsors.find(function (s) { return s.email === _this.sponsor.email && s.sponsorType === _this.sponsor.sponsorType; }) != null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n AddSponsorView.prototype.zipCodeChanged = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var e_2, _a, http, locations, cityName, language, locations_1, locations_1_1, l, postalCodeName, municipality;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n http = axios.create({\r\n baseURL: \"https://locationservice.posti.com\",\r\n });\r\n return [4 /*yield*/, http.get(\"location?zipCode=\" + this.sponsor.zipCode + \"&types=POBOX&types=PICKUPPOINT&types=POSTOFFICE\")];\r\n case 1:\r\n locations = (_b.sent()).data.locations;\r\n locations.sort(function (a, b) {\r\n if (a.type == \"POSTOFFICE\")\r\n return -1;\r\n else if (a.type == \"PICKUPPOINT\")\r\n return -1;\r\n return 1;\r\n });\r\n cityName = \"\";\r\n language = this.$i18n.locale == \"se\" ? \"sv\" : this.$i18n.locale;\r\n try {\r\n for (locations_1 = tslib_1.__values(locations), locations_1_1 = locations_1.next(); !locations_1_1.done; locations_1_1 = locations_1.next()) {\r\n l = locations_1_1.value;\r\n postalCodeName = l.address[language].postalCodeName;\r\n municipality = l.address[language].municipality;\r\n if (postalCodeName) {\r\n cityName = postalCodeName;\r\n break;\r\n }\r\n else if (municipality)\r\n cityName = municipality;\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (locations_1_1 && !locations_1_1.done && (_a = locations_1.return)) _a.call(locations_1);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n this.sponsor.city = cityName;\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n AddSponsorView = tslib_1.__decorate([\r\n Component\r\n ], AddSponsorView);\r\n return AddSponsorView;\r\n}(Vue));\r\nexport default AddSponsorView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/AddSponsorView.vue\n// module id = 55\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component, Prop } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport axios from \"axios\";\r\n// TODO: rename to TopOrganizationsView\r\nvar AllStatisticsView = /** @class */ (function (_super) {\r\n tslib_1.__extends(AllStatisticsView, _super);\r\n function AllStatisticsView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n _this.loading = true;\r\n _this.userOrganization = null;\r\n return _this;\r\n }\r\n AllStatisticsView.prototype.routed = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var currentYear, allOrganizations;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n currentYear = new Date().getFullYear();\r\n return [4 /*yield*/, axios.get(\"organizations/all\", {\r\n params: {\r\n eventsFromYear: currentYear,\r\n includeZeroAmountSponsorships: true,\r\n }\r\n })];\r\n case 1:\r\n allOrganizations = (_a.sent()).data;\r\n allOrganizations.sort(function (a, b) { return b.totalSponsorshipAmount - a.totalSponsorshipAmount; });\r\n this.allOrganizations = allOrganizations;\r\n this.userOrganization = allOrganizations.find(function (o) { return o.organizationId == store.selectedOrganization.organizationId; });\r\n this.userOrganizationPos = allOrganizations.indexOf(this.userOrganization);\r\n this.loading = false;\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n AllStatisticsView.prototype.getCurrentSeasonYears = function () {\r\n var year = new Date(Date.now()).getFullYear();\r\n return year + \" - \" + (year + 1);\r\n };\r\n tslib_1.__decorate([\r\n Prop(),\r\n tslib_1.__metadata(\"design:type\", Number)\r\n ], AllStatisticsView.prototype, \"numTop\", void 0);\r\n AllStatisticsView = tslib_1.__decorate([\r\n Component\r\n ], AllStatisticsView);\r\n return AllStatisticsView;\r\n}(Vue));\r\nexport default AllStatisticsView;\r\nVue.component(\"kk-all-statistics\", AllStatisticsView);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/AllStatisticsView.vue\n// module id = 56\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport axios from \"axios\";\r\nvar ChooseEventView = /** @class */ (function (_super) {\r\n tslib_1.__extends(ChooseEventView, _super);\r\n function ChooseEventView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n _this.currentOrganizationEvents = null;\r\n return _this;\r\n }\r\n ChooseEventView.prototype.routed = function () {\r\n this.currentOrganizationEvents = store.events\r\n .filter(function (e) { return e.organizationId == store.selectedOrganization.organizationId; });\r\n store.page.title = this.$t(\"chooseEventView.title\");\r\n store.page.showTopNav = true;\r\n };\r\n ChooseEventView.prototype.eventDateDisplay = function (e) {\r\n if (e.eventDate)\r\n return this.$d(new Date(e.eventDate));\r\n return \"\";\r\n };\r\n ChooseEventView.prototype.chooseEvent = function (event) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n store.currentUser.selectedEventId = event.eventId;\r\n if (!store.currentUser.selectedOrganizationId)\r\n store.currentUser.selectedOrganizationId = event.organizationId;\r\n return [4 /*yield*/, axios.put(\"users/\" + store.currentUser.userId, store.currentUser)];\r\n case 1:\r\n _a.sent();\r\n store.selectedEvent = event;\r\n this.$router.push('/');\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ChooseEventView = tslib_1.__decorate([\r\n Component\r\n ], ChooseEventView);\r\n return ChooseEventView;\r\n}(Vue));\r\nexport default ChooseEventView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/ChooseEventView.vue\n// module id = 57\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport axios from \"axios\";\r\nvar ChooseOrganizationView = /** @class */ (function (_super) {\r\n tslib_1.__extends(ChooseOrganizationView, _super);\r\n function ChooseOrganizationView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n return _this;\r\n }\r\n ChooseOrganizationView.prototype.routed = function () {\r\n store.page.title = this.$t(\"chooseOrganizationView.title\");\r\n store.page.showTopNav = true;\r\n };\r\n ChooseOrganizationView.prototype.userOrganizationEventCount = function (organization) {\r\n var events = store.events.filter(function (e) { return e.organizationId == organization.organizationId; });\r\n return events.length;\r\n };\r\n ChooseOrganizationView.prototype.chooseOrganization = function (organization) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var event;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n store.currentUser.selectedOrganizationId = organization.organizationId;\r\n event = store.events.find(function (e) { return e.organizationId == organization.organizationId; });\r\n if (event)\r\n store.currentUser.selectedEventId = event.eventId;\r\n else\r\n store.currentUser.selectedEventId = null;\r\n return [4 /*yield*/, axios.put(\"users/\" + store.currentUser.userId, store.currentUser)];\r\n case 1:\r\n _a.sent();\r\n store.selectedOrganization = organization;\r\n this.$router.push(\"/\");\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n ChooseOrganizationView = tslib_1.__decorate([\r\n Component\r\n ], ChooseOrganizationView);\r\n return ChooseOrganizationView;\r\n}(Vue));\r\nexport default ChooseOrganizationView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/ChooseOrganizationView.vue\n// module id = 58\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport axios from \"axios\";\r\nvar EditRepeatsView = /** @class */ (function (_super) {\r\n tslib_1.__extends(EditRepeatsView, _super);\r\n function EditRepeatsView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n _this.eventParticipant = store.selectedEvent.eventParticipant;\r\n return _this;\r\n }\r\n EditRepeatsView.prototype.routed = function () {\r\n store.page.title = this.$t(\"editRepeatsView.title\");\r\n store.page.showTopNav = true;\r\n };\r\n Object.defineProperty(EditRepeatsView.prototype, \"isValidatedForSave\", {\r\n get: function () {\r\n var _a = this.eventParticipant, estimatedRepeats = _a.estimatedRepeats, repeats = _a.repeats;\r\n return (estimatedRepeats == null || estimatedRepeats >= 0) && (repeats == null || repeats >= 0);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n EditRepeatsView.prototype.save = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var e_1;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 2, , 3]);\r\n return [4 /*yield*/, axios.put(\"eventparticipants/\" + this.eventParticipant.eventParticipantId, this.eventParticipant)];\r\n case 1:\r\n _a.sent();\r\n this.$router.push('/');\r\n return [3 /*break*/, 3];\r\n case 2:\r\n e_1 = _a.sent();\r\n return [3 /*break*/, 3];\r\n case 3: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n EditRepeatsView = tslib_1.__decorate([\r\n Component\r\n ], EditRepeatsView);\r\n return EditRepeatsView;\r\n}(Vue));\r\nexport default EditRepeatsView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/EditRepeatsView.vue\n// module id = 59\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component, Prop } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport \"../components/EventParticipantTopList\";\r\nvar EventStatisticsView = /** @class */ (function (_super) {\r\n tslib_1.__extends(EventStatisticsView, _super);\r\n function EventStatisticsView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n return _this;\r\n }\r\n tslib_1.__decorate([\r\n Prop(),\r\n tslib_1.__metadata(\"design:type\", Number)\r\n ], EventStatisticsView.prototype, \"numTop\", void 0);\r\n EventStatisticsView = tslib_1.__decorate([\r\n Component\r\n ], EventStatisticsView);\r\n return EventStatisticsView;\r\n}(Vue));\r\nexport default EventStatisticsView;\r\nVue.component(\"kk-event-statistics\", EventStatisticsView);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/EventStatisticsView.vue\n// module id = 60\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport axios from \"axios\";\r\nimport { store } from \"store\";\r\n//import vueMixins from 'vue-mixins';\r\nvar HomeView = /** @class */ (function (_super) {\r\n tslib_1.__extends(HomeView, _super);\r\n function HomeView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.loading = false;\r\n _this.store = store;\r\n return _this;\r\n }\r\n Object.defineProperty(HomeView.prototype, \"selectedOrganizationEvents\", {\r\n get: function () {\r\n return store.events.filter(function (e) { return e.organizationId == store.currentUser.selectedOrganizationId; });\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(HomeView.prototype, \"sumPerLap\", {\r\n get: function () {\r\n var total = store.selectedEvent.sponsors\r\n .filter(function (s) { return s.paymentMethod === \"PerRepeat\" && s.participationStatus === \"Participates\"; })\r\n .reduce(function (totalSum, sponsor) { return totalSum + sponsor.payment; }, 0);\r\n if (total == 0)\r\n return \"?\";\r\n return total.toString();\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(HomeView.prototype, \"participatingSponsorCount\", {\r\n get: function () {\r\n return store.selectedEvent.sponsors\r\n .filter(function (s) { return s.participationStatus == \"Participates\" ||\r\n s.participationStatus == \"Paid\"; })\r\n .length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(HomeView.prototype, \"totalSponsorPayments\", {\r\n get: function () {\r\n var total = store.selectedEvent.sponsors\r\n .filter(function (s) { return s.participationStatus === \"Participates\"; })\r\n .reduce(function (totalSum, sponsor) { return totalSum + sponsor.shouldPay; }, 0);\r\n return total;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n HomeView.prototype.routed = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var e_1, _a, e_2, _b, user, _c, err_1, billingInfoSeen, organizations, _d, events, events_1, events_1_1, e, _e, e_1_1, eventParticipants, _loop_1, eventParticipants_1, eventParticipants_1_1, ep, _f;\r\n return tslib_1.__generator(this, function (_g) {\r\n switch (_g.label) {\r\n case 0:\r\n this.loading = true;\r\n store.page.title = this.$t(\"homeView.title\");\r\n store.page.showTopNav = false;\r\n this.$router.clearHistory();\r\n _g.label = 1;\r\n case 1:\r\n _g.trys.push([1, 3, , 4]);\r\n _c = store;\r\n return [4 /*yield*/, axios.get(\"users/me\")];\r\n case 2:\r\n user = _c.currentUser = (_g.sent()).data;\r\n if (!store.currentUser.locale)\r\n store.currentUser.locale = \"fi\";\r\n return [3 /*break*/, 4];\r\n case 3:\r\n err_1 = _g.sent();\r\n if (err_1.response.status == 401)\r\n this.$router.push(\"/login\");\r\n return [2 /*return*/];\r\n case 4:\r\n this.$i18n.locale = store.currentUser.locale;\r\n billingInfoSeen = localStorage.getItem(\"billingInfoSeen\");\r\n if (!billingInfoSeen) {\r\n localStorage.setItem(\"billingInfoSeen\", \"indeed\");\r\n this.store.popup.title = \"\";\r\n this.store.popup.description = this.$t(\"homeView.billingInfo\");\r\n this.store.popup.visible = true;\r\n }\r\n _d = store.currentUser;\r\n return [4 /*yield*/, axios.get(\"organizations\")];\r\n case 5:\r\n organizations = _d.organizations = (_g.sent()).data;\r\n if (store.currentUser.organizations.length === 0)\r\n store.currentUser.organizations = null;\r\n // pre-load previously persisted organization\r\n if (user.selectedOrganizationId)\r\n store.selectedOrganization = user.organizations.find(function (o) { return o.organizationId == user.selectedOrganizationId; });\r\n if (!store.selectedOrganization && store.currentUser.organizations)\r\n store.selectedOrganization = store.currentUser.organizations[0];\r\n return [4 /*yield*/, axios.get(\"events\", { params: { fromYear: new Date().getFullYear() } })];\r\n case 6:\r\n events = (_g.sent()).data;\r\n if (events.length == 0)\r\n events = null;\r\n if (!events) return [3 /*break*/, 16];\r\n _g.label = 7;\r\n case 7:\r\n _g.trys.push([7, 12, 13, 14]);\r\n events_1 = tslib_1.__values(events), events_1_1 = events_1.next();\r\n _g.label = 8;\r\n case 8:\r\n if (!!events_1_1.done) return [3 /*break*/, 11];\r\n e = events_1_1.value;\r\n _e = e;\r\n return [4 /*yield*/, axios.get(\"sponsors\", { params: { eventId: e.eventId } })];\r\n case 9:\r\n _e.sponsors = (_g.sent()).data\r\n // do not include sponsors imported from external sources, as those are expected to be available\r\n // in invitePreviousSponsorsView\r\n .filter(function (s) { return !(s.participationStatus == \"NotAnswered\" && s.invitedOn == null); });\r\n _g.label = 10;\r\n case 10:\r\n events_1_1 = events_1.next();\r\n return [3 /*break*/, 8];\r\n case 11: return [3 /*break*/, 14];\r\n case 12:\r\n e_1_1 = _g.sent();\r\n e_1 = { error: e_1_1 };\r\n return [3 /*break*/, 14];\r\n case 13:\r\n try {\r\n if (events_1_1 && !events_1_1.done && (_a = events_1.return)) _a.call(events_1);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n return [7 /*endfinally*/];\r\n case 14:\r\n store.events = events;\r\n store.selectedEvent = events.find(function (e) { return e.eventId == store.currentUser.selectedEventId; });\r\n // Another organization was selected if the currently selected event isn't found in the\r\n // events of the currently selected organization.\r\n if (!store.selectedEvent ||\r\n !this.selectedOrganizationEvents.find(function (e) { return e.eventId == store.selectedEvent.eventId; })) {\r\n store.selectedEvent = store.events[0];\r\n store.selectedOrganization = store.currentUser.organizations.find(function (o) { return o.organizationId == store.selectedEvent.organizationId; });\r\n }\r\n return [4 /*yield*/, axios.get(\"eventparticipants\", { params: { fromYear: new Date().getFullYear() } })];\r\n case 15:\r\n eventParticipants = (_g.sent()).data;\r\n _loop_1 = function (ep) {\r\n var event_1 = events.find(function (e) { return e.eventId == ep.eventId; });\r\n if (event_1)\r\n event_1.eventParticipant = ep;\r\n };\r\n try {\r\n for (eventParticipants_1 = tslib_1.__values(eventParticipants), eventParticipants_1_1 = eventParticipants_1.next(); !eventParticipants_1_1.done; eventParticipants_1_1 = eventParticipants_1.next()) {\r\n ep = eventParticipants_1_1.value;\r\n _loop_1(ep);\r\n }\r\n }\r\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\r\n finally {\r\n try {\r\n if (eventParticipants_1_1 && !eventParticipants_1_1.done && (_b = eventParticipants_1.return)) _b.call(eventParticipants_1);\r\n }\r\n finally { if (e_2) throw e_2.error; }\r\n }\r\n _g.label = 16;\r\n case 16:\r\n _f = store;\r\n return [4 /*yield*/, axios.get(\"applicationsettings/globalsettings\", {\r\n params: {\r\n locale: this.$i18n.locale,\r\n }\r\n })];\r\n case 17:\r\n _f.globalSettings = (_g.sent()).data;\r\n this.loading = false;\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n HomeView.prototype.showSponsors = function () {\r\n this.$router.push(\"/sponsors\");\r\n };\r\n HomeView.prototype.chooseEvent = function () {\r\n this.$router.push(\"/choose-event\");\r\n };\r\n HomeView.prototype.chooseOrganization = function () {\r\n this.$router.push(\"/choose-organization\");\r\n };\r\n HomeView.prototype.editLaps = function () {\r\n this.$router.push(\"/edit-laps\");\r\n };\r\n HomeView.prototype.inviteSponsor = function () {\r\n this.$router.push(\"/invite-sponsor\");\r\n };\r\n HomeView.prototype.permission = function () {\r\n this.$router.push('/permission');\r\n };\r\n HomeView.prototype.instructions = function () {\r\n this.$router.push('/instructions');\r\n };\r\n HomeView = tslib_1.__decorate([\r\n Component\r\n ], HomeView);\r\n return HomeView;\r\n}(Vue));\r\nexport default HomeView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/HomeView.vue\n// module id = 61\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nvar PermissionView = /** @class */ (function (_super) {\r\n tslib_1.__extends(PermissionView, _super);\r\n function PermissionView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n return _this;\r\n }\r\n PermissionView.prototype.routed = function () {\r\n store.page.title = this.$t(\"homeView.instructions\");\r\n store.page.showTopNav = true;\r\n };\r\n PermissionView = tslib_1.__decorate([\r\n Component\r\n ], PermissionView);\r\n return PermissionView;\r\n}(Vue));\r\nexport default PermissionView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/InstructionsView.vue\n// module id = 62\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { store } from \"store\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport \"../components/KkGenericPopup\";\r\nimport axios from \"axios\";\r\nimport xamatron from \"xamatron\";\r\nvar InvitePreviousSponsorsView = /** @class */ (function (_super) {\r\n tslib_1.__extends(InvitePreviousSponsorsView, _super);\r\n function InvitePreviousSponsorsView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n _this.loading = true;\r\n _this.error = null;\r\n _this.popupVisible = false;\r\n _this.sendStatus = null;\r\n _this.sponsors = [];\r\n _this.sponsorsByOrg = {};\r\n _this.selectedSponsorIds = [];\r\n _this.numSponsors = 0;\r\n return _this;\r\n }\r\n InvitePreviousSponsorsView.prototype.routed = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var e_1, _a, previousSponsors, _b, _c, s;\r\n return tslib_1.__generator(this, function (_d) {\r\n switch (_d.label) {\r\n case 0: return [4 /*yield*/, axios.get(\"sponsors/previous-sponsors\")];\r\n case 1:\r\n previousSponsors = (_d.sent()).data;\r\n // Don't include sponsors that are already on user's sponsor list\r\n this.sponsors = previousSponsors\r\n .filter(function (s) {\r\n return !store.selectedEvent.sponsors.some(function (sp) { return sp.sponsorId === s.sponsor.sponsorId || sp.email === s.sponsor.email; });\r\n });\r\n try {\r\n // group sponsors by organizationId\r\n for (_b = tslib_1.__values(this.sponsors), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n s = _c.value;\r\n if (this.sponsorsByOrg[s.organizationId])\r\n this.sponsorsByOrg[s.organizationId].push(s);\r\n else\r\n this.sponsorsByOrg[s.organizationId] = [s];\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n this.loading = false;\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n Object.defineProperty(InvitePreviousSponsorsView.prototype, \"allSelected\", {\r\n get: function () {\r\n return this.selectedSponsorIds.length === this.sponsors.length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n InvitePreviousSponsorsView.prototype.toggleAll = function () {\r\n var _this = this;\r\n var all = this.allSelected;\r\n this.selectedSponsorIds.splice(0);\r\n if (!all) {\r\n for (var s in this.sponsorsByOrg)\r\n this.sponsorsByOrg[s].forEach(function (s) { return _this.selectedSponsorIds.push(s.sponsor.sponsorId); });\r\n }\r\n };\r\n InvitePreviousSponsorsView.prototype.emailInput = function (sponsor, e) {\r\n sponsor.editingEmail = true;\r\n };\r\n InvitePreviousSponsorsView.prototype.sendInvitations = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var selectedSponsors, emails, e_2;\r\n var _this = this;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n this.sendStatus = \"Sending\";\r\n selectedSponsors = this.sponsors\r\n .filter(function (s) { return s.sponsor.email && _this.selectedSponsorIds.some(function (id) { return id === s.sponsor.sponsorId; }); })\r\n .map(function (s) { return s.sponsor; });\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n emails = selectedSponsors.map(function (s) { return s.email.trim(); });\r\n return [4 /*yield*/, axios.post(\"sponsors/invite-email\", { eventId: this.store.selectedEvent.eventId, emails: emails })];\r\n case 2:\r\n _a.sent();\r\n this.$set(store.selectedEvent, \"sponsors\", store.selectedEvent.sponsors.concat(selectedSponsors));\r\n this.sendStatus = \"Sent\";\r\n return [3 /*break*/, 4];\r\n case 3:\r\n e_2 = _a.sent();\r\n this.error = e_2.message;\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n InvitePreviousSponsorsView.prototype.infoPopup = function () {\r\n this.popupVisible = true;\r\n };\r\n InvitePreviousSponsorsView.prototype.closePopup = function () {\r\n this.popupVisible = false;\r\n };\r\n InvitePreviousSponsorsView.prototype.goToAddSponsor = function () {\r\n this.$router.push(\"/add-sponsor\");\r\n };\r\n InvitePreviousSponsorsView.prototype.goToContacts = function () {\r\n xamatron.openURL(this.root.getSiteUrl(\"public/fororganizations\"));\r\n };\r\n InvitePreviousSponsorsView = tslib_1.__decorate([\r\n Component\r\n ], InvitePreviousSponsorsView);\r\n return InvitePreviousSponsorsView;\r\n}(Vue));\r\nexport default InvitePreviousSponsorsView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/InvitePreviousSponsorsView.vue\n// module id = 63\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport axios from \"axios\";\r\nvar InviteSponsorView = /** @class */ (function (_super) {\r\n tslib_1.__extends(InviteSponsorView, _super);\r\n function InviteSponsorView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.status = null;\r\n _this.error = null;\r\n _this.store = store;\r\n _this.sponsors = [_this.createEmptySponsor()];\r\n _this.sponsorlink = \"\";\r\n _this.sponsorCopied = false;\r\n return _this;\r\n }\r\n InviteSponsorView.prototype.routed = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var _a;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n store.page.title = this.$t(\"inviteSponsorView.title\");\r\n store.page.showTopNav = true;\r\n _a = this;\r\n return [4 /*yield*/, axios.get(\"sponsors/joinlink/\" + store.selectedEvent.eventParticipant.eventParticipantId)];\r\n case 1:\r\n _a.sponsorlink = (_b.sent()).data;\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n InviteSponsorView.prototype.addRecipient = function () {\r\n this.sponsors.push(this.createEmptySponsor());\r\n };\r\n InviteSponsorView.prototype.inviteViaEmail = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var invitedSponsors, emails, result, _a;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n this.status = \"Sending\";\r\n _b.label = 1;\r\n case 1:\r\n _b.trys.push([1, 3, , 4]);\r\n invitedSponsors = [];\r\n invitedSponsors = this.sponsors\r\n .map(function (s) { return (tslib_1.__assign({}, s, { email: s.email.trim(), invitedOn: new Date(Date.now()) })); })\r\n .filter(function (s) { return s.email; });\r\n emails = invitedSponsors.map(function (s) { return s.email; });\r\n return [4 /*yield*/, axios.post(\"sponsors/invite-email\", { eventId: this.store.selectedEvent.eventId, emails: emails })];\r\n case 2:\r\n result = (_b.sent()).data;\r\n this.status = \"Sent\";\r\n this.$set(store.selectedEvent, \"sponsors\", store.selectedEvent.sponsors.concat(invitedSponsors));\r\n this.sponsors = [this.createEmptySponsor()];\r\n return [3 /*break*/, 4];\r\n case 3:\r\n _a = _b.sent();\r\n this.error = this.$t(\"inviteSponsorView.emailInvitationFailed\");\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n InviteSponsorView.prototype.createEmptySponsor = function (email) {\r\n if (email === void 0) { email = \"\"; }\r\n return {\r\n sponsorId: 0,\r\n firstname: \"\",\r\n lastname: \"\",\r\n fullName: \"\",\r\n sponsorType: \"Private\",\r\n companyName: null,\r\n email: email,\r\n payment: 0,\r\n notificationSentOn: null,\r\n numNotificationsSent: 0,\r\n participationStatus: \"NotAnswered\",\r\n shouldPay: null,\r\n paid: 0,\r\n estimatedPayment: null,\r\n paymentMethod: \"Manual\",\r\n billSentOn: null,\r\n eventParticipantId: 0,\r\n streetAddress: \"\",\r\n zipCode: \"\",\r\n city: \"\",\r\n sendingEmail: false,\r\n editingEmail: false,\r\n info: null,\r\n preferredBillingMethod: \"Email\",\r\n };\r\n };\r\n InviteSponsorView.prototype.isDuplicateEmail = function (email) {\r\n return store.selectedEvent.sponsors.find(function (s) { return s.email === email; }) != null;\r\n };\r\n InviteSponsorView.prototype.invitePreviousSponsors = function () {\r\n this.$router.push('/invite-previous-sponsors');\r\n };\r\n Object.defineProperty(InviteSponsorView.prototype, \"isValidatedForSubmit\", {\r\n get: function () {\r\n return this.sponsors.some(function (s) { return !!s.email; });\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n InviteSponsorView.prototype.copySponsorLink = function () {\r\n var _this = this;\r\n this.$refs.text.select();\r\n document.execCommand('copy');\r\n this.sponsorCopied = true;\r\n setTimeout(function () {\r\n _this.sponsorCopied = false;\r\n }, 2000);\r\n };\r\n InviteSponsorView = tslib_1.__decorate([\r\n Component\r\n ], InviteSponsorView);\r\n return InviteSponsorView;\r\n}(Vue));\r\nexport default InviteSponsorView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/InviteSponsorView.vue\n// module id = 64\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport axios from \"axios\";\r\nimport { store } from \"store\";\r\nvar LoginView = /** @class */ (function (_super) {\r\n tslib_1.__extends(LoginView, _super);\r\n function LoginView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.state = \"username\";\r\n _this.username = \"\";\r\n _this.pin = \"\";\r\n _this.error = \"\";\r\n _this.pinSentMessageVisible = false;\r\n _this.requestingPin = false;\r\n return _this;\r\n }\r\n LoginView.prototype.routed = function () {\r\n store.page.title = this.$t(\"loginView.title\");\r\n store.page.showTopNav = true;\r\n };\r\n LoginView.prototype.checkUsername = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var data, err_1;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n this.error = \"\";\r\n this.requestingPin = true;\r\n _a.label = 1;\r\n case 1:\r\n _a.trys.push([1, 3, , 4]);\r\n return [4 /*yield*/, axios.post(\"authentication/login\", { username: this.username })];\r\n case 2:\r\n data = (_a.sent()).data;\r\n this.requestingPin = false;\r\n if (data.status == \"NonexistentUser\") {\r\n this.error = this.$t(\"loginView.nonexistentUser\");\r\n return [2 /*return*/];\r\n }\r\n if (data.status == \"PinSent\")\r\n this.pinSentPopup();\r\n //this.pinSentMessageVisible = true;\r\n this.state = \"pin\";\r\n return [3 /*break*/, 4];\r\n case 3:\r\n err_1 = _a.sent();\r\n this.error = this.$t(\"loginView.pinRequestFailed\");\r\n this.requestingPin = false;\r\n return [3 /*break*/, 4];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n LoginView.prototype.login = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var data;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n this.error = \"\";\r\n if (!this.pin) {\r\n this.error = this.$t(\"loginView.enterPin\");\r\n return [2 /*return*/];\r\n }\r\n return [4 /*yield*/, axios.post(\"authentication/login\", {\r\n deviceId: store.identity.deviceId,\r\n username: this.username,\r\n pin: this.pin\r\n })];\r\n case 1:\r\n data = (_a.sent()).data;\r\n if (data.status == \"NonexistentUser\") {\r\n this.state == \"username\";\r\n return [2 /*return*/];\r\n }\r\n if (data.status == \"PinInvalid\") {\r\n this.error = this.$t(\"loginView.pinInvalid\");\r\n return [2 /*return*/];\r\n }\r\n if (!(data.status == \"PinExpired\")) return [3 /*break*/, 3];\r\n return [4 /*yield*/, this.sendPin()];\r\n case 2:\r\n _a.sent();\r\n return [2 /*return*/];\r\n case 3:\r\n store.identity.accessToken = data.accessToken;\r\n localStorage.setItem(\"accessToken\", data.accessToken);\r\n this.$router.replace(\"/\");\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n LoginView.prototype.sendPin = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var data;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0: return [4 /*yield*/, axios.post(\"authentication/sendpin\", { username: this.username })];\r\n case 1:\r\n data = (_a.sent()).data;\r\n if (data.status == \"NonexistentUser\") {\r\n this.error = \"User has disappeared. Try again.\";\r\n this.state = \"username\";\r\n return [2 /*return*/];\r\n }\r\n this.pinSentPopup();\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n LoginView.prototype.pinSentPopup = function () {\r\n this.$popup(this.$t(\"loginView.pinSentTopic\"), this.$t(\"loginView.pinSent\"));\r\n };\r\n LoginView = tslib_1.__decorate([\r\n Component\r\n ], LoginView);\r\n return LoginView;\r\n}(Vue));\r\nexport default LoginView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/LoginView.vue\n// module id = 65\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nvar MobileAppInstructions = /** @class */ (function (_super) {\r\n tslib_1.__extends(MobileAppInstructions, _super);\r\n function MobileAppInstructions() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n return _this;\r\n }\r\n MobileAppInstructions.prototype.created = function () {\r\n store.page.title = this.$t(\"mobileAppInstructionsView.title\");\r\n store.page.showTopNav = true;\r\n };\r\n MobileAppInstructions = tslib_1.__decorate([\r\n Component\r\n ], MobileAppInstructions);\r\n return MobileAppInstructions;\r\n}(Vue));\r\nexport default MobileAppInstructions;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/MobileAppInstructionsView.vue\n// module id = 66\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport axios from \"axios\";\r\nvar MyProfileView = /** @class */ (function (_super) {\r\n tslib_1.__extends(MyProfileView, _super);\r\n function MyProfileView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n _this.locales = [\"fi\", \"se\"];\r\n _this.user = store.currentUser;\r\n _this.changesSaved = false;\r\n _this.profilePictureUploading = false;\r\n _this.error = \"\";\r\n _this.invalidImageSelected = false;\r\n _this.profilePicture = null;\r\n return _this;\r\n }\r\n MyProfileView.prototype.profilePictureSelected = function (e) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var file, formData, allowedImageTypes, _a, _b, e_1;\r\n return tslib_1.__generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n file = e.target.files[0];\r\n if (!file)\r\n return [2 /*return*/];\r\n formData = new FormData();\r\n formData.append(\"file\", file);\r\n allowedImageTypes = [\r\n \"image/png\", \"image/jpeg\",\r\n ];\r\n if (!allowedImageTypes.some(function (type) { return type == file.type; })) {\r\n this.invalidImageSelected = true;\r\n return [2 /*return*/];\r\n }\r\n _c.label = 1;\r\n case 1:\r\n _c.trys.push([1, 4, , 5]);\r\n this.invalidImageSelected = false;\r\n this.profilePictureUploading = true;\r\n _a = this.user;\r\n return [4 /*yield*/, axios.post('users/me/profile-picture', formData, { headers: { \"Content-Type\": \"multipart/form-data\" } })];\r\n case 2:\r\n _a.profilePicture =\r\n (_c.sent()).data;\r\n _b = this;\r\n return [4 /*yield*/, axios.get(\"users/me/profile-picture\")];\r\n case 3:\r\n _b.profilePicture = (_c.sent()).data;\r\n this.profilePictureUploading = false;\r\n return [3 /*break*/, 5];\r\n case 4:\r\n e_1 = _c.sent();\r\n return [3 /*break*/, 5];\r\n case 5: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n MyProfileView.prototype.routed = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var _a;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0:\r\n store.page.title = this.$t(\"myProfileView.title\");\r\n store.page.showTopNav = true;\r\n _a = this;\r\n return [4 /*yield*/, axios.get(\"users/me/profile-picture\")];\r\n case 1:\r\n _a.profilePicture = (_b.sent()).data;\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n MyProfileView.prototype.save = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var e_2;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 2, , 3]);\r\n this.changesSaved = false;\r\n return [4 /*yield*/, axios.put(\"users/\" + store.currentUser.userId, this.user)];\r\n case 1:\r\n _a.sent();\r\n this.changesSaved = true;\r\n return [3 /*break*/, 3];\r\n case 2:\r\n e_2 = _a.sent();\r\n console.log(e_2.message);\r\n return [3 /*break*/, 3];\r\n case 3: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n MyProfileView.prototype.setLocale = function (locale) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n this.$i18n.locale = locale;\r\n store.currentUser.locale = locale;\r\n return [4 /*yield*/, axios.put(\"users/\" + store.currentUser.userId, store.currentUser)];\r\n case 1:\r\n _a.sent();\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n MyProfileView.prototype.instructions = function () {\r\n // this.$router.push(\"/instructions\");\r\n this.$router.push(\"/mobile-app-instructions\");\r\n };\r\n MyProfileView.prototype.privacySettings = function () {\r\n this.$router.push(\"/privacy-settings\");\r\n };\r\n MyProfileView.prototype.logout = function () {\r\n localStorage.removeItem(\"accessToken\");\r\n location.reload(); // TODO\r\n };\r\n MyProfileView = tslib_1.__decorate([\r\n Component\r\n ], MyProfileView);\r\n return MyProfileView;\r\n}(Vue));\r\nexport default MyProfileView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/MyProfileView.vue\n// module id = 67\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nvar PermissionView = /** @class */ (function (_super) {\r\n tslib_1.__extends(PermissionView, _super);\r\n function PermissionView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n return _this;\r\n }\r\n PermissionView.prototype.routed = function () {\r\n window.scrollTo(null, 0);\r\n store.page.title = this.$t(\"homeView.permit\");\r\n store.page.showTopNav = true;\r\n };\r\n PermissionView.prototype.backToHome = function () {\r\n this.$router.push('/');\r\n };\r\n PermissionView = tslib_1.__decorate([\r\n Component\r\n ], PermissionView);\r\n return PermissionView;\r\n}(Vue));\r\nexport default PermissionView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/PermissionView.vue\n// module id = 68\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from 'store';\r\nimport xamatron from \"xamatron\";\r\nvar PrivacySettingsView = /** @class */ (function (_super) {\r\n tslib_1.__extends(PrivacySettingsView, _super);\r\n function PrivacySettingsView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n _this.sulEmail = \"kunniakierros@sul.fi\";\r\n return _this;\r\n }\r\n Object.defineProperty(PrivacySettingsView.prototype, \"privacyPolicyUrl\", {\r\n get: function () { return this.root.getSiteUrl(\"public/privacypolicy\"); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n PrivacySettingsView.prototype.routed = function () {\r\n store.page.title = this.$t(\"privacySettingsView.title\");\r\n };\r\n PrivacySettingsView.prototype.openPrivacyPolicy = function () {\r\n xamatron.openURL(this.privacyPolicyUrl);\r\n };\r\n PrivacySettingsView = tslib_1.__decorate([\r\n Component\r\n ], PrivacySettingsView);\r\n return PrivacySettingsView;\r\n}(Vue));\r\nexport default PrivacySettingsView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/PrivacySettingsView.vue\n// module id = 69\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport \"../components/SponsorListItem\";\r\nimport axios from \"axios\";\r\nvar SponsorsView = /** @class */ (function (_super) {\r\n tslib_1.__extends(SponsorsView, _super);\r\n function SponsorsView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n _this.sponsorAdded = false;\r\n _this.error = null;\r\n return _this;\r\n }\r\n SponsorsView.prototype.routed = function () {\r\n var e_1, _a;\r\n try {\r\n for (var _b = tslib_1.__values(store.selectedEvent.sponsors), _c = _b.next(); !_c.done; _c = _b.next()) {\r\n var s = _c.value;\r\n Vue.set(s, 'sendingEmail', false);\r\n }\r\n }\r\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\r\n finally {\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n }\r\n this.sponsorAdded = this.$route.query.sponsorAdded !== undefined;\r\n store.page.title = this.$t(\"sponsorsView.title\");\r\n store.page.showTopNav = true;\r\n };\r\n SponsorsView.prototype.inviteSponsor = function () {\r\n this.$router.push(\"/invite-sponsor\");\r\n };\r\n SponsorsView.prototype.reInvite = function (sponsor) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var e_2;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 2, 3, 4]);\r\n sponsor.sendingEmail = true;\r\n return [4 /*yield*/, axios.post(\"sponsors/invite-email\", {\r\n eventId: this.store.selectedEvent.eventId,\r\n emails: [sponsor.email]\r\n })];\r\n case 1:\r\n _a.sent();\r\n sponsor.invitedOn = new Date(Date.now());\r\n return [3 /*break*/, 4];\r\n case 2:\r\n e_2 = _a.sent();\r\n return [3 /*break*/, 4];\r\n case 3:\r\n sponsor.sendingEmail = false;\r\n return [7 /*endfinally*/];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n SponsorsView.prototype.sendBill = function (sponsor) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var err_1;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 2, , 3]);\r\n return [4 /*yield*/, axios.post(\"sponsors/\" + sponsor.sponsorId + \"/sendbill\")];\r\n case 1:\r\n _a.sent();\r\n sponsor.billSentOn = new Date(Date.now());\r\n return [3 /*break*/, 3];\r\n case 2:\r\n err_1 = _a.sent();\r\n this.error = err_1;\r\n return [3 /*break*/, 3];\r\n case 3: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n SponsorsView.prototype.addSponsor = function () {\r\n this.$router.push(\"/add-sponsor\");\r\n };\r\n SponsorsView.prototype.sendReminder = function (sponsor) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var e_3;\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n _a.trys.push([0, 2, 3, 4]);\r\n sponsor.sendingEmail = true;\r\n return [4 /*yield*/, axios.post(\"sponsors/reminder-email\", sponsor)];\r\n case 1:\r\n _a.sent();\r\n sponsor.notificationSentOn = new Date(Date.now());\r\n return [3 /*break*/, 4];\r\n case 2:\r\n e_3 = _a.sent();\r\n return [3 /*break*/, 4];\r\n case 3:\r\n sponsor.sendingEmail = false;\r\n return [7 /*endfinally*/];\r\n case 4: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n Object.defineProperty(SponsorsView.prototype, \"participatingSponsors\", {\r\n get: function () {\r\n return store.selectedEvent.sponsors.filter(function (s) {\r\n return s.participationStatus === \"Participates\";\r\n });\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(SponsorsView.prototype, \"paidSponsors\", {\r\n get: function () {\r\n return store.selectedEvent.sponsors.filter(function (s) { return s.participationStatus === \"Paid\"; });\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(SponsorsView.prototype, \"invitedSponsors\", {\r\n get: function () {\r\n return store.selectedEvent.sponsors.filter(function (s) { return s.participationStatus === \"NotAnswered\" && s.invitedOn != null; });\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(SponsorsView.prototype, \"refusedSponsors\", {\r\n get: function () {\r\n return store.selectedEvent.sponsors.filter(function (s) { return s.participationStatus === \"Refused\"; });\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n SponsorsView = tslib_1.__decorate([\r\n Component\r\n ], SponsorsView);\r\n return SponsorsView;\r\n}(Vue));\r\nexport default SponsorsView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/SponsorsView.vue\n// module id = 70\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nvar StartView = /** @class */ (function (_super) {\r\n tslib_1.__extends(StartView, _super);\r\n function StartView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n return _this;\r\n }\r\n StartView.prototype.routed = function () {\r\n this.$router.clearHistory();\r\n store.page.title = this.$t(\"startView.title\");\r\n store.page.showTopNav = false;\r\n };\r\n StartView.prototype.setLocale = function (locale) {\r\n this.$i18n.locale = locale;\r\n };\r\n return StartView;\r\n}(Vue));\r\nexport default StartView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/StartView.vue\n// module id = 71\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport \"./UserStatisticsView\";\r\nimport \"./TopEventParticipantsView\";\r\nimport \"./EventStatisticsView\";\r\nimport \"./AllStatisticsView\"; // TODO: rename to TopOrganizationStatistics\r\nimport xamatron from \"xamatron\";\r\nvar StatisticsView = /** @class */ (function (_super) {\r\n tslib_1.__extends(StatisticsView, _super);\r\n function StatisticsView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n _this.showStatistics = \"User\";\r\n _this.eventNumTop = 50;\r\n _this.usersNumTop = 50;\r\n _this.organizationsNumTop = 10;\r\n return _this;\r\n }\r\n StatisticsView.prototype.routed = function () {\r\n store.page.title = this.$t(\"statisticsView.title\");\r\n };\r\n Object.defineProperty(StatisticsView.prototype, \"locale\", {\r\n get: function () { return this.$i18n.locale; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n StatisticsView.prototype.userStatistics = function () {\r\n this.showStatistics = \"User\";\r\n };\r\n StatisticsView.prototype.eventStatistics = function () {\r\n this.showStatistics = \"Event\";\r\n };\r\n StatisticsView.prototype.topEventParticipants = function () {\r\n this.showStatistics = \"TopUsers\";\r\n };\r\n StatisticsView.prototype.topOrganizationStatistics = function () {\r\n this.showStatistics = \"TopOrganizations\";\r\n };\r\n StatisticsView.prototype.openMoreStatistics = function () {\r\n xamatron.openURL(this.root.getSiteUrl(\"public/results\"));\r\n };\r\n StatisticsView = tslib_1.__decorate([\r\n Component\r\n ], StatisticsView);\r\n return StatisticsView;\r\n}(Vue));\r\nexport default StatisticsView;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/StatisticsView.vue\n// module id = 72\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component, Prop } from \"vue-property-decorator\";\r\nimport { store } from \"store\";\r\nimport axios from \"axios\";\r\nvar TopEventParticipantsView = /** @class */ (function (_super) {\r\n tslib_1.__extends(TopEventParticipantsView, _super);\r\n function TopEventParticipantsView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n _this.loading = true;\r\n _this.sponsorships = null;\r\n _this.currentUserSponsorship = null;\r\n return _this;\r\n }\r\n TopEventParticipantsView.prototype.routed = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var _a, _b;\r\n return tslib_1.__generator(this, function (_c) {\r\n switch (_c.label) {\r\n case 0:\r\n _a = this;\r\n return [4 /*yield*/, axios.get(\"eventparticipants/top\", {\r\n params: {\r\n num: this.numTop,\r\n fromYear: new Date(Date.now()).getFullYear()\r\n }\r\n })];\r\n case 1:\r\n _a.sponsorships = (_c.sent()).data;\r\n _b = this;\r\n return [4 /*yield*/, axios.get(\"eventparticipants/me-total-sponsorship\")];\r\n case 2:\r\n _b.userSponsorshipAmount = (_c.sent()).data;\r\n this.currentUserSponsorship = this.sponsorships.find(function (s) { return s.user.userId == store.currentUser.userId; });\r\n this.userPos = this.sponsorships.indexOf(this.currentUserSponsorship);\r\n this.loading = false;\r\n return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n // TODO: duplicated in allStatisticsView\r\n TopEventParticipantsView.prototype.getCurrentSeasonYears = function () {\r\n var year = new Date(Date.now()).getFullYear();\r\n return year + \" - \" + (year + 1);\r\n };\r\n tslib_1.__decorate([\r\n Prop(),\r\n tslib_1.__metadata(\"design:type\", Number)\r\n ], TopEventParticipantsView.prototype, \"numTop\", void 0);\r\n TopEventParticipantsView = tslib_1.__decorate([\r\n Component\r\n ], TopEventParticipantsView);\r\n return TopEventParticipantsView;\r\n}(Vue));\r\nexport default TopEventParticipantsView;\r\nVue.component(\"kk-top-event-participants\", TopEventParticipantsView);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/TopEventParticipantsView.vue\n// module id = 73\n// module chunks = 0","import * as tslib_1 from \"tslib\";\r\nimport { Vue, Component } from \"vue-property-decorator\";\r\nimport axios from \"axios\";\r\nimport { store } from \"store\";\r\nimport { isNotificationAllowed } from \"common\";\r\nvar UserStatisticsView = /** @class */ (function (_super) {\r\n tslib_1.__extends(UserStatisticsView, _super);\r\n function UserStatisticsView() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.store = store;\r\n _this.sponsors = [];\r\n _this.remindersSent = false;\r\n _this.allOrganizations = [];\r\n // TODO: use mixin instead?\r\n _this.isNotificationAllowed = isNotificationAllowed;\r\n return _this;\r\n }\r\n UserStatisticsView.prototype.routed = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n // store.page.title = this.$t(\"userStatisticsView.title\") as string;\r\n store.page.showTopNav = true;\r\n return [2 /*return*/];\r\n });\r\n });\r\n };\r\n /*\r\n get pendingSponsorCount(): number {\r\n return this.sponsorsOfStatus(\"Participates\").length;\r\n }\r\n */\r\n UserStatisticsView.prototype.getSponsorsPaymentSum = function (sponsors) {\r\n var sum = sponsors\r\n .filter(function (s) { return s.participationStatus == \"Paid\"; })\r\n .reduce(function (sum, sponsor) { return sum + sponsor.paid; }, 0);\r\n return sum;\r\n };\r\n UserStatisticsView.prototype.getSponsorsEstimatedPayment = function (sponsors) {\r\n var sum = sponsors\r\n .filter(function (s) { return s.participationStatus == \"Participates\" || s.participationStatus == \"Paid\"; })\r\n .reduce(function (sum, sponsor) { return sum + sponsor.estimatedPayment; }, 0);\r\n return sum;\r\n };\r\n UserStatisticsView.prototype.sponsorsOfStatus = function (status) {\r\n return this.sponsors.filter(function (s) { return s.participationStatus == status; });\r\n };\r\n UserStatisticsView.prototype.remindPendingPaymentSponsors = function () {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var e_1, _a, _b, _c, sponsor, e_1_1, e_2;\r\n return tslib_1.__generator(this, function (_d) {\r\n switch (_d.label) {\r\n case 0:\r\n _d.trys.push([0, 9, , 10]);\r\n _d.label = 1;\r\n case 1:\r\n _d.trys.push([1, 6, 7, 8]);\r\n _b = tslib_1.__values(this.sponsorsOfStatus(\"Participates\")), _c = _b.next();\r\n _d.label = 2;\r\n case 2:\r\n if (!!_c.done) return [3 /*break*/, 5];\r\n sponsor = _c.value;\r\n if (!isNotificationAllowed(sponsor)) return [3 /*break*/, 4];\r\n return [4 /*yield*/, axios.post(\"sponsors/reminder-email\", sponsor)];\r\n case 3:\r\n _d.sent();\r\n // note: sponsor.notificationSentOn will be slightly out of sync with actual\r\n // notificationSentOn stored in db until store is reloaded\r\n sponsor.notificationSentOn = new Date(Date.now());\r\n _d.label = 4;\r\n case 4:\r\n _c = _b.next();\r\n return [3 /*break*/, 2];\r\n case 5: return [3 /*break*/, 8];\r\n case 6:\r\n e_1_1 = _d.sent();\r\n e_1 = { error: e_1_1 };\r\n return [3 /*break*/, 8];\r\n case 7:\r\n try {\r\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\r\n }\r\n finally { if (e_1) throw e_1.error; }\r\n return [7 /*endfinally*/];\r\n case 8:\r\n this.remindersSent = true;\r\n return [3 /*break*/, 10];\r\n case 9:\r\n e_2 = _d.sent();\r\n return [3 /*break*/, 10];\r\n case 10: return [2 /*return*/];\r\n }\r\n });\r\n });\r\n };\r\n UserStatisticsView = tslib_1.__decorate([\r\n Component\r\n ], UserStatisticsView);\r\n return UserStatisticsView;\r\n}(Vue));\r\nexport default UserStatisticsView;\r\nVue.component(\"kk-user-statistics\", UserStatisticsView);\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/ts-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./app/ts/views/UserStatisticsView.vue\n// module id = 74\n// module chunks = 0","import { Vue } from \"vue-property-decorator\";\r\nimport KkSpinner from \"./KkSpinner\";\r\nVue.mixin({\r\n components: {\r\n KkSpinner: KkSpinner\r\n }\r\n});\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/components/index.ts\n// module id = 75\n// module chunks = 0","export default {\r\n appTitle: \"Kunniakierros\",\r\n common: {\r\n next: \"Seuraava\",\r\n ok: \"OK\",\r\n },\r\n user: {\r\n username: \"Sähköposti\",\r\n pin: \"PIN-koodi\",\r\n password: \"Salasana\",\r\n },\r\n loginView: {\r\n title: \"Pyydä pin-koodi\",\r\n login: \"Kirjaudu sisään\",\r\n enterUsername: \"Kirjoita käyttäjätunnuksesi.\",\r\n nonexistentUser: \"Käyttäjätunnusta ei löydy. Tarkista käyttäjätunnus.\",\r\n enterPinHelp: \"Kirjoita PIN-koodi jonka sait sähköpostitse.\",\r\n enterPin: \"Kirjoita PIN-koodisi.\",\r\n sendPinTitle: \"Eikö PIN-koodia löydy?\",\r\n sendPinHelp: \"Etkö saanut PIN-koodia sähköpostiisi? Tarkasta vielä roskapostisi tai pyydä uusi PIN-koodi.\",\r\n sendPin: \"Tilaa uusi PIN-koodi\",\r\n pinInvalid: \"PIN-koodi on virheellinen.\",\r\n pinSentTopic: \"PIN lähetetty\",\r\n pinSent: \"Lähetimme sähköpostiisi uuden PIN-koodin. Tarkista sähköpostisi hetken kuluttua ja kirjoita PIN-koodi. Samalla vanha PIN-koodisi vanhentui, joten varmista että katsot uusinta viestiä.\",\r\n askForPin: \"Pyydä pin-koodi\",\r\n requestingPin: \"Pyydetään pin-koodia...\",\r\n pinRequestFailed: \"Pin-koodin haku epäonnistui. Varmista, että internet-yhteytesi on päällä.\",\r\n cookieInfo: \"Sovellus hyödyntää evästeitä mm. käytön helpottamiseksi ja tietoturvan edistämiseksi. Evästeiden antamien tietojen avulla myös kehitämme palvelua ja käyttökokemusta. Lue lisää yksityisyysasetuksista.\",\r\n authErrorTitle: \"Virhe kirjautumisessa\",\r\n authErrorDescription: \"Vanhentuneet kirjautumistiedot poistettiin. Kirjaudu sisään uudelleen.\",\r\n },\r\n homeView: {\r\n title: \"Etusivu\",\r\n infoTitle: \"Kunniakierros\",\r\n perLap: \" / kierros\",\r\n totalSponsorPayments: \"ja mahdollisuus kerätä seuralle\",\r\n sponsorsParticipating: \"Sinulla on nyt {0} tukijaa\",\r\n inviteSponsor: \"Kutsu tukijoita\",\r\n // instructions: \"Ohjeet\",\r\n instructions: \"Keräyssäännöt\",\r\n sponsors: \"Tukijat\",\r\n selectOrganization: \"Valitse seura\",\r\n selectEvent: \"Valitse keräys\",\r\n // event: \"Keräys\",\r\n event: \"Kunniakierrokseni\",\r\n eventInfo: \"Seura & keräyskampanja\",\r\n permit: \"Keräyslupa\",\r\n logout: \"Kirjaudu ulos\",\r\n goal: \"Tavoite:\",\r\n repeats: \"Aseta kierrokset\",\r\n noGoal: \"Ei tavoitetta\",\r\n repeatsButton: \"Kierrokset\",\r\n noOrganization: \"Sinua ei ole liitetty yhteenkään seuraan. Ota yhteyttä oman seurasi vastuuhenkilöön.\",\r\n noEvent: \"Sinua ei ole liitetty yhteenkään keräykseen. Omat keräykset näkyvät tässä, kun seuran vastuuhenkilö on lisännyt sinut osallistujaksi keräykseen.\",\r\n addOrInviteSponsors: \"Lisää tai kutsu tukijoita!\",\r\n billingInfo: \"Nyt on mahdollista laskuttaa tukijoita suoraan sovelluksen kautta! Laskutus tapahtuu Tukijat-näkymässä. Ota yhteyttä seurasi yhteyshenkilöön, jos haluat ottaa laskutuksen käyttöön.\",\r\n },\r\n myProfileView: {\r\n title: \"Asetukset\",\r\n logout: \"Kirjaudu ulos\",\r\n saveChanges: \"Tallenna muutokset\",\r\n slogan: \"Oma kutsuviestini\",\r\n account: \"Tili\",\r\n profilePicture: \"Profiilikuva\",\r\n myProfilePicture: \"Profiilikuvani\",\r\n chooseProfilePicture: \"Valitse profiilikuva\",\r\n allowedImageTypes: \"Sallitut tiedostotyypit: JPG, PNG\",\r\n instructions: \"Ohjeet\",\r\n language: \"Kieli\",\r\n locale_fi: \"suomi\",\r\n locale_se: \"ruotsi\",\r\n changesSaved: \"Tiedot tallennettu\",\r\n choosePictureAndText: \"Valitse kutsussa käytettävä profiilikuva ja kirjoita haluamasi viesti tukijoille\",\r\n privacySettings: \"Yksityisyysasetukset\",\r\n },\r\n privacySettingsView: {\r\n title: \"Yksityisyysasetukset\",\r\n content: \"\",\r\n moreInfo: \"Lisätietoja: {email} tai rekisteriselosteesta {privacyPolicyUrl}\",\r\n },\r\n sponsorsView: {\r\n title: \"Tukijat\",\r\n sponsors: \"Tukijat\",\r\n participatingSponsors: \"Mukaan lähteneet tukijat\",\r\n paymentComplete: \"Maksu suoritettu\",\r\n sendReminder: \"Muistuta maksusta\",\r\n billSent: \"Lasku lähetetty {0}\",\r\n reminderSent: \"Muistutus lähetetty {0}\",\r\n paymentCompleted: \"Maksu suoritettu\",\r\n inviteSponsor: \"Kutsu tukija\",\r\n addSponsor: \"Lisää uusi tukija\",\r\n paymentPerRepeat: \"Tukisumma {0} €/krs\",\r\n maxPayment: \"maks. {0} €\",\r\n paymentManual: \"Tukisumma {0} €\",\r\n sendBill: \"Lähetä lasku\",\r\n sentInvitations: \"Lähetetyt kutsut\",\r\n invitedOn: \"Kutsuttu {0}\",\r\n sendInvitation: \"Lähetä kutsu\",\r\n inviteAgain: \"Kutsu uudelleen\",\r\n maxPaymentSum: \"Maksimisumma\",\r\n notParticipating: \"Kieltäytyneet\",\r\n noInvitations: \"Ei lähetettyjä kutsuja\",\r\n },\r\n startView: {\r\n title: \"\",\r\n signUp: \"Ilmoittaudu mukaan\",\r\n login: \"Kirjaudu sisään\",\r\n about: \"Tutustu\",\r\n footerText: \"2018 © Suomen Urheiluliitto ry\",\r\n },\r\n inviteSponsorView: {\r\n title: \"Kutsu tukijoita\",\r\n sendInvitation: \"Lähetä kutsu\",\r\n sendInvitations: \"Lähetä kutsut\",\r\n sendingInvitations: \"Lähetetään kutsuja\",\r\n inFacebook: \"Facebookissa\",\r\n viaEmail: \"Sähköpostilla\",\r\n writeEmailAddress: \"Kirjoita sähköpostiosoite\",\r\n send: \"Lähetä\",\r\n emailInvitationSent: \"Kutsu lähetetty\",\r\n emailInvitationsSent: \"Kutsut lähetetty\",\r\n emailInvitationFailed: \"Kutsun lähetys epäonnistui\",\r\n duplicateSponsor: \"Tämä tukija on jo listallasi. Jos tämä tukija ei ole vastannut kutsuun, voit lähettää uuden kutsun tukijat-sivun kautta.\",\r\n invitePreviousSponsors: \"Kutsu edelliskertojen tukijoita\",\r\n addRecipient: \"Lisää vastaanottaja\",\r\n copySponsorLink: \"Kopioi kutsulinkki\",\r\n copied: \"Kopioitu\",\r\n },\r\n addSponsorView: {\r\n title: \"Lisää uusi tukija\",\r\n fillSponsorInformation: \"Anna tukijan tiedot\",\r\n //name: \"Nimi\",\r\n firstname: \"Etunimi\",\r\n lastname: \"Sukunimi\",\r\n email: \"Sähköpostiosoite\",\r\n paymentAmount: \"Tukisumma (min. {0}€)\",\r\n paymentPerRepeat: \"Kierrosmaksu\",\r\n oneTimePayment: \"Kertamaksu\",\r\n // maxPayment: \"Maksimisumma\",\r\n suggestedTarget: \"Toive tukikohteesta\",\r\n saveSponsor: \"Tallenna tiedot\",\r\n sponsorAdded: \"Tukija lisätty\",\r\n company: \"Yritys\",\r\n companyName: \"Yrityksen nimi\",\r\n private: \"Yksityinen\",\r\n streetAddress: \"Osoite\",\r\n zipCode: \"Postinumero\",\r\n city: \"Kaupunki\",\r\n info: \"Lisätiedot\",\r\n paymentMethodMail: \"Posti\",\r\n paymentMethodEmail: \"Sähköposti\",\r\n paymentMethodEInvoice: \"Verkkolasku\",\r\n bank: \"Pankki\",\r\n eInvoicePaymentAddress: \"Verkkolaskutusosoite\",\r\n },\r\n invitePreviousSponsorsView: {\r\n //inviteSelected: \"Lähetä kutsu valituille tukijoille\",\r\n inviteSelected: \"Lähetä sähköpostikutsu\",\r\n selectAll: \"Valitse kaikki\",\r\n sendingInvitations: \"Lähetetään kutsuja\",\r\n invitationsSent: \"Kutsut lähetetty\",\r\n noSponsors: \"Sinulla ei ole aiempia tukijoita\",\r\n setEmail: \"Aseta sähköpostiosoite\",\r\n infoPopupTitle: \"Tukijakutsun lähetys\",\r\n infoPopupText: \"Jos tukijallasi ei ole sähköpostiosoitetta, hänelle ei voi lähettää kutsua. Vaihtoehtoisesti voit joko lisätä hänet suoraan tukijaksi Lisää uusi tukija -lomakkeella tai ilmoittaa tukijan tiedot seurasi yhteyshenkilölle.\",\r\n goToContacts: \"Yhteyshenkilöt\",\r\n chooseSponsors: \"Valitse kutsuttavat tukijat\",\r\n invitingSponsorsTo: \"Olet kutsumassa tukijoita seuran {0} keräykseen {1}.\",\r\n sponsorsFrom: \"Aiemmat tukijat seuran {0} keräyksistä\",\r\n },\r\n chooseOrganizationView: {\r\n title: \"Valitse seura\",\r\n noEvents: \"Sinua ei ole liitetty tässä seurassa yhteenkään keräykseen.\",\r\n },\r\n chooseEventView: {\r\n title: \"Valitse tapahtuma\",\r\n },\r\n statisticsView: {\r\n title: \"Tilastot\",\r\n userStatistics: \"Minä\",\r\n eventStatistics: \"Keräys Top {0}\",\r\n organizationStatistics: \"Seura\",\r\n topEventParticipants: \"Kerääjät Top {0}\",\r\n allStatistics: \"Seurat Top {0}\",\r\n moreStatistics: \"Lisää tilastoja\",\r\n },\r\n userStatisticsView: {\r\n title: \"Saavutukseni\",\r\n events: \"Keräykset\",\r\n event: \"Tapahtuma\",\r\n paidSum: \"Maksettu €\",\r\n estimated: \"Kerätty €\",\r\n },\r\n eventStatisticsView: {\r\n topParticipants: \"{0} top {1}\",\r\n },\r\n organizationStatisticsView: {\r\n events: \"Keräykset\",\r\n },\r\n allStatisticsView: {\r\n numberOfParticipants: \"Kerääjiä\",\r\n topOrganizations: \"Kunniakierros-seurat top {0}\",\r\n raisedSum: \"Kerätty summa\",\r\n },\r\n editRepeatsView: {\r\n title: \"Kierrokset\",\r\n setEstimatedLaps: \"Aseta kierrostavoite\",\r\n repeats: \"Toteutunut kierrosmäärä\",\r\n save: \"Tallenna\",\r\n },\r\n eventParticipantTopList: {\r\n topParticipants: \"Tapahtuman parhaat kerääjät\",\r\n },\r\n topEventParticipantsView: {\r\n topParticipants: \"Kerääjät top {0}\",\r\n },\r\n permissionView: {\r\n backToHome: \"Takaisin etusivulle\",\r\n },\r\n mobileAppInstructionsView: {\r\n title: \"Mobiilisovelluksen ohjeet\",\r\n },\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/i18n/fi.ts\n// module id = 76\n// module chunks = 0","import fi from \"./fi\";\r\nimport se from './se';\r\nvar dateTimeFormat = {\r\n date: { year: \"numeric\", month: \"long\", day: \"numeric\", hour12: false },\r\n time: { hour: \"numeric\", minute: \"numeric\", second: \"numeric\", hour12: false },\r\n full: {\r\n year: \"numeric\", month: \"long\", day: \"numeric\",\r\n hour: \"numeric\", minute: \"numeric\", second: \"numeric\", hour12: false\r\n }\r\n};\r\nvar numberFormat = {\r\n currency: { style: \"currency\", currency: \"EUR\" }\r\n};\r\nexport default {\r\n enabledLocales: [\"fi\", \"se\"],\r\n messages: { fi: fi, se: se },\r\n dateTimeFormats: {\r\n fi: dateTimeFormat,\r\n se: dateTimeFormat,\r\n },\r\n numberFormats: {\r\n fi: numberFormat,\r\n se: numberFormat,\r\n },\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/i18n/index.ts\n// module id = 77\n// module chunks = 0","export default {\r\n appTitle: \"Kunniakierros\",\r\n common: {\r\n next: \"Följande\",\r\n ok: \"OK\",\r\n },\r\n user: {\r\n username: \"Epostadress\",\r\n pin: \"PIN-kod\",\r\n password: \"Lösenord\",\r\n },\r\n loginView: {\r\n title: \"Be om PIN-kod\",\r\n login: \"Skriv in\",\r\n enterUsername: \"Skriv användarnamn\",\r\n nonexistentUser: \"Användarnamnet hittas inte. Kontrollera användarnamn.\",\r\n enterPinHelp: \"Skriv PIN-kod, som du fick per epost\",\r\n enterPin: \"Sriv din PIN-kod\",\r\n sendPinTitle: \"Hittar du inte PIN-koden?\",\r\n sendPinHelp: \"Fick du inte PIN-kod i din epost? Kolla ännu roskpostlådan eller be om ny PIN-kod\",\r\n sendPin: \"Beställ ny PIN-kod\",\r\n pinInvalid: \"PIN-koden är felaktig\",\r\n pinSentTopic: \"PIN har skickats\",\r\n pinSent: \"Vi skickade en ny PIN-kod i din epost. Kolla din epost efter en stund och skriv PIN-koden. Samtidigt har den förra PIN-koden åldrats, försäkra dig om att du öppnar nyaste eposten.\",\r\n askForPin: \"Be om PIN-kod\",\r\n requestingPin: \"Ber om ny PIN-kod...\",\r\n },\r\n homeView: {\r\n title: \"Förstasidan\",\r\n infoTitle: \"Ärevarvet\",\r\n perLap: \" / varv\",\r\n totalSponsorPayments: \"en möjlighet att samla in åt föreningen\",\r\n sponsorsParticipating: \"Du har nu {0} sponsorer\",\r\n inviteSponsor: \"Bjud med några sponsorer\",\r\n instructions: \"Instruktioner\",\r\n sponsors: \"Sponsorer\",\r\n selectOrganization: \"Välj förening\",\r\n selectEvent: \"Välj Ärevarv\",\r\n // event: \"Insamling\",\r\n event: \"Mitt ärevarv\",\r\n eventInfo: \"Förening & insamlingskampanj\",\r\n permit: \"Insamlingstillstånd\",\r\n logout: \"Skriv ut\",\r\n goal: \"Målsättning:\",\r\n // repeats: \"{0} - varv\",\r\n // repeats: \"Aseta kierrokset\",\r\n noGoal: \"Ingen målsättning\",\r\n repeatsButton: \"Varv\",\r\n repeats: \"Ange varv\",\r\n noOrganization: \"Du är inte anknuten till någon förening. Vänligen kontakta egna föreningens kontaktperson.\",\r\n noEvent: \"Du har inte anknutits till någon insamling. Egna insamlingar syns här, efter det som föreningens ansvariga person har lagt dig till som deltagare i insamlingen.\",\r\n addOrInviteSponsors: \"Lägg till eller bjud in sponsorer\",\r\n billingInfo: \"Nu är det är möjligt att fakturera sponsorer direkt från applikationen! Fakturering görs från vyn för sponsorer. Kontakt din förenings kontaktperson, om du vill aktivera faktureringsfunktionen.\",\r\n },\r\n myProfileView: {\r\n title: \"Inställningar\",\r\n logout: \"Skriv ut\",\r\n saveChanges: \"Spara ändringar\",\r\n slogan: \"Mitt motto\",\r\n account: \"Användarkonto\",\r\n profilePicture: \"Profilbild\",\r\n chooseProfilePicture: \"Välj profilbild\",\r\n instructions: \"Instruktioner\",\r\n language: \"Språk\",\r\n locale_fi: \"Finska\",\r\n locale_se: \"Svenska\",\r\n },\r\n sponsorsView: {\r\n title: \"Sponsorer\",\r\n sponsors: \"Sponsorer\",\r\n participatingSponsors: \"Sponsorer som kommit med\",\r\n paymentComplete: \"Betalningen är betald\",\r\n sendReminder: \"Påminn om betalningen\",\r\n reminderSent: \"Päminnelsen har skickats {0}\",\r\n billSent: \"Räkning har skickats {0}\",\r\n paymentCompleted: \"Betalningen är betald\",\r\n inviteSponsor: \"Bjud med en sponsor\",\r\n addSponsor: \"Lägg till en sponsor\",\r\n paymentPerRepeat: \"Summan för understödet {0} €/varv\",\r\n maxPayment: \"totalsumma {0} €\",\r\n paymentManual: \"Summan för understödet {0} €\",\r\n sendInvitation: \"Skicka inbjudningar\",\r\n sentInvitations: \"Skcikade inbjudningar\",\r\n invitedOn: \"Inbjudna {0}\",\r\n inviteAgain: \"Bjud med på nytt\",\r\n maxPaymentSum: \"Maksimisumma\",\r\n // notParticipating: \"Deltar inte\",\r\n noInvitations: \"Inga sända inbjudningar\",\r\n },\r\n startView: {\r\n title: \"\",\r\n signUp: \"Anmäld dig med\",\r\n login: \"Skriv in\",\r\n about: \"Bekanta dig med\",\r\n footerText: \"2018 © Finlands Friidrottsförbund rf\",\r\n },\r\n inviteSponsorView: {\r\n title: \"Bjud med sponsorer\",\r\n // sendInvitation: \"Skicka inbjudan\",\r\n // sendingInvitations: \"Inbjudan skickas till\",\r\n sendInvitation: \"Skicka inbjudningar\",\r\n sendingInvitations: \"Inbjud skickas till\",\r\n inFacebook: \"per Facebook\",\r\n viaEmail: \"Per epost\",\r\n writeEmailAddress: \"Skriv epostadress\",\r\n send: \"Skicka\",\r\n emailInvitationSent: \"Inbjudan är skickad\",\r\n emailInvitationsSent: \"Inbjudningarna har skickats\",\r\n emailInvitationFailed: \"Försändelsen av inbjudan misslyckades\",\r\n duplicateSponsor: \"Denna sponsor är redan på din lista. Ifall denna sponsor inte har svarat på inbjudan, kan du skicka en ny inbjudan via sponsor-sidan.\",\r\n invitePreviousSponsors: \"Bjud med tidigare sponsorer\",\r\n copySponsorLink: \"Kopiera inbjudnings länk\",\r\n copied: \"Kopierad\",\r\n },\r\n addSponsorView: {\r\n title: \"Lägg till en ny sponsor.\",\r\n fillSponsorInformation: \"Ge sponsorens uppgifter\",\r\n //name: \"Nimi\",\r\n firstname: \"Förnamn\",\r\n lastname: \"Efternamn\",\r\n email: \"E-postadress\",\r\n paymentAmount: \"Summa som man sponsorerar med (minimi {0}€)\",\r\n paymentPerRepeat: \"Summa / varv\",\r\n oneTimePayment: \"Engångssumma\",\r\n // maxPayment: \"Maksimisumma\",\r\n suggestedTarget: \"Toive tukikohteesta\",\r\n saveSponsor: \"Spara uppgifterna\",\r\n sponsorAdded: \"En sponsor har laggts till\",\r\n company: \"Företag\",\r\n companyName: \"Företagets namn\",\r\n private: \"Privat person\",\r\n streetAddress: \"Gatuadress\",\r\n zipCode: \"Postnummer\",\r\n city: \"Stad\",\r\n info: \"Tilläggsinformation\",\r\n paymentMethodMail: \"Post\",\r\n paymentMethodEmail: \"E-post\",\r\n paymentMethodEInvoice: \"E-faktura\",\r\n bank: \"Bank\",\r\n eInvoicePaymentAddress: \"E-faktureringsadress\",\r\n },\r\n invitePreviousSponsorsView: {\r\n inviteSelected: \"Skicka inbjudan till utvalda sponsorn\",\r\n selectAll: \"Välj alla\",\r\n sendingInvitations: \"Inbjudan skickas till\",\r\n invitationsSent: \"Inbjudan har skickats\",\r\n noSponsors: \"Du har inte tidigare sponsorer\",\r\n },\r\n chooseOrganizationView: {\r\n title: \"Välj förening\",\r\n },\r\n chooseEventView: {\r\n title: \"Välj Ärevarv\",\r\n },\r\n statisticsView: {\r\n title: \"Statistik\",\r\n userStatistics: \"Egen\",\r\n eventStatistics: \"Insamling Top {0}\",\r\n organizationStatistics: \"Förening\",\r\n topEventParticipants: \"Insmlare Top {0}\",\r\n // allStatistics: \"Ärevarv\",\r\n allStatistics: \"Föreningar Top {0}\",\r\n },\r\n userStatisticsView: {\r\n title: \"Mina prestationer\",\r\n events: \"Insamling\",\r\n event: \"Händelse\",\r\n // paidSum: \"Insamlade €\",\r\n paidSum: \"Betalat €\",\r\n // estimated: \"Lovade €\",\r\n estimated: \"Insamlat €\",\r\n },\r\n eventStatisticsView: {\r\n topParticipants: \"{0} top {1}\",\r\n },\r\n organizationStatisticsView: {\r\n events: \"Insamling\",\r\n },\r\n allStatisticsView: {\r\n numberOfParticipants: \"Insamlare\",\r\n topOrganizations: \"Ärevarv-föreningar top {0}\",\r\n raisedSum: \"Insamlad summa\",\r\n },\r\n editRepeatsView: {\r\n title: \"Varv\",\r\n setEstimatedLaps: \"Ange din målsättnig om antal varv \",\r\n repeats: \"Antalvarv\",\r\n save: \"Spara\",\r\n },\r\n eventParticipantTopList: {\r\n topParticipants: \"Bästa insamlare i evenemanget\",\r\n },\r\n permissionView: {\r\n backToHome: \"Tillbaka till framsidan\",\r\n },\r\n mobileAppInstructionsView: {\r\n title: \"Mobilapplikationens instruktioner\",\r\n },\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/i18n/se.ts\n// module id = 78\n// module chunks = 0","import LoginView from \"./LoginView\";\r\nimport HomeView from \"./HomeView\";\r\nimport MyProfileView from \"./MyProfileView\";\r\nimport EditRepeatsView from \"./EditRepeatsView\";\r\nimport SponsorsView from \"./SponsorsView\";\r\nimport InviteSponsorView from \"./InviteSponsorView\";\r\nimport InvitePreviousSponsorsView from \"./InvitePreviousSponsorsView\";\r\nimport AboutKKView from \"./AboutKKView\";\r\nimport AddSponsorView from \"./AddSponsorView\";\r\nimport ChooseEventView from \"./ChooseEventView\";\r\nimport ChooseOrganizationView from \"./ChooseOrganizationView\";\r\nimport StartView from \"./StartView\";\r\nimport StatisticsView from \"./StatisticsView\";\r\nimport UserStatisticsView from \"./UserStatisticsView\";\r\nimport EventStatisticsView from \"./EventStatisticsView\";\r\n// import OrganizationStatisticsView from \"./OrganizationStatisticsView\";\r\nimport AllStatisticsView from \"./AllStatisticsView\";\r\nimport TopEventParticipants from \"./TopEventParticipantsView\";\r\nimport PermissionView from \"./PermissionView\";\r\nimport InstructionsView from \"./InstructionsView\";\r\nimport MobileAppInstructionsView from \"./MobileAppInstructionsView\";\r\nimport PrivacySettingsView from \"./PrivacySettingsView\";\r\nexport var routes = [\r\n { name: \"LoginView\", path: \"/login\", component: LoginView },\r\n { name: \"Start\", path: \"/start\", component: StartView },\r\n { name: \"HomeView\", path: \"/\", component: HomeView },\r\n { name: \"MyProfileView\", path: \"/myprofile\", component: MyProfileView },\r\n { name: \"PrivacySettings\", path: \"/privacy-settings\", component: PrivacySettingsView },\r\n { name: \"SponsorsView\", path: \"/sponsors\", component: SponsorsView },\r\n { name: \"InviteSponsorView\", path: \"/invite-sponsor\", component: InviteSponsorView },\r\n { name: \"InvitePreviousSponsors\", path: \"/invite-previous-sponsors\", component: InvitePreviousSponsorsView },\r\n { name: \"AboutKK\", path: \"/about\", component: AboutKKView },\r\n { name: \"AddSponsorView\", path: \"/add-sponsor\", component: AddSponsorView },\r\n { name: \"ChooseEventView\", path: \"/choose-event\", component: ChooseEventView },\r\n { name: \"ChooseOrganizationView\", path: \"/choose-organization\", component: ChooseOrganizationView },\r\n {\r\n name: \"StatisticsView\",\r\n path: \"/statistics\",\r\n component: StatisticsView,\r\n children: [\r\n { path: 'user', component: UserStatisticsView },\r\n { path: 'event', component: EventStatisticsView },\r\n /* { path: 'organization', component: OrganizationStatisticsView }, */\r\n { path: 'participants', component: TopEventParticipants },\r\n { path: 'all', component: AllStatisticsView },\r\n ],\r\n },\r\n { name: \"EditLapsView\", path: \"/edit-laps\", component: EditRepeatsView },\r\n { name: \"PermissionView\", path: \"/permission\", component: PermissionView },\r\n { name: \"InstructionsView\", path: \"/instructions\", component: InstructionsView },\r\n { name: \"MobileAppInstructionsView\", path: \"/mobile-app-instructions\", component: MobileAppInstructionsView },\r\n // Redirect unknown routes to home view\r\n { path: \"*\", redirect: \"/\" },\r\n];\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/index.ts\n// module id = 79\n// module chunks = 0","import VueRouter from \"vue-router\";\r\nimport { store } from \"store\";\r\nVueRouter.prototype.clearHistory = function () {\r\n if (this.history.stack) {\r\n this.history.stack = this.history.current ? [this.history.current] : [];\r\n this.history.index = this.history.current ? 0 : -1;\r\n }\r\n};\r\nfunction hasRouted(vue) {\r\n return (typeof vue[\"routed\"] == \"function\");\r\n}\r\nfunction callRouted(vue) {\r\n if (hasRouted(vue))\r\n vue[\"routed\"](vue.$route.params, vue.$route.query);\r\n}\r\n// function popup(title, description){\r\n// store.popup.title = title;\r\n// store.popup.description = description;\r\n// store.popup.visible = true;\r\n// }\r\nexport default {\r\n created: function () {\r\n var _this = this;\r\n if (hasRouted(this)) {\r\n callRouted(this);\r\n this.$watch(\"$route\", function () { return callRouted(_this); });\r\n }\r\n window.scrollTo(null, 0);\r\n },\r\n computed: {\r\n root: function () { return this.$root; },\r\n },\r\n methods: {\r\n $reload: function () {\r\n this.$resetData();\r\n callRouted(this);\r\n },\r\n $resetData: function () {\r\n Object.assign(this.$data, (typeof this.$options.data == \"function\")\r\n ? this.$options.data.apply(this)\r\n : this.$options);\r\n },\r\n $popup: function (title, description) {\r\n store.popup.title = title;\r\n store.popup.description = description;\r\n store.popup.visible = true;\r\n },\r\n },\r\n filters: {\r\n truncate: function (text, maxLength) {\r\n if (!text)\r\n return \"\";\r\n if (maxLength < 3)\r\n maxLength = 3;\r\n if (text.length > maxLength)\r\n text = text.substring(0, maxLength) + \"...\";\r\n return text;\r\n }\r\n },\r\n};\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/vue-mixins.ts\n// module id = 80\n// module chunks = 0","/**\n * vue-class-component v5.0.2\n * (c) 2015-2017 Evan You\n * @license MIT\n */\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }\n\nvar Vue = _interopDefault(require('vue'));\n\nfunction createDecorator(factory) {\n return function (target, key, index) {\n var Ctor = target.constructor;\n if (!Ctor.__decorators__) {\n Ctor.__decorators__ = [];\n }\n if (typeof index !== 'number') {\n index = undefined;\n }\n Ctor.__decorators__.push(function (options) { return factory(options, key, index); });\n };\n}\nfunction warn(message) {\n if (typeof console !== 'undefined') {\n console.warn('[vue-class-component] ' + message);\n }\n}\n\nfunction collectDataFromConstructor(vm, Component) {\n Component.prototype._init = function () {\n var _this = this;\n var keys = Object.getOwnPropertyNames(vm);\n if (vm.$options.props) {\n for (var key in vm.$options.props) {\n if (!vm.hasOwnProperty(key)) {\n keys.push(key);\n }\n }\n }\n keys.forEach(function (key) {\n if (key.charAt(0) !== '_') {\n Object.defineProperty(_this, key, {\n get: function () { return vm[key]; },\n set: function (value) { return vm[key] = value; }\n });\n }\n });\n };\n var data = new Component();\n var plainData = {};\n Object.keys(data).forEach(function (key) {\n if (data[key] !== undefined) {\n plainData[key] = data[key];\n }\n });\n if (process.env.NODE_ENV !== 'production') {\n if (!(Component.prototype instanceof Vue) && Object.keys(plainData).length > 0) {\n warn('Component class must inherit Vue or its descendant class ' +\n 'when class property is used.');\n }\n }\n return plainData;\n}\n\nvar $internalHooks = [\n 'data',\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeDestroy',\n 'destroyed',\n 'beforeUpdate',\n 'updated',\n 'activated',\n 'deactivated',\n 'render'\n];\nfunction componentFactory(Component, options) {\n if (options === void 0) { options = {}; }\n options.name = options.name || Component._componentTag || Component.name;\n var proto = Component.prototype;\n Object.getOwnPropertyNames(proto).forEach(function (key) {\n if (key === 'constructor') {\n return;\n }\n if ($internalHooks.indexOf(key) > -1) {\n options[key] = proto[key];\n return;\n }\n var descriptor = Object.getOwnPropertyDescriptor(proto, key);\n if (typeof descriptor.value === 'function') {\n (options.methods || (options.methods = {}))[key] = descriptor.value;\n }\n else if (descriptor.get || descriptor.set) {\n (options.computed || (options.computed = {}))[key] = {\n get: descriptor.get,\n set: descriptor.set\n };\n }\n });\n (options.mixins || (options.mixins = [])).push({\n data: function () {\n return collectDataFromConstructor(this, Component);\n }\n });\n var decorators = Component.__decorators__;\n if (decorators) {\n decorators.forEach(function (fn) { return fn(options); });\n }\n var superProto = Object.getPrototypeOf(Component.prototype);\n var Super = superProto instanceof Vue\n ? superProto.constructor\n : Vue;\n return Super.extend(options);\n}\n\nfunction Component(options) {\n if (typeof options === 'function') {\n return componentFactory(options);\n }\n return function (Component) {\n return componentFactory(Component, options);\n };\n}\n(function (Component) {\n function registerHooks(keys) {\n $internalHooks.push.apply($internalHooks, keys);\n }\n Component.registerHooks = registerHooks;\n})(Component || (Component = {}));\nvar Component$1 = Component;\n\nexports['default'] = Component$1;\nexports.createDecorator = createDecorator;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-class-component/dist/vue-class-component.common.js\n// module id = 81\n// module chunks = 0","/*!\n * vue-i18n v7.8.1 \n * (c) 2018 kazuya kawaguchi\n * Released under the MIT License.\n */\n/* */\n\n/**\n * utilites\n */\n\nfunction warn (msg, err) {\n if (typeof console !== 'undefined') {\n console.warn('[vue-i18n] ' + msg);\n /* istanbul ignore if */\n if (err) {\n console.warn(err.stack);\n }\n }\n}\n\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\nvar toString = Object.prototype.toString;\nvar OBJECT_STRING = '[object Object]';\nfunction isPlainObject (obj) {\n return toString.call(obj) === OBJECT_STRING\n}\n\nfunction isNull (val) {\n return val === null || val === undefined\n}\n\nfunction parseArgs () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var locale = null;\n var params = null;\n if (args.length === 1) {\n if (isObject(args[0]) || Array.isArray(args[0])) {\n params = args[0];\n } else if (typeof args[0] === 'string') {\n locale = args[0];\n }\n } else if (args.length === 2) {\n if (typeof args[0] === 'string') {\n locale = args[0];\n }\n /* istanbul ignore if */\n if (isObject(args[1]) || Array.isArray(args[1])) {\n params = args[1];\n }\n }\n\n return { locale: locale, params: params }\n}\n\nfunction getOldChoiceIndexFixed (choice) {\n return choice\n ? choice > 1\n ? 1\n : 0\n : 1\n}\n\nfunction getChoiceIndex (choice, choicesLength) {\n choice = Math.abs(choice);\n\n if (choicesLength === 2) { return getOldChoiceIndexFixed(choice) }\n\n return choice ? Math.min(choice, 2) : 0\n}\n\nfunction fetchChoice (message, choice) {\n /* istanbul ignore if */\n if (!message && typeof message !== 'string') { return null }\n var choices = message.split('|');\n\n choice = getChoiceIndex(choice, choices.length);\n if (!choices[choice]) { return message }\n return choices[choice].trim()\n}\n\nfunction looseClone (obj) {\n return JSON.parse(JSON.stringify(obj))\n}\n\nfunction remove (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn (obj, key) {\n return hasOwnProperty.call(obj, key)\n}\n\nfunction merge (target) {\n var arguments$1 = arguments;\n\n var output = Object(target);\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments$1[i];\n if (source !== undefined && source !== null) {\n var key = (void 0);\n for (key in source) {\n if (hasOwn(source, key)) {\n if (isObject(source[key])) {\n output[key] = merge(output[key], source[key]);\n } else {\n output[key] = source[key];\n }\n }\n }\n }\n }\n return output\n}\n\nfunction looseEqual (a, b) {\n if (a === b) { return true }\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = Array.isArray(a);\n var isArrayB = Array.isArray(b);\n if (isArrayA && isArrayB) {\n return a.length === b.length && a.every(function (e, i) {\n return looseEqual(e, b[i])\n })\n } else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return keysA.length === keysB.length && keysA.every(function (key) {\n return looseEqual(a[key], b[key])\n })\n } else {\n /* istanbul ignore next */\n return false\n }\n } catch (e) {\n /* istanbul ignore next */\n return false\n }\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b)\n } else {\n return false\n }\n}\n\nvar canUseDateTimeFormat =\n typeof Intl !== 'undefined' && typeof Intl.DateTimeFormat !== 'undefined';\n\nvar canUseNumberFormat =\n typeof Intl !== 'undefined' && typeof Intl.NumberFormat !== 'undefined';\n\n/* */\n\nfunction extend (Vue) {\n // $FlowFixMe\n Object.defineProperty(Vue.prototype, '$t', {\n get: function get () {\n var this$1 = this;\n\n return function (key) {\n var values = [], len = arguments.length - 1;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 1 ];\n\n var i18n = this$1.$i18n;\n return i18n._t.apply(i18n, [ key, i18n.locale, i18n._getMessages(), this$1 ].concat( values ))\n }\n }\n });\n // $FlowFixMe\n Object.defineProperty(Vue.prototype, '$tc', {\n get: function get () {\n var this$1 = this;\n\n return function (key, choice) {\n var values = [], len = arguments.length - 2;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 2 ];\n\n var i18n = this$1.$i18n;\n return i18n._tc.apply(i18n, [ key, i18n.locale, i18n._getMessages(), this$1, choice ].concat( values ))\n }\n }\n });\n // $FlowFixMe\n Object.defineProperty(Vue.prototype, '$te', {\n get: function get () {\n var this$1 = this;\n\n return function (key, locale) {\n var i18n = this$1.$i18n;\n return i18n._te(key, i18n.locale, i18n._getMessages(), locale)\n }\n }\n });\n // $FlowFixMe\n Object.defineProperty(Vue.prototype, '$d', {\n get: function get () {\n var this$1 = this;\n\n return function (value) {\n var ref;\n\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n return (ref = this$1.$i18n).d.apply(ref, [ value ].concat( args ))\n }\n }\n });\n // $FlowFixMe\n Object.defineProperty(Vue.prototype, '$n', {\n get: function get () {\n var this$1 = this;\n\n return function (value) {\n var ref;\n\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n return (ref = this$1.$i18n).n.apply(ref, [ value ].concat( args ))\n }\n }\n });\n}\n\n/* */\n\nvar mixin = {\n beforeCreate: function beforeCreate () {\n var options = this.$options;\n options.i18n = options.i18n || (options.__i18n ? {} : null);\n\n if (options.i18n) {\n if (options.i18n instanceof VueI18n) {\n // init locale messages via custom blocks\n if (options.__i18n) {\n try {\n var localeMessages = {};\n options.__i18n.forEach(function (resource) {\n localeMessages = merge(localeMessages, JSON.parse(resource));\n });\n Object.keys(localeMessages).forEach(function (locale) {\n options.i18n.mergeLocaleMessage(locale, localeMessages[locale]);\n });\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Cannot parse locale messages via custom blocks.\", e);\n }\n }\n }\n this._i18n = options.i18n;\n this._i18nWatcher = this._i18n.watchI18nData();\n this._i18n.subscribeDataChanging(this);\n this._subscribing = true;\n } else if (isPlainObject(options.i18n)) {\n // component local i18n\n if (this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n) {\n options.i18n.root = this.$root.$i18n;\n options.i18n.formatter = this.$root.$i18n.formatter;\n options.i18n.fallbackLocale = this.$root.$i18n.fallbackLocale;\n options.i18n.silentTranslationWarn = this.$root.$i18n.silentTranslationWarn;\n }\n\n // init locale messages via custom blocks\n if (options.__i18n) {\n try {\n var localeMessages$1 = {};\n options.__i18n.forEach(function (resource) {\n localeMessages$1 = merge(localeMessages$1, JSON.parse(resource));\n });\n options.i18n.messages = localeMessages$1;\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Cannot parse locale messages via custom blocks.\", e);\n }\n }\n }\n\n this._i18n = new VueI18n(options.i18n);\n this._i18nWatcher = this._i18n.watchI18nData();\n this._i18n.subscribeDataChanging(this);\n this._subscribing = true;\n\n if (options.i18n.sync === undefined || !!options.i18n.sync) {\n this._localeWatcher = this.$i18n.watchLocale();\n }\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Cannot be interpreted 'i18n' option.\");\n }\n }\n } else if (this.$root && this.$root.$i18n && this.$root.$i18n instanceof VueI18n) {\n // root i18n\n this._i18n = this.$root.$i18n;\n this._i18n.subscribeDataChanging(this);\n this._subscribing = true;\n } else if (options.parent && options.parent.$i18n && options.parent.$i18n instanceof VueI18n) {\n // parent i18n\n this._i18n = options.parent.$i18n;\n this._i18n.subscribeDataChanging(this);\n this._subscribing = true;\n }\n },\n\n beforeDestroy: function beforeDestroy () {\n if (!this._i18n) { return }\n\n if (this._subscribing) {\n this._i18n.unsubscribeDataChanging(this);\n delete this._subscribing;\n }\n\n if (this._i18nWatcher) {\n this._i18nWatcher();\n delete this._i18nWatcher;\n }\n\n if (this._localeWatcher) {\n this._localeWatcher();\n delete this._localeWatcher;\n }\n\n this._i18n = null;\n }\n}\n\n/* */\n\nvar component = {\n name: 'i18n',\n functional: true,\n props: {\n tag: {\n type: String,\n default: 'span'\n },\n path: {\n type: String,\n required: true\n },\n locale: {\n type: String\n },\n places: {\n type: [Array, Object]\n }\n },\n render: function render (h, ref) {\n var props = ref.props;\n var data = ref.data;\n var children = ref.children;\n var parent = ref.parent;\n\n var i18n = parent.$i18n;\n\n children = (children || []).filter(function (child) {\n return child.tag || (child.text = child.text.trim())\n });\n\n if (!i18n) {\n if (process.env.NODE_ENV !== 'production') {\n warn('Cannot find VueI18n instance!');\n }\n return children\n }\n\n var path = props.path;\n var locale = props.locale;\n\n var params = {};\n var places = props.places || {};\n\n var hasPlaces = Array.isArray(places)\n ? places.length > 0\n : Object.keys(places).length > 0;\n\n var everyPlace = children.every(function (child) {\n if (child.data && child.data.attrs) {\n var place = child.data.attrs.place;\n return (typeof place !== 'undefined') && place !== ''\n }\n });\n\n if (hasPlaces && children.length > 0 && !everyPlace) {\n warn('If places prop is set, all child elements must have place prop set.');\n }\n\n if (Array.isArray(places)) {\n places.forEach(function (el, i) {\n params[i] = el;\n });\n } else {\n Object.keys(places).forEach(function (key) {\n params[key] = places[key];\n });\n }\n\n children.forEach(function (child, i) {\n var key = everyPlace\n ? (\"\" + (child.data.attrs.place))\n : (\"\" + i);\n params[key] = child;\n });\n\n return h(props.tag, data, i18n.i(path, locale, params))\n }\n}\n\n/* */\n\nfunction bind (el, binding, vnode) {\n if (!assert(el, vnode)) { return }\n\n t(el, binding, vnode);\n}\n\nfunction update (el, binding, vnode, oldVNode) {\n if (!assert(el, vnode)) { return }\n\n if (localeEqual(el, vnode) && looseEqual(binding.value, binding.oldValue)) { return }\n\n t(el, binding, vnode);\n}\n\nfunction unbind (el, binding, vnode, oldVNode) {\n if (!assert(el, vnode)) { return }\n\n el.textContent = '';\n el._vt = undefined;\n delete el['_vt'];\n el._locale = undefined;\n delete el['_locale'];\n}\n\nfunction assert (el, vnode) {\n var vm = vnode.context;\n if (!vm) {\n warn('not exist Vue instance in VNode context');\n return false\n }\n\n if (!vm.$i18n) {\n warn('not exist VueI18n instance in Vue instance');\n return false\n }\n\n return true\n}\n\nfunction localeEqual (el, vnode) {\n var vm = vnode.context;\n return el._locale === vm.$i18n.locale\n}\n\nfunction t (el, binding, vnode) {\n var ref$1, ref$2;\n\n var value = binding.value;\n\n var ref = parseValue(value);\n var path = ref.path;\n var locale = ref.locale;\n var args = ref.args;\n var choice = ref.choice;\n if (!path && !locale && !args) {\n warn('not support value type');\n return\n }\n\n if (!path) {\n warn('required `path` in v-t directive');\n return\n }\n\n var vm = vnode.context;\n if (choice) {\n el._vt = el.textContent = (ref$1 = vm.$i18n).tc.apply(ref$1, [ path, choice ].concat( makeParams(locale, args) ));\n } else {\n el._vt = el.textContent = (ref$2 = vm.$i18n).t.apply(ref$2, [ path ].concat( makeParams(locale, args) ));\n }\n el._locale = vm.$i18n.locale;\n}\n\nfunction parseValue (value) {\n var path;\n var locale;\n var args;\n var choice;\n\n if (typeof value === 'string') {\n path = value;\n } else if (isPlainObject(value)) {\n path = value.path;\n locale = value.locale;\n args = value.args;\n choice = value.choice;\n }\n\n return { path: path, locale: locale, args: args, choice: choice }\n}\n\nfunction makeParams (locale, args) {\n var params = [];\n\n locale && params.push(locale);\n if (args && (Array.isArray(args) || isPlainObject(args))) {\n params.push(args);\n }\n\n return params\n}\n\nvar Vue;\n\nfunction install (_Vue) {\n Vue = _Vue;\n\n var version = (Vue.version && Number(Vue.version.split('.')[0])) || -1;\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && install.installed) {\n warn('already installed.');\n return\n }\n install.installed = true;\n\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && version < 2) {\n warn((\"vue-i18n (\" + (install.version) + \") need to use Vue 2.0 or later (Vue: \" + (Vue.version) + \").\"));\n return\n }\n\n Object.defineProperty(Vue.prototype, '$i18n', {\n get: function get () { return this._i18n }\n });\n\n extend(Vue);\n Vue.mixin(mixin);\n Vue.directive('t', { bind: bind, update: update, unbind: unbind });\n Vue.component(component.name, component);\n\n // use object-based merge strategy\n var strats = Vue.config.optionMergeStrategies;\n strats.i18n = strats.methods;\n}\n\n/* */\n\nvar BaseFormatter = function BaseFormatter () {\n this._caches = Object.create(null);\n};\n\nBaseFormatter.prototype.interpolate = function interpolate (message, values) {\n if (!values) {\n return [message]\n }\n var tokens = this._caches[message];\n if (!tokens) {\n tokens = parse(message);\n this._caches[message] = tokens;\n }\n return compile(tokens, values)\n};\n\n\n\nvar RE_TOKEN_LIST_VALUE = /^(\\d)+/;\nvar RE_TOKEN_NAMED_VALUE = /^(\\w)+/;\n\nfunction parse (format) {\n var tokens = [];\n var position = 0;\n\n var text = '';\n while (position < format.length) {\n var char = format[position++];\n if (char === '{') {\n if (text) {\n tokens.push({ type: 'text', value: text });\n }\n\n text = '';\n var sub = '';\n char = format[position++];\n while (char !== '}') {\n sub += char;\n char = format[position++];\n }\n\n var type = RE_TOKEN_LIST_VALUE.test(sub)\n ? 'list'\n : RE_TOKEN_NAMED_VALUE.test(sub)\n ? 'named'\n : 'unknown';\n tokens.push({ value: sub, type: type });\n } else if (char === '%') {\n // when found rails i18n syntax, skip text capture\n if (format[(position)] !== '{') {\n text += char;\n }\n } else {\n text += char;\n }\n }\n\n text && tokens.push({ type: 'text', value: text });\n\n return tokens\n}\n\nfunction compile (tokens, values) {\n var compiled = [];\n var index = 0;\n\n var mode = Array.isArray(values)\n ? 'list'\n : isObject(values)\n ? 'named'\n : 'unknown';\n if (mode === 'unknown') { return compiled }\n\n while (index < tokens.length) {\n var token = tokens[index];\n switch (token.type) {\n case 'text':\n compiled.push(token.value);\n break\n case 'list':\n compiled.push(values[parseInt(token.value, 10)]);\n break\n case 'named':\n if (mode === 'named') {\n compiled.push((values)[token.value]);\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Type of token '\" + (token.type) + \"' and format of value '\" + mode + \"' don't match!\"));\n }\n }\n break\n case 'unknown':\n if (process.env.NODE_ENV !== 'production') {\n warn(\"Detect 'unknown' type of token!\");\n }\n break\n }\n index++;\n }\n\n return compiled\n}\n\n/* */\n\n/**\n * Path paerser\n * - Inspired:\n * Vue.js Path parser\n */\n\n// actions\nvar APPEND = 0;\nvar PUSH = 1;\nvar INC_SUB_PATH_DEPTH = 2;\nvar PUSH_SUB_PATH = 3;\n\n// states\nvar BEFORE_PATH = 0;\nvar IN_PATH = 1;\nvar BEFORE_IDENT = 2;\nvar IN_IDENT = 3;\nvar IN_SUB_PATH = 4;\nvar IN_SINGLE_QUOTE = 5;\nvar IN_DOUBLE_QUOTE = 6;\nvar AFTER_PATH = 7;\nvar ERROR = 8;\n\nvar pathStateMachine = [];\n\npathStateMachine[BEFORE_PATH] = {\n 'ws': [BEFORE_PATH],\n 'ident': [IN_IDENT, APPEND],\n '[': [IN_SUB_PATH],\n 'eof': [AFTER_PATH]\n};\n\npathStateMachine[IN_PATH] = {\n 'ws': [IN_PATH],\n '.': [BEFORE_IDENT],\n '[': [IN_SUB_PATH],\n 'eof': [AFTER_PATH]\n};\n\npathStateMachine[BEFORE_IDENT] = {\n 'ws': [BEFORE_IDENT],\n 'ident': [IN_IDENT, APPEND],\n '0': [IN_IDENT, APPEND],\n 'number': [IN_IDENT, APPEND]\n};\n\npathStateMachine[IN_IDENT] = {\n 'ident': [IN_IDENT, APPEND],\n '0': [IN_IDENT, APPEND],\n 'number': [IN_IDENT, APPEND],\n 'ws': [IN_PATH, PUSH],\n '.': [BEFORE_IDENT, PUSH],\n '[': [IN_SUB_PATH, PUSH],\n 'eof': [AFTER_PATH, PUSH]\n};\n\npathStateMachine[IN_SUB_PATH] = {\n \"'\": [IN_SINGLE_QUOTE, APPEND],\n '\"': [IN_DOUBLE_QUOTE, APPEND],\n '[': [IN_SUB_PATH, INC_SUB_PATH_DEPTH],\n ']': [IN_PATH, PUSH_SUB_PATH],\n 'eof': ERROR,\n 'else': [IN_SUB_PATH, APPEND]\n};\n\npathStateMachine[IN_SINGLE_QUOTE] = {\n \"'\": [IN_SUB_PATH, APPEND],\n 'eof': ERROR,\n 'else': [IN_SINGLE_QUOTE, APPEND]\n};\n\npathStateMachine[IN_DOUBLE_QUOTE] = {\n '\"': [IN_SUB_PATH, APPEND],\n 'eof': ERROR,\n 'else': [IN_DOUBLE_QUOTE, APPEND]\n};\n\n/**\n * Check if an expression is a literal value.\n */\n\nvar literalValueRE = /^\\s?(true|false|-?[\\d.]+|'[^']*'|\"[^\"]*\")\\s?$/;\nfunction isLiteral (exp) {\n return literalValueRE.test(exp)\n}\n\n/**\n * Strip quotes from a string\n */\n\nfunction stripQuotes (str) {\n var a = str.charCodeAt(0);\n var b = str.charCodeAt(str.length - 1);\n return a === b && (a === 0x22 || a === 0x27)\n ? str.slice(1, -1)\n : str\n}\n\n/**\n * Determine the type of a character in a keypath.\n */\n\nfunction getPathCharType (ch) {\n if (ch === undefined || ch === null) { return 'eof' }\n\n var code = ch.charCodeAt(0);\n\n switch (code) {\n case 0x5B: // [\n case 0x5D: // ]\n case 0x2E: // .\n case 0x22: // \"\n case 0x27: // '\n case 0x30: // 0\n return ch\n\n case 0x5F: // _\n case 0x24: // $\n case 0x2D: // -\n return 'ident'\n\n case 0x20: // Space\n case 0x09: // Tab\n case 0x0A: // Newline\n case 0x0D: // Return\n case 0xA0: // No-break space\n case 0xFEFF: // Byte Order Mark\n case 0x2028: // Line Separator\n case 0x2029: // Paragraph Separator\n return 'ws'\n }\n\n // a-z, A-Z\n if ((code >= 0x61 && code <= 0x7A) || (code >= 0x41 && code <= 0x5A)) {\n return 'ident'\n }\n\n // 1-9\n if (code >= 0x31 && code <= 0x39) { return 'number' }\n\n return 'else'\n}\n\n/**\n * Format a subPath, return its plain form if it is\n * a literal string or number. Otherwise prepend the\n * dynamic indicator (*).\n */\n\nfunction formatSubPath (path) {\n var trimmed = path.trim();\n // invalid leading 0\n if (path.charAt(0) === '0' && isNaN(path)) { return false }\n\n return isLiteral(trimmed) ? stripQuotes(trimmed) : '*' + trimmed\n}\n\n/**\n * Parse a string path into an array of segments\n */\n\nfunction parse$1 (path) {\n var keys = [];\n var index = -1;\n var mode = BEFORE_PATH;\n var subPathDepth = 0;\n var c;\n var key;\n var newChar;\n var type;\n var transition;\n var action;\n var typeMap;\n var actions = [];\n\n actions[PUSH] = function () {\n if (key !== undefined) {\n keys.push(key);\n key = undefined;\n }\n };\n\n actions[APPEND] = function () {\n if (key === undefined) {\n key = newChar;\n } else {\n key += newChar;\n }\n };\n\n actions[INC_SUB_PATH_DEPTH] = function () {\n actions[APPEND]();\n subPathDepth++;\n };\n\n actions[PUSH_SUB_PATH] = function () {\n if (subPathDepth > 0) {\n subPathDepth--;\n mode = IN_SUB_PATH;\n actions[APPEND]();\n } else {\n subPathDepth = 0;\n key = formatSubPath(key);\n if (key === false) {\n return false\n } else {\n actions[PUSH]();\n }\n }\n };\n\n function maybeUnescapeQuote () {\n var nextChar = path[index + 1];\n if ((mode === IN_SINGLE_QUOTE && nextChar === \"'\") ||\n (mode === IN_DOUBLE_QUOTE && nextChar === '\"')) {\n index++;\n newChar = '\\\\' + nextChar;\n actions[APPEND]();\n return true\n }\n }\n\n while (mode !== null) {\n index++;\n c = path[index];\n\n if (c === '\\\\' && maybeUnescapeQuote()) {\n continue\n }\n\n type = getPathCharType(c);\n typeMap = pathStateMachine[mode];\n transition = typeMap[type] || typeMap['else'] || ERROR;\n\n if (transition === ERROR) {\n return // parse error\n }\n\n mode = transition[0];\n action = actions[transition[1]];\n if (action) {\n newChar = transition[2];\n newChar = newChar === undefined\n ? c\n : newChar;\n if (action() === false) {\n return\n }\n }\n\n if (mode === AFTER_PATH) {\n return keys\n }\n }\n}\n\n\n\n\n\nfunction empty (target) {\n /* istanbul ignore else */\n if (Array.isArray(target)) {\n return target.length === 0\n } else {\n return false\n }\n}\n\nvar I18nPath = function I18nPath () {\n this._cache = Object.create(null);\n};\n\n/**\n * External parse that check for a cache hit first\n */\nI18nPath.prototype.parsePath = function parsePath (path) {\n var hit = this._cache[path];\n if (!hit) {\n hit = parse$1(path);\n if (hit) {\n this._cache[path] = hit;\n }\n }\n return hit || []\n};\n\n/**\n * Get path value from path string\n */\nI18nPath.prototype.getPathValue = function getPathValue (obj, path) {\n if (!isObject(obj)) { return null }\n\n var paths = this.parsePath(path);\n if (empty(paths)) {\n return null\n } else {\n var length = paths.length;\n var ret = null;\n var last = obj;\n var i = 0;\n while (i < length) {\n var value = last[paths[i]];\n if (value === undefined) {\n last = null;\n break\n }\n last = value;\n i++;\n }\n\n ret = last;\n return ret\n }\n};\n\n/* */\n\n\n\nvar numberFormatKeys = [\n 'style',\n 'currency',\n 'currencyDisplay',\n 'useGrouping',\n 'minimumIntegerDigits',\n 'minimumFractionDigits',\n 'maximumFractionDigits',\n 'minimumSignificantDigits',\n 'maximumSignificantDigits',\n 'localeMatcher',\n 'formatMatcher'\n];\n\nvar VueI18n = function VueI18n (options) {\n var this$1 = this;\n if ( options === void 0 ) options = {};\n\n // Auto install if it is not done yet and `window` has `Vue`.\n // To allow users to avoid auto-installation in some cases,\n // this code should be placed here. See #290\n /* istanbul ignore if */\n if (!Vue && typeof window !== 'undefined' && window.Vue) {\n install(window.Vue);\n }\n\n var locale = options.locale || 'en-US';\n var fallbackLocale = options.fallbackLocale || 'en-US';\n var messages = options.messages || {};\n var dateTimeFormats = options.dateTimeFormats || {};\n var numberFormats = options.numberFormats || {};\n\n this._vm = null;\n this._formatter = options.formatter || new BaseFormatter();\n this._missing = options.missing || null;\n this._root = options.root || null;\n this._sync = options.sync === undefined ? true : !!options.sync;\n this._fallbackRoot = options.fallbackRoot === undefined\n ? true\n : !!options.fallbackRoot;\n this._silentTranslationWarn = options.silentTranslationWarn === undefined\n ? false\n : !!options.silentTranslationWarn;\n this._dateTimeFormatters = {};\n this._numberFormatters = {};\n this._path = new I18nPath();\n this._dataListeners = [];\n\n this._exist = function (message, key) {\n if (!message || !key) { return false }\n return !isNull(this$1._path.getPathValue(message, key))\n };\n\n this._initVM({\n locale: locale,\n fallbackLocale: fallbackLocale,\n messages: messages,\n dateTimeFormats: dateTimeFormats,\n numberFormats: numberFormats\n });\n};\n\nvar prototypeAccessors = { vm: { configurable: true },messages: { configurable: true },dateTimeFormats: { configurable: true },numberFormats: { configurable: true },locale: { configurable: true },fallbackLocale: { configurable: true },missing: { configurable: true },formatter: { configurable: true },silentTranslationWarn: { configurable: true } };\n\nVueI18n.prototype._initVM = function _initVM (data) {\n var silent = Vue.config.silent;\n Vue.config.silent = true;\n this._vm = new Vue({ data: data });\n Vue.config.silent = silent;\n};\n\nVueI18n.prototype.subscribeDataChanging = function subscribeDataChanging (vm) {\n this._dataListeners.push(vm);\n};\n\nVueI18n.prototype.unsubscribeDataChanging = function unsubscribeDataChanging (vm) {\n remove(this._dataListeners, vm);\n};\n\nVueI18n.prototype.watchI18nData = function watchI18nData () {\n var self = this;\n return this._vm.$watch('$data', function () {\n var i = self._dataListeners.length;\n while (i--) {\n Vue.nextTick(function () {\n self._dataListeners[i] && self._dataListeners[i].$forceUpdate();\n });\n }\n }, { deep: true })\n};\n\nVueI18n.prototype.watchLocale = function watchLocale () {\n /* istanbul ignore if */\n if (!this._sync || !this._root) { return null }\n var target = this._vm;\n return this._root.vm.$watch('locale', function (val) {\n target.$set(target, 'locale', val);\n target.$forceUpdate();\n }, { immediate: true })\n};\n\nprototypeAccessors.vm.get = function () { return this._vm };\n\nprototypeAccessors.messages.get = function () { return looseClone(this._getMessages()) };\nprototypeAccessors.dateTimeFormats.get = function () { return looseClone(this._getDateTimeFormats()) };\nprototypeAccessors.numberFormats.get = function () { return looseClone(this._getNumberFormats()) };\n\nprototypeAccessors.locale.get = function () { return this._vm.locale };\nprototypeAccessors.locale.set = function (locale) {\n this._vm.$set(this._vm, 'locale', locale);\n};\n\nprototypeAccessors.fallbackLocale.get = function () { return this._vm.fallbackLocale };\nprototypeAccessors.fallbackLocale.set = function (locale) {\n this._vm.$set(this._vm, 'fallbackLocale', locale);\n};\n\nprototypeAccessors.missing.get = function () { return this._missing };\nprototypeAccessors.missing.set = function (handler) { this._missing = handler; };\n\nprototypeAccessors.formatter.get = function () { return this._formatter };\nprototypeAccessors.formatter.set = function (formatter) { this._formatter = formatter; };\n\nprototypeAccessors.silentTranslationWarn.get = function () { return this._silentTranslationWarn };\nprototypeAccessors.silentTranslationWarn.set = function (silent) { this._silentTranslationWarn = silent; };\n\nVueI18n.prototype._getMessages = function _getMessages () { return this._vm.messages };\nVueI18n.prototype._getDateTimeFormats = function _getDateTimeFormats () { return this._vm.dateTimeFormats };\nVueI18n.prototype._getNumberFormats = function _getNumberFormats () { return this._vm.numberFormats };\n\nVueI18n.prototype._warnDefault = function _warnDefault (locale, key, result, vm, values) {\n if (!isNull(result)) { return result }\n if (this._missing) {\n var missingRet = this._missing.apply(null, [locale, key, vm, values]);\n if (typeof missingRet === 'string') {\n return missingRet\n }\n } else {\n if (process.env.NODE_ENV !== 'production' && !this._silentTranslationWarn) {\n warn(\n \"Cannot translate the value of keypath '\" + key + \"'. \" +\n 'Use the value of keypath as default.'\n );\n }\n }\n return key\n};\n\nVueI18n.prototype._isFallbackRoot = function _isFallbackRoot (val) {\n return !val && !isNull(this._root) && this._fallbackRoot\n};\n\nVueI18n.prototype._interpolate = function _interpolate (\n locale,\n message,\n key,\n host,\n interpolateMode,\n values\n) {\n if (!message) { return null }\n\n var pathRet = this._path.getPathValue(message, key);\n if (Array.isArray(pathRet) || isPlainObject(pathRet)) { return pathRet }\n\n var ret;\n if (isNull(pathRet)) {\n /* istanbul ignore else */\n if (isPlainObject(message)) {\n ret = message[key];\n if (typeof ret !== 'string') {\n if (process.env.NODE_ENV !== 'production' && !this._silentTranslationWarn) {\n warn((\"Value of key '\" + key + \"' is not a string!\"));\n }\n return null\n }\n } else {\n return null\n }\n } else {\n /* istanbul ignore else */\n if (typeof pathRet === 'string') {\n ret = pathRet;\n } else {\n if (process.env.NODE_ENV !== 'production' && !this._silentTranslationWarn) {\n warn((\"Value of key '\" + key + \"' is not a string!\"));\n }\n return null\n }\n }\n\n // Check for the existance of links within the translated string\n if (ret.indexOf('@:') >= 0) {\n ret = this._link(locale, message, ret, host, interpolateMode, values);\n }\n\n return this._render(ret, interpolateMode, values)\n};\n\nVueI18n.prototype._link = function _link (\n locale,\n message,\n str,\n host,\n interpolateMode,\n values\n) {\n var this$1 = this;\n\n var ret = str;\n\n // Match all the links within the local\n // We are going to replace each of\n // them with its translation\n var matches = ret.match(/(@:[\\w\\-_|.]+)/g);\n for (var idx in matches) {\n // ie compatible: filter custom array\n // prototype method\n if (!matches.hasOwnProperty(idx)) {\n continue\n }\n var link = matches[idx];\n // Remove the leading @:\n var linkPlaceholder = link.substr(2);\n // Translate the link\n var translated = this$1._interpolate(\n locale, message, linkPlaceholder, host,\n interpolateMode === 'raw' ? 'string' : interpolateMode,\n interpolateMode === 'raw' ? undefined : values\n );\n\n if (this$1._isFallbackRoot(translated)) {\n if (process.env.NODE_ENV !== 'production' && !this$1._silentTranslationWarn) {\n warn((\"Fall back to translate the link placeholder '\" + linkPlaceholder + \"' with root locale.\"));\n }\n /* istanbul ignore if */\n if (!this$1._root) { throw Error('unexpected error') }\n var root = this$1._root;\n translated = root._translate(\n root._getMessages(), root.locale, root.fallbackLocale,\n linkPlaceholder, host, interpolateMode, values\n );\n }\n translated = this$1._warnDefault(\n locale, linkPlaceholder, translated, host,\n Array.isArray(values) ? values : [values]\n );\n\n // Replace the link with the translated\n ret = !translated ? ret : ret.replace(link, translated);\n }\n\n return ret\n};\n\nVueI18n.prototype._render = function _render (message, interpolateMode, values) {\n var ret = this._formatter.interpolate(message, values);\n // if interpolateMode is **not** 'string' ('row'),\n // return the compiled data (e.g. ['foo', VNode, 'bar']) with formatter\n return interpolateMode === 'string' ? ret.join('') : ret\n};\n\nVueI18n.prototype._translate = function _translate (\n messages,\n locale,\n fallback,\n key,\n host,\n interpolateMode,\n args\n) {\n var res =\n this._interpolate(locale, messages[locale], key, host, interpolateMode, args);\n if (!isNull(res)) { return res }\n\n res = this._interpolate(fallback, messages[fallback], key, host, interpolateMode, args);\n if (!isNull(res)) {\n if (process.env.NODE_ENV !== 'production' && !this._silentTranslationWarn) {\n warn((\"Fall back to translate the keypath '\" + key + \"' with '\" + fallback + \"' locale.\"));\n }\n return res\n } else {\n return null\n }\n};\n\nVueI18n.prototype._t = function _t (key, _locale, messages, host) {\n var ref;\n\n var values = [], len = arguments.length - 4;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 4 ];\n if (!key) { return '' }\n\n var parsedArgs = parseArgs.apply(void 0, values);\n var locale = parsedArgs.locale || _locale;\n\n var ret = this._translate(\n messages, locale, this.fallbackLocale, key,\n host, 'string', parsedArgs.params\n );\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._silentTranslationWarn) {\n warn((\"Fall back to translate the keypath '\" + key + \"' with root locale.\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n return (ref = this._root).t.apply(ref, [ key ].concat( values ))\n } else {\n return this._warnDefault(locale, key, ret, host, values)\n }\n};\n\nVueI18n.prototype.t = function t (key) {\n var ref;\n\n var values = [], len = arguments.length - 1;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 1 ];\n return (ref = this)._t.apply(ref, [ key, this.locale, this._getMessages(), null ].concat( values ))\n};\n\nVueI18n.prototype._i = function _i (key, locale, messages, host, values) {\n var ret =\n this._translate(messages, locale, this.fallbackLocale, key, host, 'raw', values);\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production' && !this._silentTranslationWarn) {\n warn((\"Fall back to interpolate the keypath '\" + key + \"' with root locale.\"));\n }\n if (!this._root) { throw Error('unexpected error') }\n return this._root.i(key, locale, values)\n } else {\n return this._warnDefault(locale, key, ret, host, [values])\n }\n};\n\nVueI18n.prototype.i = function i (key, locale, values) {\n /* istanbul ignore if */\n if (!key) { return '' }\n\n if (typeof locale !== 'string') {\n locale = this.locale;\n }\n\n return this._i(key, locale, this._getMessages(), null, values)\n};\n\nVueI18n.prototype._tc = function _tc (\n key,\n _locale,\n messages,\n host,\n choice\n) {\n var ref;\n\n var values = [], len = arguments.length - 5;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 5 ];\n if (!key) { return '' }\n if (choice === undefined) {\n choice = 1;\n }\n return fetchChoice((ref = this)._t.apply(ref, [ key, _locale, messages, host ].concat( values )), choice)\n};\n\nVueI18n.prototype.tc = function tc (key, choice) {\n var ref;\n\n var values = [], len = arguments.length - 2;\n while ( len-- > 0 ) values[ len ] = arguments[ len + 2 ];\n return (ref = this)._tc.apply(ref, [ key, this.locale, this._getMessages(), null, choice ].concat( values ))\n};\n\nVueI18n.prototype._te = function _te (key, locale, messages) {\n var args = [], len = arguments.length - 3;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 3 ];\n\n var _locale = parseArgs.apply(void 0, args).locale || locale;\n return this._exist(messages[_locale], key)\n};\n\nVueI18n.prototype.te = function te (key, locale) {\n return this._te(key, this.locale, this._getMessages(), locale)\n};\n\nVueI18n.prototype.getLocaleMessage = function getLocaleMessage (locale) {\n return looseClone(this._vm.messages[locale] || {})\n};\n\nVueI18n.prototype.setLocaleMessage = function setLocaleMessage (locale, message) {\n this._vm.$set(this._vm.messages, locale, message);\n};\n\nVueI18n.prototype.mergeLocaleMessage = function mergeLocaleMessage (locale, message) {\n this._vm.$set(this._vm.messages, locale, Vue.util.extend(this._vm.messages[locale] || {}, message));\n};\n\nVueI18n.prototype.getDateTimeFormat = function getDateTimeFormat (locale) {\n return looseClone(this._vm.dateTimeFormats[locale] || {})\n};\n\nVueI18n.prototype.setDateTimeFormat = function setDateTimeFormat (locale, format) {\n this._vm.$set(this._vm.dateTimeFormats, locale, format);\n};\n\nVueI18n.prototype.mergeDateTimeFormat = function mergeDateTimeFormat (locale, format) {\n this._vm.$set(this._vm.dateTimeFormats, locale, Vue.util.extend(this._vm.dateTimeFormats[locale] || {}, format));\n};\n\nVueI18n.prototype._localizeDateTime = function _localizeDateTime (\n value,\n locale,\n fallback,\n dateTimeFormats,\n key\n) {\n var _locale = locale;\n var formats = dateTimeFormats[_locale];\n\n // fallback locale\n if (isNull(formats) || isNull(formats[key])) {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Fall back to '\" + fallback + \"' datetime formats from '\" + locale + \" datetime formats.\"));\n }\n _locale = fallback;\n formats = dateTimeFormats[_locale];\n }\n\n if (isNull(formats) || isNull(formats[key])) {\n return null\n } else {\n var format = formats[key];\n var id = _locale + \"__\" + key;\n var formatter = this._dateTimeFormatters[id];\n if (!formatter) {\n formatter = this._dateTimeFormatters[id] = new Intl.DateTimeFormat(_locale, format);\n }\n return formatter.format(value)\n }\n};\n\nVueI18n.prototype._d = function _d (value, locale, key) {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && !VueI18n.availabilities.dateTimeFormat) {\n warn('Cannot format a Date value due to not supported Intl.DateTimeFormat.');\n return ''\n }\n\n if (!key) {\n return new Intl.DateTimeFormat(locale).format(value)\n }\n\n var ret =\n this._localizeDateTime(value, locale, this.fallbackLocale, this._getDateTimeFormats(), key);\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Fall back to datetime localization of root: key '\" + key + \"' .\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n return this._root.d(value, key, locale)\n } else {\n return ret || ''\n }\n};\n\nVueI18n.prototype.d = function d (value) {\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n\n var locale = this.locale;\n var key = null;\n\n if (args.length === 1) {\n if (typeof args[0] === 'string') {\n key = args[0];\n } else if (isObject(args[0])) {\n if (args[0].locale) {\n locale = args[0].locale;\n }\n if (args[0].key) {\n key = args[0].key;\n }\n }\n } else if (args.length === 2) {\n if (typeof args[0] === 'string') {\n key = args[0];\n }\n if (typeof args[1] === 'string') {\n locale = args[1];\n }\n }\n\n return this._d(value, locale, key)\n};\n\nVueI18n.prototype.getNumberFormat = function getNumberFormat (locale) {\n return looseClone(this._vm.numberFormats[locale] || {})\n};\n\nVueI18n.prototype.setNumberFormat = function setNumberFormat (locale, format) {\n this._vm.$set(this._vm.numberFormats, locale, format);\n};\n\nVueI18n.prototype.mergeNumberFormat = function mergeNumberFormat (locale, format) {\n this._vm.$set(this._vm.numberFormats, locale, Vue.util.extend(this._vm.numberFormats[locale] || {}, format));\n};\n\nVueI18n.prototype._localizeNumber = function _localizeNumber (\n value,\n locale,\n fallback,\n numberFormats,\n key,\n options\n) {\n var _locale = locale;\n var formats = numberFormats[_locale];\n\n // fallback locale\n if (isNull(formats) || isNull(formats[key])) {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Fall back to '\" + fallback + \"' number formats from '\" + locale + \" number formats.\"));\n }\n _locale = fallback;\n formats = numberFormats[_locale];\n }\n\n if (isNull(formats) || isNull(formats[key])) {\n return null\n } else {\n var format = formats[key];\n\n var formatter;\n if (options) {\n // If options specified - create one time number formatter\n formatter = new Intl.NumberFormat(_locale, Object.assign({}, format, options));\n } else {\n var id = _locale + \"__\" + key;\n formatter = this._numberFormatters[id];\n if (!formatter) {\n formatter = this._numberFormatters[id] = new Intl.NumberFormat(_locale, format);\n }\n }\n return formatter.format(value)\n }\n};\n\nVueI18n.prototype._n = function _n (value, locale, key, options) {\n /* istanbul ignore if */\n if (process.env.NODE_ENV !== 'production' && !VueI18n.availabilities.numberFormat) {\n warn('Cannot format a Number value due to not supported Intl.NumberFormat.');\n return ''\n }\n\n if (!key) {\n var nf = !options ? new Intl.NumberFormat(locale) : new Intl.NumberFormat(locale, options);\n return nf.format(value)\n }\n\n var ret =\n this._localizeNumber(value, locale, this.fallbackLocale, this._getNumberFormats(), key, options);\n if (this._isFallbackRoot(ret)) {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Fall back to number localization of root: key '\" + key + \"' .\"));\n }\n /* istanbul ignore if */\n if (!this._root) { throw Error('unexpected error') }\n return this._root.n(value, Object.assign({}, { key: key, locale: locale }, options))\n } else {\n return ret || ''\n }\n};\n\nVueI18n.prototype.n = function n (value) {\n var args = [], len = arguments.length - 1;\n while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];\n\n var locale = this.locale;\n var key = null;\n var options = null;\n\n if (args.length === 1) {\n if (typeof args[0] === 'string') {\n key = args[0];\n } else if (isObject(args[0])) {\n if (args[0].locale) {\n locale = args[0].locale;\n }\n if (args[0].key) {\n key = args[0].key;\n }\n\n // Filter out number format options only\n options = Object.keys(args[0]).reduce(function (acc, key) {\n var obj;\n\n if (numberFormatKeys.includes(key)) {\n return Object.assign({}, acc, ( obj = {}, obj[key] = args[0][key], obj ))\n }\n return acc\n }, null);\n }\n } else if (args.length === 2) {\n if (typeof args[0] === 'string') {\n key = args[0];\n }\n if (typeof args[1] === 'string') {\n locale = args[1];\n }\n }\n\n return this._n(value, locale, key, options)\n};\n\nObject.defineProperties( VueI18n.prototype, prototypeAccessors );\n\nVueI18n.availabilities = {\n dateTimeFormat: canUseDateTimeFormat,\n numberFormat: canUseNumberFormat\n};\nVueI18n.install = install;\nVueI18n.version = '7.8.1';\n\nexport default VueI18n;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-i18n/dist/vue-i18n.esm.js\n// module id = 82\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./EventParticipantTopList.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-497971dc\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./EventParticipantTopList.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/components/EventParticipantTopList.vue\n// module id = 83\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./KkGenericPopup.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-368b824d\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./KkGenericPopup.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/components/KkGenericPopup.vue\n// module id = 84\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./KkPopup.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-c79fd7b8\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./KkPopup.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/components/KkPopup.vue\n// module id = 85\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./KkRoot.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-67916f9a\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./KkRoot.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/components/KkRoot.vue\n// module id = 86\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./KkSpinner.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-12219f11\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./KkSpinner.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/components/KkSpinner.vue\n// module id = 87\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./SponsorListItem.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-64ab08fa\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./SponsorListItem.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/components/SponsorListItem.vue\n// module id = 88\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./AboutKKView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-992056a0\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./AboutKKView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/AboutKKView.vue\n// module id = 89\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./AddSponsorView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-23302230\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./AddSponsorView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/AddSponsorView.vue\n// module id = 90\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./ChooseEventView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-189bbe74\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./ChooseEventView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/ChooseEventView.vue\n// module id = 91\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./ChooseOrganizationView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-1883c8e1\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./ChooseOrganizationView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/ChooseOrganizationView.vue\n// module id = 92\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./EditRepeatsView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6b27585e\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./EditRepeatsView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/EditRepeatsView.vue\n// module id = 93\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./HomeView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-274a7d54\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./HomeView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/HomeView.vue\n// module id = 94\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./InstructionsView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-f059dbc8\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./InstructionsView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/InstructionsView.vue\n// module id = 95\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./InvitePreviousSponsorsView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-7138ec60\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./InvitePreviousSponsorsView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/InvitePreviousSponsorsView.vue\n// module id = 96\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./InviteSponsorView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-a4e12358\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./InviteSponsorView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/InviteSponsorView.vue\n// module id = 97\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./LoginView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-d3664828\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./LoginView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/LoginView.vue\n// module id = 98\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./MobileAppInstructionsView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-ff38e232\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./MobileAppInstructionsView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/MobileAppInstructionsView.vue\n// module id = 99\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./MyProfileView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-7428e040\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./MyProfileView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/MyProfileView.vue\n// module id = 100\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./PermissionView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-001c46c6\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./PermissionView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/PermissionView.vue\n// module id = 101\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./PrivacySettingsView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-032e0ece\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./PrivacySettingsView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/PrivacySettingsView.vue\n// module id = 102\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./SponsorsView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2ca2b3e0\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./SponsorsView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/SponsorsView.vue\n// module id = 103\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./StartView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-55a4b036\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./StartView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/StartView.vue\n// module id = 104\n// module chunks = 0","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!ts-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./StatisticsView.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-08a6c3cc\\\",\\\"hasScoped\\\":false}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./StatisticsView.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./app/ts/views/StatisticsView.vue\n// module id = 105\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('h2', [_vm._v(_vm._s(_vm.$t(\"homeView.permit\")))]), _vm._v(\" \"), _vm._l((_vm.store.globalSettings.permissionText ? _vm.store.globalSettings.permissionText.split('\\n') : ''), function(paragraph, i) {\n return _c('p', {\n key: i,\n staticClass: \"about\"\n }, [_vm._v(\"\\r\\n \" + _vm._s(paragraph)), _c('br')])\n }), _vm._v(\" \"), _c('button', {\n staticClass: \"button button-green\",\n on: {\n \"click\": _vm.backToHome\n }\n }, [_vm._v(_vm._s(_vm.$t(\"permissionView.backToHome\")))])], 2)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-001c46c6\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/PermissionView.vue\n// module id = 106\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('h1', [_vm._v(\"Yksityisyysasetukset\")]), _vm._v(\" \"), _vm._l((_vm.store.globalSettings.mobilePrivacyInfo.split('\\n')), function(paragraph, i) {\n return _c('p', {\n key: i,\n staticClass: \"about\"\n }, [_vm._v(\"\\r\\n \" + _vm._s(paragraph) + \"\\r\\n \")])\n }), _vm._v(\" \"), _c('i18n', {\n staticClass: \"about\",\n attrs: {\n \"path\": \"privacySettingsView.moreInfo\",\n \"tag\": \"p\"\n }\n }, [_c('a', {\n attrs: {\n \"place\": \"email\",\n \"href\": 'mailto://' + _vm.sulEmail\n }\n }, [_vm._v(_vm._s(_vm.sulEmail))]), _vm._v(\" \"), _c('a', {\n attrs: {\n \"place\": \"privacyPolicyUrl\",\n \"href\": \"\"\n },\n on: {\n \"click\": function($event) {\n $event.preventDefault();\n _vm.openPrivacyPolicy()\n }\n }\n }, [_vm._v(_vm._s(_vm.privacyPolicyUrl))])])], 2)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-032e0ece\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/PrivacySettingsView.vue\n// module id = 107\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('div', {\n staticClass: \"statistics-top-nav\"\n }, [_c('a', {\n class: {\n active: _vm.showStatistics === 'User'\n },\n attrs: {\n \"href\": \"\"\n },\n on: {\n \"click\": function($event) {\n $event.preventDefault();\n _vm.userStatistics()\n }\n }\n }, [_vm._v(_vm._s(_vm.$t(\"statisticsView.userStatistics\")))]), _vm._v(\" \"), _c('a', {\n class: {\n active: _vm.showStatistics === 'Event'\n },\n attrs: {\n \"href\": \"\"\n },\n on: {\n \"click\": function($event) {\n $event.preventDefault();\n _vm.eventStatistics()\n }\n }\n }, [_vm._v(_vm._s(_vm.$t(\"statisticsView.eventStatistics\", [_vm.eventNumTop])))]), _vm._v(\" \"), _c('a', {\n class: {\n active: _vm.showStatistics === 'TopUsers'\n },\n attrs: {\n \"href\": \"\"\n },\n on: {\n \"click\": function($event) {\n $event.preventDefault();\n _vm.topEventParticipants()\n }\n }\n }, [_vm._v(_vm._s(_vm.$t(\"statisticsView.topEventParticipants\", [_vm.usersNumTop])))]), _vm._v(\" \"), _c('a', {\n class: {\n active: _vm.showStatistics === 'TopOrganizations'\n },\n attrs: {\n \"href\": \"\"\n },\n on: {\n \"click\": function($event) {\n $event.preventDefault();\n _vm.topOrganizationStatistics()\n }\n }\n }, [_vm._v(_vm._s(_vm.$t(\"statisticsView.allStatistics\", [_vm.organizationsNumTop])))])]), _vm._v(\" \"), (_vm.showStatistics == 'User') ? _c('div', [_c('kk-user-statistics')], 1) : _vm._e(), _vm._v(\" \"), (_vm.showStatistics == 'Event') ? _c('div', [_c('kk-event-statistics', {\n attrs: {\n \"numTop\": _vm.eventNumTop\n }\n })], 1) : _vm._e(), _vm._v(\" \"), (_vm.showStatistics == 'TopUsers') ? _c('div', [_c('kk-top-event-participants', {\n attrs: {\n \"numTop\": _vm.usersNumTop\n }\n })], 1) : _vm._e(), _vm._v(\" \"), (_vm.showStatistics == 'TopOrganizations') ? _c('div', [_c('kk-all-statistics', {\n attrs: {\n \"numTop\": _vm.organizationsNumTop\n }\n })], 1) : _vm._e(), _vm._v(\" \"), _c('p', [_c('a', {\n attrs: {\n \"href\": \"\"\n },\n on: {\n \"click\": function($event) {\n $event.preventDefault();\n _vm.openMoreStatistics()\n }\n }\n }, [_vm._v(_vm._s(_vm.$t(\"statisticsView.moreStatistics\")))])])])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-08a6c3cc\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/StatisticsView.vue\n// module id = 108\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _vm._m(0)\n},staticRenderFns: [function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"spinner\"\n }, [_c('div', {\n staticClass: \"dot\"\n }), _vm._v(\" \"), _c('div', {\n staticClass: \"dot\"\n }), _vm._v(\" \"), _c('div', {\n staticClass: \"dot\"\n })])\n}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-12219f11\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/components/KkSpinner.vue\n// module id = 109\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('h1', [_vm._v(_vm._s(_vm.$t(\"chooseOrganizationView.title\")))]), _vm._v(\" \"), _c('ul', _vm._l((_vm.store.currentUser.organizations), function(o) {\n return (_vm.userOrganizationEventCount(o) > 0) ? _c('li', {\n key: o.organizationId,\n staticClass: \"list-item clickable\",\n on: {\n \"click\": function($event) {\n _vm.chooseOrganization(o)\n }\n }\n }, [_c('h3', [_vm._v(_vm._s(o.name))])]) : _c('li', {\n staticClass: \"list-item disabled\"\n }, [_c('h3', [_vm._v(_vm._s(o.name))]), _vm._v(\" \"), _c('p', [_vm._v(_vm._s(_vm.$t(\"chooseOrganizationView.noEvents\")))])])\n }))])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-1883c8e1\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/ChooseOrganizationView.vue\n// module id = 110\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return (_vm.currentOrganizationEvents) ? _c('div', [_c('ul', _vm._l((_vm.currentOrganizationEvents), function(e) {\n return _c('li', {\n key: e.eventId,\n staticClass: \"list-item clickable\",\n on: {\n \"click\": function($event) {\n _vm.chooseEvent(e)\n }\n }\n }, [_c('h2', [_vm._v(_vm._s(e.name))]), _vm._v(\" \"), _c('div', [_vm._v(_vm._s(_vm.eventDateDisplay(e)))])])\n }))]) : _vm._e()\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-189bbe74\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/ChooseEventView.vue\n// module id = 111\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('h2', [_vm._v(_vm._s(_vm.$t(\"userStatisticsView.title\")))]), _vm._v(\" \"), _c('table', [_c('thead', [_c('th', [_vm._v(_vm._s(_vm.$t(\"userStatisticsView.event\")))]), _vm._v(\" \"), _c('th', [_vm._v(_vm._s(_vm.$t(\"userStatisticsView.paidSum\")))]), _vm._v(\" \"), _c('th', [_vm._v(_vm._s(_vm.$t(\"userStatisticsView.estimated\")))])]), _vm._v(\" \"), _c('tbody', _vm._l((_vm.store.events), function(e) {\n return _c('tr', {\n key: e.eventId\n }, [_c('td', [_vm._v(_vm._s(e.name))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(_vm.getSponsorsPaymentSum(e.sponsors)))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(_vm.getSponsorsEstimatedPayment(e.sponsors)))])])\n }))])])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-1cc02776\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/UserStatisticsView.vue\n// module id = 112\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [(!_vm.sponsorAdded) ? _c('form', {\n staticClass: \"field\",\n on: {\n \"submit\": function($event) {\n $event.preventDefault();\n _vm.addSponsor()\n }\n }\n }, [_c('h2', [_vm._v(_vm._s(_vm.$t(\"addSponsorView.fillSponsorInformation\")))]), _vm._v(\" \"), _c('div', {\n staticClass: \"radio-content\"\n }, [_c('label', {\n attrs: {\n \"for\": \"privateSponsor\"\n }\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.sponsorType),\n expression: \"sponsor.sponsorType\"\n }],\n attrs: {\n \"type\": \"radio\",\n \"name\": \"sponsorType\",\n \"id\": \"privateSponsor\",\n \"checked\": \"\",\n \"value\": \"Private\"\n },\n domProps: {\n \"checked\": _vm._q(_vm.sponsor.sponsorType, \"Private\")\n },\n on: {\n \"__c\": function($event) {\n _vm.sponsor.sponsorType = \"Private\"\n }\n }\n }), _vm._v(\" \"), _c('span', {\n staticClass: \"label-text\"\n }, [_vm._v(_vm._s(_vm.$t(\"addSponsorView.private\")))]), _vm._v(\" \"), _c('span', {\n staticClass: \"checkmark icon-checkmark\"\n })]), _vm._v(\" \"), _c('label', {\n attrs: {\n \"for\": \"companySponsor\"\n }\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.sponsorType),\n expression: \"sponsor.sponsorType\"\n }],\n attrs: {\n \"type\": \"radio\",\n \"name\": \"sponsorType\",\n \"id\": \"companySponsor\",\n \"value\": \"Company\"\n },\n domProps: {\n \"checked\": _vm._q(_vm.sponsor.sponsorType, \"Company\")\n },\n on: {\n \"__c\": function($event) {\n _vm.sponsor.sponsorType = \"Company\"\n }\n }\n }), _vm._v(\" \"), _c('span', {\n staticClass: \"label-text\"\n }, [_vm._v(_vm._s(_vm.$t(\"addSponsorView.company\")))]), _vm._v(\" \"), _c('span', {\n staticClass: \"checkmark icon-checkmark\"\n })])]), _vm._v(\" \"), (_vm.sponsor.sponsorType === 'Company') ? _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.companyName),\n expression: \"sponsor.companyName\"\n }],\n attrs: {\n \"type\": \"text\",\n \"placeholder\": _vm.$t('addSponsorView.companyName')\n },\n domProps: {\n \"value\": (_vm.sponsor.companyName)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.sponsor.companyName = $event.target.value\n }\n }\n }) : _vm._e(), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.firstname),\n expression: \"sponsor.firstname\"\n }],\n attrs: {\n \"required\": \"\",\n \"type\": \"text\",\n \"placeholder\": _vm.$t('addSponsorView.firstname')\n },\n domProps: {\n \"value\": (_vm.sponsor.firstname)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.sponsor.firstname = $event.target.value\n }\n }\n }), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.lastname),\n expression: \"sponsor.lastname\"\n }],\n attrs: {\n \"required\": \"\",\n \"type\": \"text\",\n \"placeholder\": _vm.$t('addSponsorView.lastname')\n },\n domProps: {\n \"value\": (_vm.sponsor.lastname)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.sponsor.lastname = $event.target.value\n }\n }\n }), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.email),\n expression: \"sponsor.email\"\n }],\n attrs: {\n \"type\": \"email\",\n \"placeholder\": _vm.$t('addSponsorView.email')\n },\n domProps: {\n \"value\": (_vm.sponsor.email)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.sponsor.email = $event.target.value\n }\n }\n }), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.streetAddress),\n expression: \"sponsor.streetAddress\"\n }],\n attrs: {\n \"type\": \"text\",\n \"placeholder\": _vm.$t('addSponsorView.streetAddress')\n },\n domProps: {\n \"value\": (_vm.sponsor.streetAddress)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.sponsor.streetAddress = $event.target.value\n }\n }\n }), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.zipCode),\n expression: \"sponsor.zipCode\"\n }],\n attrs: {\n \"type\": \"text\",\n \"placeholder\": _vm.$t('addSponsorView.zipCode')\n },\n domProps: {\n \"value\": (_vm.sponsor.zipCode)\n },\n on: {\n \"change\": function($event) {\n _vm.zipCodeChanged()\n },\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.sponsor.zipCode = $event.target.value\n }\n }\n }), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.city),\n expression: \"sponsor.city\"\n }],\n attrs: {\n \"type\": \"text\",\n \"placeholder\": _vm.$t('addSponsorView.city')\n },\n domProps: {\n \"value\": (_vm.sponsor.city)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.sponsor.city = $event.target.value\n }\n }\n }), _vm._v(\" \"), (_vm.sponsor.sponsorType == 'Company') ? _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.info),\n expression: \"sponsor.info\"\n }],\n attrs: {\n \"type\": \"text\",\n \"placeholder\": _vm.$t('addSponsorView.info')\n },\n domProps: {\n \"value\": (_vm.sponsor.info)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.sponsor.info = $event.target.value\n }\n }\n }) : _vm._e(), _vm._v(\" \"), _c('div', {\n staticClass: \"radio-content\"\n }, [_c('label', {\n attrs: {\n \"for\": \"oneTimePayment\"\n }\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.paymentMethod),\n expression: \"sponsor.paymentMethod\"\n }],\n attrs: {\n \"type\": \"radio\",\n \"name\": \"paymentType\",\n \"id\": \"oneTimePayment\",\n \"checked\": \"\",\n \"value\": \"Manual\"\n },\n domProps: {\n \"checked\": _vm._q(_vm.sponsor.paymentMethod, \"Manual\")\n },\n on: {\n \"__c\": function($event) {\n _vm.sponsor.paymentMethod = \"Manual\"\n }\n }\n }), _vm._v(\" \"), _c('span', {\n staticClass: \"label-text\"\n }, [_vm._v(_vm._s(_vm.$t(\"addSponsorView.oneTimePayment\")))]), _vm._v(\" \"), _c('span', {\n staticClass: \"checkmark icon-checkmark\"\n })]), _vm._v(\" \"), _c('label', {\n attrs: {\n \"for\": \"paymentPerRepeat\"\n }\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.paymentMethod),\n expression: \"sponsor.paymentMethod\"\n }],\n attrs: {\n \"type\": \"radio\",\n \"name\": \"paymentType\",\n \"id\": \"paymentPerRepeat\",\n \"value\": \"PerRepeat\"\n },\n domProps: {\n \"checked\": _vm._q(_vm.sponsor.paymentMethod, \"PerRepeat\")\n },\n on: {\n \"change\": _vm.perRepeatPaymentSelected,\n \"__c\": function($event) {\n _vm.sponsor.paymentMethod = \"PerRepeat\"\n }\n }\n }), _vm._v(\" \"), _c('span', {\n staticClass: \"label-text\"\n }, [_vm._v(_vm._s(_vm.$t(\"addSponsorView.paymentPerRepeat\")))]), _vm._v(\" \"), _c('span', {\n staticClass: \"checkmark icon-checkmark\"\n })])]), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.payment),\n expression: \"sponsor.payment\"\n }],\n attrs: {\n \"required\": \"\",\n \"type\": \"number\",\n \"step\": \"any\",\n \"placeholder\": _vm.$t('addSponsorView.paymentAmount', [_vm.minPayment])\n },\n domProps: {\n \"value\": (_vm.sponsor.payment)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.sponsor.payment = $event.target.value\n },\n \"blur\": function($event) {\n _vm.$forceUpdate()\n }\n }\n }), _vm._v(\" \"), _c('div', {\n staticClass: \"radio-content\"\n }, [_c('label', {\n attrs: {\n \"for\": \"paymentMethodMail\"\n }\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.preferredBillingMethod),\n expression: \"sponsor.preferredBillingMethod\"\n }],\n attrs: {\n \"id\": \"paymentMethodMail\",\n \"type\": \"radio\",\n \"name\": \"payment-method\",\n \"value\": \"Mail\"\n },\n domProps: {\n \"checked\": _vm._q(_vm.sponsor.preferredBillingMethod, \"Mail\")\n },\n on: {\n \"change\": function($event) {\n _vm.billingMethodChanged()\n },\n \"__c\": function($event) {\n _vm.sponsor.preferredBillingMethod = \"Mail\"\n }\n }\n }), _vm._v(\" \"), _c('span', {\n staticClass: \"label-text\"\n }, [_vm._v(_vm._s(_vm.$t(\"addSponsorView.paymentMethodMail\")))]), _vm._v(\" \"), _c('span', {\n staticClass: \"checkmark icon-checkmark\"\n })]), _vm._v(\" \"), _c('label', {\n attrs: {\n \"for\": \"paymentMethodEmail\"\n }\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.preferredBillingMethod),\n expression: \"sponsor.preferredBillingMethod\"\n }],\n attrs: {\n \"id\": \"paymentMethodEmail\",\n \"type\": \"radio\",\n \"name\": \"payment-method\",\n \"value\": \"Email\"\n },\n domProps: {\n \"checked\": _vm._q(_vm.sponsor.preferredBillingMethod, \"Email\")\n },\n on: {\n \"change\": function($event) {\n _vm.billingMethodChanged()\n },\n \"__c\": function($event) {\n _vm.sponsor.preferredBillingMethod = \"Email\"\n }\n }\n }), _vm._v(\" \"), _c('span', {\n staticClass: \"label-text\"\n }, [_vm._v(_vm._s(_vm.$t(\"addSponsorView.paymentMethodEmail\")))]), _vm._v(\" \"), _c('span', {\n staticClass: \"checkmark icon-checkmark\"\n })]), _vm._v(\" \"), _c('label', {\n attrs: {\n \"for\": \"paymentMethodEInvoice\"\n }\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.preferredBillingMethod),\n expression: \"sponsor.preferredBillingMethod\"\n }],\n attrs: {\n \"id\": \"paymentMethodEInvoice\",\n \"type\": \"radio\",\n \"name\": \"payment-method\",\n \"value\": \"EInvoice\"\n },\n domProps: {\n \"checked\": _vm._q(_vm.sponsor.preferredBillingMethod, \"EInvoice\")\n },\n on: {\n \"change\": function($event) {\n _vm.billingMethodChanged()\n },\n \"__c\": function($event) {\n _vm.sponsor.preferredBillingMethod = \"EInvoice\"\n }\n }\n }), _vm._v(\" \"), _c('span', {\n staticClass: \"label-text\"\n }, [_vm._v(_vm._s(_vm.$t(\"addSponsorView.paymentMethodEInvoice\")))]), _vm._v(\" \"), _c('span', {\n staticClass: \"checkmark icon-checkmark\"\n })])]), _vm._v(\" \"), (_vm.sponsor.preferredBillingMethod == 'EInvoice') ? _c('div', [_c('label', [_vm._v(_vm._s(_vm.$t(\"addSponsorView.bank\")))]), _vm._v(\" \"), _c('div', {\n staticStyle: {\n \"margin-top\": \"5px\",\n \"margin-bottom\": \"20px\",\n \"text-align\": \"center\"\n }\n }, [_c('select', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.bankId),\n expression: \"sponsor.bankId\"\n }],\n on: {\n \"change\": function($event) {\n var $$selectedVal = Array.prototype.filter.call($event.target.options, function(o) {\n return o.selected\n }).map(function(o) {\n var val = \"_value\" in o ? o._value : o.value;\n return val\n });\n _vm.sponsor.bankId = $event.target.multiple ? $$selectedVal : $$selectedVal[0]\n }\n }\n }, _vm._l((_vm.banks), function(bank) {\n return _c('option', {\n key: bank.bankId,\n domProps: {\n \"value\": bank.bankId\n }\n }, [_vm._v(_vm._s(bank.name) + \" (\" + _vm._s(bank.bic) + \")\")])\n }))]), _vm._v(\" \"), _c('label', [_vm._v(_vm._s(_vm.$t(\"addSponsorView.eInvoicePaymentAddress\")))]), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsor.eInvoicePaymentAddress),\n expression: \"sponsor.eInvoicePaymentAddress\"\n }],\n attrs: {\n \"type\": \"text\"\n },\n domProps: {\n \"value\": (_vm.sponsor.eInvoicePaymentAddress)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.sponsor.eInvoicePaymentAddress = $event.target.value\n }\n }\n })]) : _vm._e(), _vm._v(\" \"), _c('button', {\n staticClass: \"button button-green\",\n attrs: {\n \"type\": \"submit\",\n \"disabled\": !_vm.isValidatedForSave\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"addSponsorView.saveSponsor\")) + \"\\r\\n \")])]) : _c('div', [_c('h2', [_vm._v(_vm._s(_vm.$t(\"addSponsorView.sponsorAdded\")))])])])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-23302230\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/AddSponsorView.vue\n// module id = 113\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('img', {\n staticClass: \"global-sul-logo absolute\",\n attrs: {\n \"src\": require(\"img/sul-logo.svg\")\n }\n }), _vm._v(\" \"), (!_vm.loading) ? _c('div', [_c('div', {\n staticClass: \"homeview-section logo\"\n }, [(_vm.$i18n.locale == 'se') ? _c('img', {\n attrs: {\n \"src\": require(\"img/kunniakierros-logo-se.png\")\n }\n }) : _c('img', {\n attrs: {\n \"src\": require(\"img/kunniakierros-logo-fi.png\")\n }\n })]), _vm._v(\" \"), _c('div', {\n staticClass: \"homeview-section blue-section\"\n }, [(_vm.store.selectedEvent) ? _c('div', {\n staticClass: \"sponsor-count-circle\"\n }, [_c('div', {\n staticClass: \"per-lap-sum\"\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.sumPerLap) + \"\\r\\n \"), _c('br'), _vm._v(\" \"), _c('span', {\n staticClass: \"per-lap-label\"\n }, [_vm._v(_vm._s(\"€\" + _vm.$t(\"homeView.perLap\")))])])]) : _vm._e(), _vm._v(\" \"), (_vm.store.selectedEvent) ? _c('div', {\n staticClass: \"sponsor-payment-info\"\n }, [(_vm.participatingSponsorCount > 0) ? _c('div', [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"homeView.sponsorsParticipating\", [_vm.participatingSponsorCount])) + \"\\r\\n \" + _vm._s(_vm.$t(\"homeView.totalSponsorPayments\")) + \" \" + _vm._s(_vm.$n(_vm.totalSponsorPayments, \"currency\")) + \"\\r\\n \")]) : _c('div', [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"homeView.addOrInviteSponsors\")) + \"\\r\\n \")])]) : _c('div', [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"homeView.noEvent\")) + \"\\r\\n \"), (!_vm.store.currentUser.organizations) ? _c('div', [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"homeView.noOrganization\")) + \"\\r\\n \")]) : _vm._e()])]), _vm._v(\" \"), (_vm.store.selectedEvent) ? _c('div', {\n staticClass: \"homeview-section lap-goal\"\n }, [_c('h2', [_vm._v(_vm._s(_vm.$t(\"homeView.event\")))]), _vm._v(\" \"), _c('h3', [_vm._v(_vm._s(_vm.$t(\"homeView.eventInfo\")))]), _vm._v(\" \"), _c('div', [_c('button', {\n staticClass: \"button button-green\",\n on: {\n \"click\": function($event) {\n _vm.chooseOrganization()\n }\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.store.selectedOrganization.name) + \"\\r\\n \"), _c('span', {\n staticClass: \"icon-arrow-right2\"\n })])]), _vm._v(\" \"), _c('div', [_c('button', {\n staticClass: \"button button-green\",\n on: {\n \"click\": function($event) {\n _vm.chooseEvent()\n }\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.store.selectedEvent.name) + \"\\r\\n \"), _c('span', {\n staticClass: \"icon-arrow-right2\"\n })])]), _vm._v(\" \"), _c('div', [_c('button', {\n staticClass: \"button button-green\",\n on: {\n \"click\": function($event) {\n _vm.editLaps()\n }\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"homeView.repeats\")) + \"\\r\\n \"), _c('span', {\n staticClass: \"icon-arrow-right2\"\n })])])]) : _vm._e(), _vm._v(\" \"), (_vm.store.selectedEvent) ? _c('div', {\n staticClass: \"homeview-section\"\n }, [_c('div', [_c('button', {\n staticClass: \"button button-green\",\n attrs: {\n \"type\": \"button\"\n },\n on: {\n \"click\": function($event) {\n _vm.showSponsors()\n }\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"homeView.sponsors\")) + \"\\r\\n \")])]), _vm._v(\" \"), _c('div', [_c('button', {\n staticClass: \"button button-green\",\n attrs: {\n \"type\": \"button\"\n },\n on: {\n \"click\": function($event) {\n _vm.inviteSponsor()\n }\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"homeView.inviteSponsor\")) + \"\\r\\n \")])])]) : _vm._e(), _vm._v(\" \"), _c('div', {\n staticClass: \"homeview-section blue-section\"\n }, [_c('h2', [_vm._v(_vm._s(_vm.$t(\"homeView.infoTitle\")))]), _vm._v(\" \"), _c('button', {\n staticClass: \"button button-green\",\n attrs: {\n \"type\": \"button\"\n },\n on: {\n \"click\": function($event) {\n _vm.permission()\n }\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"homeView.permit\")) + \"\\r\\n \")]), _vm._v(\" \"), _c('button', {\n staticClass: \"button button-green\",\n attrs: {\n \"type\": \"button\"\n },\n on: {\n \"click\": function($event) {\n _vm.instructions()\n }\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"homeView.instructions\")) + \"\\r\\n \")])])]) : _c('div', [_c('KkSpinner')], 1), _vm._v(\" \"), _c('kk-popup')], 1)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-274a7d54\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/HomeView.vue\n// module id = 114\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"sponsors-view\"\n }, [(_vm.sponsorAdded) ? _c('div', {\n staticClass: \"sponsor-added-notification\"\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"addSponsorView.sponsorAdded\")) + \"\\r\\n \")]) : _vm._e(), _vm._v(\" \"), _c('div', {\n staticClass: \"button-container\"\n }, [_c('button', {\n staticClass: \"button button-green\",\n on: {\n \"click\": function($event) {\n _vm.inviteSponsor()\n }\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"sponsorsView.inviteSponsor\")) + \"\\r\\n \")]), _vm._v(\" \"), _c('button', {\n staticClass: \"button button-green\",\n on: {\n \"click\": function($event) {\n _vm.addSponsor()\n }\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"sponsorsView.addSponsor\")) + \"\\r\\n \")])]), _vm._v(\" \"), (_vm.participatingSponsors.length > 0) ? _c('div', [_c('h2', [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"sponsorsView.participatingSponsors\")) + \"\\r\\n \")]), _vm._v(\" \"), _vm._l((_vm.participatingSponsors), function(s) {\n return _c('div', {\n key: s.sponsorId\n }, [_c('kk-sponsor-list-item', {\n attrs: {\n \"sponsor\": s\n },\n on: {\n \"reminder\": _vm.sendReminder,\n \"reinvite\": _vm.reInvite,\n \"bill\": _vm.sendBill\n }\n })], 1)\n }), _vm._v(\" \"), _vm._l((_vm.paidSponsors), function(s) {\n return _c('div', {\n key: s.sponsorId\n }, [_c('kk-sponsor-list-item', {\n attrs: {\n \"sponsor\": s\n },\n on: {\n \"reminder\": _vm.sendReminder,\n \"reinvite\": _vm.reInvite\n }\n })], 1)\n })], 2) : _vm._e(), _vm._v(\" \"), _c('h2', [_vm._v(_vm._s(_vm.$t(\"sponsorsView.sentInvitations\")))]), _vm._v(\" \"), (_vm.invitedSponsors.length == 0) ? _c('div', [_c('p', [_vm._v(_vm._s(_vm.$t(\"sponsorsView.noInvitations\")))])]) : _vm._e(), _vm._v(\" \"), _vm._l((_vm.invitedSponsors), function(s) {\n return _c('div', {\n key: s.sponsorId\n }, [_c('kk-sponsor-list-item', {\n attrs: {\n \"sponsor\": s\n },\n on: {\n \"reminder\": _vm.sendReminder,\n \"reInvite\": _vm.reInvite\n }\n })], 1)\n }), _vm._v(\" \"), (_vm.refusedSponsors.length > 0) ? _c('div', [_c('h2', [_vm._v(_vm._s(_vm.$t(\"sponsorsView.notParticipating\")))]), _vm._v(\" \"), _vm._l((_vm.refusedSponsors), function(s) {\n return _c('div', {\n key: s.sponsorId\n }, [_c('kk-sponsor-list-item', {\n attrs: {\n \"sponsor\": s\n },\n on: {\n \"reminder\": _vm.sendReminder,\n \"reInvite\": _vm.reInvite\n }\n })], 1)\n })], 2) : _vm._e()], 2)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-2ca2b3e0\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/SponsorsView.vue\n// module id = 115\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return (!_vm.loading) ? _c('div', [_c('h2', [_c('div', [_vm._v(_vm._s(_vm.$t(\"topEventParticipantsView.topParticipants\", [_vm.numTop])))]), _vm._v(\" \"), _c('div', [_vm._v(_vm._s(_vm.getCurrentSeasonYears()))])]), _vm._v(\" \"), _c('table', [_vm._m(0), _vm._v(\" \"), _c('tbody', [_vm._l((_vm.sponsorships), function(s, i) {\n return _c('tr', {\n key: s.user.userId,\n class: {\n hilight: s.user.userId == _vm.store.currentUser.userId\n }\n }, [_c('td', [_vm._v(_vm._s(i + 1))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(s.user.fullName))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(_vm.$n(s.totalSponsorshipAmount, \"currency\")))])])\n }), _vm._v(\" \"), (_vm.userPos == -1) ? _c('tr', [_c('td', [_vm._v(\"...\")]), _vm._v(\" \"), _c('td'), _vm._v(\" \"), _c('td')]) : _vm._e(), _vm._v(\" \"), (_vm.userPos == -1) ? _c('tr', {\n staticClass: \"hilight\"\n }, [_c('td', [_vm._v(\"-\")]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(_vm.store.currentUser.fullName))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(_vm.$n(_vm.userSponsorshipAmount, \"currency\")))])]) : _vm._e()], 2)])]) : _c('div', [_c('KkSpinner')], 1)\n},staticRenderFns: [function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('thead', [_c('th'), _vm._v(\" \"), _c('th'), _vm._v(\" \"), _c('th')])\n}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-345ca608\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/TopEventParticipantsView.vue\n// module id = 116\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('transition', {\n attrs: {\n \"name\": \"overlay\"\n }\n }, [(_vm.visible) ? _c('div', {\n staticClass: \"overlay\"\n }, [_c('div', {\n staticClass: \"overlay-content\"\n }, [_c('img', {\n attrs: {\n \"src\": require(\"img/popup.jpg\")\n }\n }), _vm._v(\" \"), _c('div', [_c('h2', [_vm._v(_vm._s(_vm.title))]), _vm._v(\" \"), _vm._t(\"default\")], 2), _vm._v(\" \"), _c('button', {\n staticClass: \"button button-primary\",\n attrs: {\n \"type\": \"button\"\n },\n on: {\n \"click\": _vm.close\n }\n }, [_vm._v(_vm._s(_vm.$t(\"common.ok\")))]), _vm._v(\" \"), _c('span', {\n staticClass: \"close icon-cross\",\n on: {\n \"click\": _vm.close\n }\n })])]) : _vm._e()])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-368b824d\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/components/KkGenericPopup.vue\n// module id = 117\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return (!_vm.loading) ? _c('div', [_c('table', [_c('tbody', [_vm._l((_vm.sponsorships.slice(0, _vm.numTop)), function(s, i) {\n return _c('tr', {\n key: i,\n class: {\n hilight: s.userId === _vm.store.currentUser.userId\n }\n }, [_c('td', [_vm._v(_vm._s(i + 1))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(s.name))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(_vm.$n(s.paid, \"currency\")))])])\n }), _vm._v(\" \"), (_vm.userPosition >= _vm.numTop) ? _c('tr', [_c('td', [_vm._v(\"...\")]), _vm._v(\" \"), _c('td'), _vm._v(\" \"), _c('td')]) : _vm._e(), _vm._v(\" \"), (_vm.userPosition >= _vm.numTop) ? _c('tr', [_c('td', [_vm._v(_vm._s(_vm.userPosition + 1))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(_vm.store.currentUser.fullName))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(_vm.$n(_vm.sponsorships[_vm.userPosition].amount, \"currency\")))])]) : _vm._e()], 2)])]) : _vm._e()\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-497971dc\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/components/EventParticipantTopList.vue\n// module id = 118\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"start-view\"\n }, [_c('div', {\n staticClass: \"logo\"\n }, [(_vm.$i18n.locale == 'se') ? _c('img', {\n attrs: {\n \"src\": require(\"img/kunniakierros-logo-se.png\")\n }\n }) : _c('img', {\n attrs: {\n \"src\": require(\"img/kunniakierros-logo-fi.png\")\n }\n })]), _vm._v(\" \"), _c('div', [_c('router-link', {\n attrs: {\n \"to\": \"/login\"\n }\n }, [_c('button', {\n staticClass: \"button button-green\"\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"startView.login\")) + \"\\r\\n \")])])], 1), _vm._v(\" \"), _c('div', [_c('router-link', {\n attrs: {\n \"to\": \"/about\"\n }\n }, [_c('button', {\n staticClass: \"button button-green\"\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"startView.about\")) + \"\\r\\n \")])])], 1), _vm._v(\" \"), _c('div', [_c('img', {\n staticClass: \"sul-logo\",\n attrs: {\n \"src\": require(\"img/sul-logo.svg\")\n }\n }), _vm._v(\" \"), _c('div', [_vm._v(\" \" + _vm._s(_vm.$t(\"startView.footerText\")) + \" \")])]), _vm._v(\" \"), _c('div', {\n staticClass: \"locale-chooser\"\n }, [_c('a', {\n class: {\n disabled: _vm.$i18n.locale == 'fi'\n },\n attrs: {\n \"href\": \"\"\n },\n on: {\n \"click\": function($event) {\n $event.preventDefault();\n _vm.setLocale('fi')\n }\n }\n }, [_vm._v(\"Suomeksi\")]), _vm._v(\" \"), _c('span', [_vm._v(\" - \")]), _vm._v(\" \"), _c('a', {\n class: {\n disabled: _vm.$i18n.locale == 'se'\n },\n attrs: {\n \"href\": \"\"\n },\n on: {\n \"click\": function($event) {\n $event.preventDefault();\n _vm.setLocale('se')\n }\n }\n }, [_vm._v(\"På svenska\")])])])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-55a4b036\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/StartView.vue\n// module id = 119\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\r\n return (_vm.sponsor) ? _c('div', {\r\n staticClass: \"list-item\",\r\n class: {\r\n 'list-item-payment-complete': _vm.s.participationStatus === 'Paid'\r\n }\r\n }, [_c('div', {\r\n staticClass: \"left-part\"\r\n }, [_c('span', {\r\n staticClass: \"icon\",\r\n class: {\r\n 'icon-checkmark': _vm.s.participationStatus === 'Paid',\r\n 'icon-notification': _vm.s.participationStatus === 'Participates',\r\n 'icon-question': _vm.s.participationStatus === 'NotAnswered' || _vm.s.participationStatus === 'Refused'\r\n }\r\n })]), _vm._v(\" \"), _c('div', {\r\n staticClass: \"right-part\"\r\n }, [_c('div', {\r\n staticClass: \"information-block\"\r\n }, [_c('div', [_vm._v(_vm._s(_vm.s.fullName))]), _vm._v(\" \"), _c('div', [_vm._v(_vm._s(_vm.s.email))]), _vm._v(\" \"), (_vm.s.participationStatus === 'NotAnswered' && _vm.s.invitedOn) ? _c('div', [_c('span', [_vm._v(_vm._s(_vm.$t(\"sponsorsView.invitedOn\", [_vm.dateDisplay(_vm.s.invitedOn)])))])]) : _vm._e(), _vm._v(\" \"), (_vm.s.participationStatus === 'Participates' || _vm.s.participationStatus === 'Paid') ? _c('div', [(_vm.s.paymentMethod === 'PerRepeat') ? _c('span', [_vm._v(_vm._s(_vm.$t(\"sponsorsView.paymentPerRepeat\", [_vm.s.payment])))]) : (_vm.s.paymentMethod === 'Manual') ? _c('span', [_vm._v(_vm._s(_vm.$t(\"sponsorsView.paymentManual\", [_vm.s.payment])))]) : _vm._e()]) : _vm._e()]), _vm._v(\" \"), _c('div', {\r\n staticClass: \"action-block\"\r\n }, [(_vm.canSendBill && !_vm.s.billSentOn && _vm.s.participationStatus == 'Participates') ? [(_vm.s.participationStatus == 'Participates') ? _c('div', [_c('button', {\r\n staticClass: \"button button-small\",\r\n attrs: {\r\n \"type\": \"button\"\r\n },\r\n on: {\r\n \"click\": function($event) {\r\n _vm.$emit('bill', _vm.s)\r\n }\r\n }\r\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"sponsorsView.sendBill\")) + \"\\r\\n \")])]) : _vm._e()] : [(_vm.s.participationStatus === 'Participates' && _vm.isNotificationAllowed(_vm.s)) ? _c('button', {\r\n staticClass: \"button button-small\",\r\n attrs: {\r\n \"disabled\": !_vm.s.billSentOn || _vm.s.sendingEmail\r\n },\r\n on: {\r\n \"click\": function($event) {\r\n _vm.$emit('reminder', _vm.s)\r\n }\r\n }\r\n }, [_c('span', {\r\n staticClass: \"icon icon-bell\"\r\n }), _vm._v(\" \"), _c('span', [_vm._v(_vm._s(_vm.$t(\"sponsorsView.sendReminder\")))])]) : _vm._e(), _vm._v(\" \"), (_vm.s.participationStatus === 'Participates' && !_vm.isNotificationAllowed(_vm.s)) ? _c('div', [(_vm.isNotificationAllowed(_vm.s)) ? _c('span', {\r\n staticClass: \"icon icon-bell\"\r\n }) : _vm._e(), _vm._v(\" \"), (_vm.s.notificationSentOn) ? _c('span', [_vm._v(_vm._s(_vm.$t(\"sponsorsView.reminderSent\", [_vm.dateDisplay(_vm.s.notificationSentOn)])))]) : (_vm.s.billSentOn) ? _c('span', [_vm._v(_vm._s(_vm.$t(\"sponsorsView.billSent\", [_vm.dateDisplay(_vm.s.billSentOn)])))]) : _vm._e()]) : (_vm.s.participationStatus === 'Paid') ? _c('div', [_c('span', [_vm._v(_vm._s(_vm.$t(\"sponsorsView.paymentCompleted\")))])]) : (_vm.s.participationStatus === 'NotAnswered' && _vm.isInvitationAllowed(_vm.s)) ? _c('button', {\r\n staticClass: \"button button-small\",\r\n attrs: {\r\n \"disabled\": _vm.s.sendingEmail\r\n },\r\n on: {\r\n \"click\": function($event) {\r\n _vm.$emit('reInvite', _vm.s)\r\n }\r\n }\r\n }, [_c('span', {\r\n staticClass: \"icon icon-mail4\"\r\n }), _vm._v(\" \"), (_vm.s.invitedOn) ? _c('span', [_vm._v(_vm._s(_vm.$t(\"sponsorsView.inviteAgain\")))]) : _vm._e()]) : _vm._e()]], 2)])]) : _vm._e()\r\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-64ab08fa\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/components/SponsorListItem.vue\n// module id = 120\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"root\"\n }\n }, [(_vm.store.page.showTopNav) ? _c('div', {\n staticClass: \"top-nav\"\n }, [_c('button', {\n staticClass: \"desktop-back\",\n attrs: {\n \"type\": \"button\"\n },\n on: {\n \"click\": function($event) {\n _vm.back()\n }\n }\n }, [_c('span', {\n staticClass: \"icon-arrow-left2\"\n })]), _vm._v(\" \"), _c('div', {\n attrs: {\n \"id\": \"nav-title\"\n }\n }, [_c('span', [_vm._v(_vm._s(_vm.store.page.title))])]), _vm._v(\" \"), (_vm.store && _vm.currentUser) ? _c('img', {\n staticClass: \"global-sul-logo\",\n attrs: {\n \"src\": require(\"img/sul-logo.svg\")\n }\n }) : _vm._e()]) : _vm._e(), _vm._v(\" \"), _c('div', {\n staticClass: \"wrapper\"\n }, [_c('router-view')], 1), _vm._v(\" \"), (_vm.currentUser) ? _c('div', {\n staticClass: \"bottom-nav\"\n }, [_c('router-link', {\n attrs: {\n \"to\": \"/\"\n }\n }, [_c('span', {\n staticClass: \"bottom-nav-button icon-home\"\n })]), _vm._v(\" \"), (_vm.store.selectedEvent) ? _c('router-link', {\n attrs: {\n \"to\": \"/invite-sponsor\"\n }\n }, [_c('span', {\n staticClass: \"bottom-nav-button icon-mail4\"\n })]) : _vm._e(), _vm._v(\" \"), (_vm.store.selectedEvent) ? _c('router-link', {\n attrs: {\n \"to\": \"/add-sponsor\"\n }\n }, [_c('span', {\n staticClass: \"bottom-nav-button icon-user-plus\"\n })]) : _vm._e(), _vm._v(\" \"), (_vm.store.selectedEvent) ? _c('router-link', {\n attrs: {\n \"to\": \"/sponsors\"\n }\n }, [_c('span', {\n staticClass: \"bottom-nav-button icon-users\"\n })]) : _vm._e(), _vm._v(\" \"), (_vm.store.selectedOrganization && _vm.store.selectedEvent) ? _c('router-link', {\n attrs: {\n \"to\": \"/statistics/user\"\n }\n }, [_c('span', {\n staticClass: \"bottom-nav-button icon-stats-bars\"\n })]) : _vm._e(), _vm._v(\" \"), _c('router-link', {\n attrs: {\n \"to\": \"/myprofile\"\n }\n }, [_c('span', {\n staticClass: \"bottom-nav-button icon-cog\"\n })])], 1) : _vm._e(), _vm._v(\" \"), _c('kk-popup')], 1)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-67916f9a\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/components/KkRoot.vue\n// module id = 121\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('h2', [_vm._v(_vm._s(_vm.$t(\"editRepeatsView.setEstimatedLaps\")))]), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.eventParticipant.estimatedRepeats),\n expression: \"eventParticipant.estimatedRepeats\"\n }],\n attrs: {\n \"id\": \"estimatedRepeats\",\n \"type\": \"number\",\n \"disabled\": _vm.eventParticipant.repeatsLocked\n },\n domProps: {\n \"value\": (_vm.eventParticipant.estimatedRepeats)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.eventParticipant.estimatedRepeats = $event.target.value\n },\n \"blur\": function($event) {\n _vm.$forceUpdate()\n }\n }\n }), _vm._v(\" \"), _c('h2', [_vm._v(_vm._s(_vm.$t(\"editRepeatsView.repeats\")))]), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.eventParticipant.repeats),\n expression: \"eventParticipant.repeats\"\n }],\n attrs: {\n \"id\": \"repeats\",\n \"type\": \"number\",\n \"disabled\": _vm.eventParticipant.repeatsLocked\n },\n domProps: {\n \"value\": (_vm.eventParticipant.repeats)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.eventParticipant.repeats = $event.target.value\n },\n \"blur\": function($event) {\n _vm.$forceUpdate()\n }\n }\n }), _vm._v(\" \"), _c('div', [_c('button', {\n staticClass: \"button button-green\",\n attrs: {\n \"disabled\": !_vm.isValidatedForSave\n },\n on: {\n \"click\": function($event) {\n _vm.save()\n }\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"editRepeatsView.save\")) + \"\\r\\n \")])])])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-6b27585e\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/EditRepeatsView.vue\n// module id = 122\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return (!_vm.loading) ? _c('div', [(_vm.sendStatus == 'Sending') ? _c('div', [_c('h2', [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"invitePreviousSponsorsView.sendingInvitations\")) + \"\\r\\n \")]), _vm._v(\" \"), _c('KkSpinner')], 1) : (_vm.sendStatus == 'Sent') ? _c('div', [_c('h2', [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"invitePreviousSponsorsView.invitationsSent\")) + \"\\r\\n \")])]) : _c('div', [(_vm.sponsors.length == 0) ? _c('div', {\n staticClass: \"section\"\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"invitePreviousSponsorsView.noSponsors\")) + \"\\r\\n \")]) : _c('div', [_c('p', [_vm._v(_vm._s(_vm.$t(\"invitePreviousSponsorsView.invitingSponsorsTo\", [_vm.store.selectedOrganization.name, _vm.store.selectedEvent.name])))]), _vm._v(\" \"), _c('h2', [_vm._v(_vm._s(_vm.$t(\"invitePreviousSponsorsView.chooseSponsors\")))]), _vm._v(\" \"), _c('div', {\n staticClass: \"invite-previous-sponsors-button\"\n }, [_c('button', {\n staticClass: \"button button-green invite-previous-sponsors-button\",\n attrs: {\n \"disabled\": _vm.selectedSponsorIds.length == 0\n },\n on: {\n \"click\": _vm.sendInvitations\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"invitePreviousSponsorsView.inviteSelected\")) + \"\\r\\n \")])]), _vm._v(\" \"), _c('div', {\n staticClass: \"list-item\"\n }, [_c('div', {\n staticClass: \"left-part\"\n }, [_c('input', {\n attrs: {\n \"type\": \"checkbox\"\n },\n domProps: {\n \"checked\": _vm.allSelected\n },\n on: {\n \"click\": _vm.toggleAll\n }\n })]), _vm._v(\" \"), _c('div', {\n staticClass: \"right-part\"\n }, [_c('h3', [_vm._v(_vm._s(_vm.$t(\"invitePreviousSponsorsView.selectAll\")))])])]), _vm._v(\" \"), _c('div', {\n staticClass: \"previous-sponsor-list\"\n }, _vm._l((Object.keys(_vm.sponsorsByOrg)), function(orgId) {\n return _c('div', {\n key: orgId\n }, [_c('div', {\n staticClass: \"previous-sponsor-list-organization-title\"\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"invitePreviousSponsorsView.sponsorsFrom\", [_vm.sponsorsByOrg[orgId][0].organizationName])) + \"\\r\\n \")]), _vm._v(\" \"), _vm._l((_vm.sponsorsByOrg[orgId]), function(s) {\n return _c('div', {\n key: s.sponsorId,\n staticClass: \"list-item\"\n }, [_c('div', {\n staticClass: \"left-part\"\n }, [(s.sponsor.email) ? _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.selectedSponsorIds),\n expression: \"selectedSponsorIds\"\n }],\n attrs: {\n \"id\": s.sponsor.sponsorId,\n \"type\": \"checkbox\"\n },\n domProps: {\n \"value\": s.sponsor.sponsorId,\n \"checked\": Array.isArray(_vm.selectedSponsorIds) ? _vm._i(_vm.selectedSponsorIds, s.sponsor.sponsorId) > -1 : (_vm.selectedSponsorIds)\n },\n on: {\n \"__c\": function($event) {\n var $$a = _vm.selectedSponsorIds,\n $$el = $event.target,\n $$c = $$el.checked ? (true) : (false);\n if (Array.isArray($$a)) {\n var $$v = s.sponsor.sponsorId,\n $$i = _vm._i($$a, $$v);\n if ($$c) {\n $$i < 0 && (_vm.selectedSponsorIds = $$a.concat($$v))\n } else {\n $$i > -1 && (_vm.selectedSponsorIds = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))\n }\n } else {\n _vm.selectedSponsorIds = $$c\n }\n }\n }\n }) : _vm._e(), _vm._v(\" \"), (!s.sponsor.email) ? _c('span', {\n staticClass: \"icon icon-question\",\n on: {\n \"click\": function($event) {\n _vm.infoPopup()\n }\n }\n }) : _vm._e()]), _vm._v(\" \"), _c('div', {\n staticClass: \"right-part\"\n }, [(s.sponsor.sponsorType === 'Private') ? _c('div', [_vm._v(_vm._s(s.sponsor.fullName))]) : _c('div', [_vm._v(_vm._s(s.sponsor.companyName))]), _vm._v(\" \"), (s.sponsor.email && !s.sponsor.editingEmail) ? _c('div', [_vm._v(_vm._s(s.sponsor.email))]) : _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (s.sponsor.email),\n expression: \"s.sponsor.email\"\n }],\n attrs: {\n \"type\": \"text\",\n \"placeholder\": _vm.$t('invitePreviousSponsorsView.setEmail')\n },\n domProps: {\n \"value\": (s.sponsor.email)\n },\n on: {\n \"keydown\": function($event) {\n _vm.emailInput(s.sponsor, $event)\n },\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n s.sponsor.email = $event.target.value\n }\n }\n })])])\n })], 2)\n }))])]), _vm._v(\" \"), _c('kk-generic-popup', {\n attrs: {\n \"title\": _vm.$t('invitePreviousSponsorsView.infoPopupTitle'),\n \"visible\": _vm.popupVisible\n },\n on: {\n \"close\": function($event) {\n _vm.closePopup()\n }\n }\n }, [_c('p', [_vm._v(_vm._s(_vm.$t(\"invitePreviousSponsorsView.infoPopupText\")))]), _vm._v(\" \"), _c('button', {\n staticClass: \"button\",\n attrs: {\n \"type\": \"button\"\n },\n on: {\n \"click\": function($event) {\n _vm.goToAddSponsor()\n }\n }\n }, [_vm._v(_vm._s(_vm.$t(\"sponsorsView.addSponsor\")) + \" \"), _c('span', {\n staticClass: \"icon-arrow-right2\"\n })]), _vm._v(\" \"), _c('button', {\n staticClass: \"button\",\n attrs: {\n \"type\": \"button\"\n },\n on: {\n \"click\": function($event) {\n _vm.goToContacts()\n }\n }\n }, [_vm._v(_vm._s(_vm.$t(\"invitePreviousSponsorsView.goToContacts\")) + \" \"), _c('span', {\n staticClass: \"icon-arrow-right2\"\n })])])], 1) : _c('div', [_c('kk-spinner')], 1)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-7138ec60\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/InvitePreviousSponsorsView.vue\n// module id = 123\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('h1', [_vm._v(_vm._s(_vm.$t(\"myProfileView.title\")))]), _vm._v(\" \"), _c('p', [_vm._v(_vm._s(_vm.$t(\"myProfileView.choosePictureAndText\")))]), _vm._v(\" \"), _c('h2', [_vm._v(_vm._s(_vm.$t(\"myProfileView.myProfilePicture\")))]), _vm._v(\" \"), _c('div', {\n staticClass: \"profile-picture-chooser\"\n }, [_c('input', {\n staticClass: \"profile-picture\",\n attrs: {\n \"type\": \"file\",\n \"id\": \"fileinput\",\n \"accept\": \".jpg,.jpeg,.png\"\n },\n on: {\n \"change\": _vm.profilePictureSelected\n }\n }), _vm._v(\" \"), _c('label', {\n attrs: {\n \"for\": \"fileinput\"\n }\n }, [(!_vm.store.currentUser.profilePicture) ? _c('div', [_vm._m(0)]) : _c('div', [_c('img', {\n attrs: {\n \"src\": 'data:image/jpg;base64,' + this.profilePicture,\n \"width\": \"150\"\n }\n })])]), _vm._v(\" \"), (_vm.invalidImageSelected) ? _c('div', [_vm._v(_vm._s(_vm.$t(\"myProfileView.allowedImageTypes\")))]) : _vm._e()]), _vm._v(\" \"), _c('div', [_c('label', {\n attrs: {\n \"for\": \"slogan\"\n }\n }, [_c('h2', [_vm._v(_vm._s(_vm.$t(\"myProfileView.slogan\")))])]), _vm._v(\" \"), _c('textarea', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.user.slogan),\n expression: \"user.slogan\"\n }],\n attrs: {\n \"id\": \"slogan\",\n \"rows\": \"2\",\n \"placeholder\": _vm.$t('myProfileView.slogan')\n },\n domProps: {\n \"value\": (_vm.user.slogan)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.user.slogan = $event.target.value\n }\n }\n })]), _vm._v(\" \"), _c('h2', [_vm._v(_vm._s(_vm.$t(\"myProfileView.language\")))]), _vm._v(\" \"), _c('div', {\n staticClass: \"radio-content\"\n }, _vm._l((_vm.locales), function(l) {\n return _c('label', {\n key: l\n }, [_c('input', {\n attrs: {\n \"type\": \"radio\",\n \"name\": \"locale\",\n \"id\": l\n },\n domProps: {\n \"value\": l,\n \"checked\": _vm.store.currentUser.locale == l\n },\n on: {\n \"click\": function($event) {\n _vm.setLocale(l)\n }\n }\n }), _vm._v(\" \"), _c('span', {\n staticClass: \"label-text\"\n }, [_vm._v(_vm._s(_vm.$t((\"myProfileView.locale_\" + l))))]), _vm._v(\" \"), _c('span', {\n staticClass: \"checkmark icon-checkmark\"\n })])\n })), _vm._v(\" \"), _c('p', {\n staticClass: \"button-container\"\n }, [_c('button', {\n staticClass: \"button button-green\",\n on: {\n \"click\": _vm.save\n }\n }, [_vm._v(_vm._s(_vm.$t(\"myProfileView.saveChanges\")))]), _vm._v(\" \"), _c('button', {\n staticClass: \"button\",\n on: {\n \"click\": _vm.instructions\n }\n }, [_vm._v(_vm._s(_vm.$t(\"myProfileView.instructions\")))]), _vm._v(\" \"), _c('button', {\n staticClass: \"button\",\n on: {\n \"click\": _vm.privacySettings\n }\n }, [_vm._v(_vm._s(_vm.$t(\"myProfileView.privacySettings\")))]), _vm._v(\" \"), _c('button', {\n staticClass: \"button button-primary\",\n on: {\n \"click\": _vm.logout\n }\n }, [_vm._v(_vm._s(_vm.$t(\"myProfileView.logout\")))])]), _c('p', {\n staticClass: \"saved-notification\",\n class: {\n 'fadeout': _vm.changesSaved\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"myProfileView.changesSaved\")) + \"\\r\\n \")]), _vm._v(\" \"), _c('p')])\n},staticRenderFns: [function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"profile-picture-circle\"\n }, [_c('span', {\n staticClass: \"icon icon-grin file-input-img\"\n })])\n}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-7428e040\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/MyProfileView.vue\n// module id = 124\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('h2', [_vm._v(_vm._s(_vm.$t(\"eventStatisticsView.topParticipants\", [_vm.store.selectedEvent.name, _vm.numTop])))]), _vm._v(\" \"), _c('kk-event-participant-top-list', {\n attrs: {\n \"event\": _vm.store.selectedEvent,\n \"num-top\": _vm.numTop\n }\n })], 1)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-76b62860\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/EventStatisticsView.vue\n// module id = 125\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('div', {\n staticClass: \"logo\"\n }, [(_vm.$i18n.locale == 'se') ? _c('img', {\n attrs: {\n \"src\": require(\"img/kunniakierros-logo-se.png\")\n }\n }) : _c('img', {\n attrs: {\n \"src\": require(\"img/kunniakierros-logo-fi.png\")\n }\n })]), _vm._v(\" \"), _c('h1', [_vm._v(_vm._s(_vm.store.page.title))]), _vm._v(\" \"), _vm._l((_vm.description.split('\\n')), function(paragraph, i) {\n return _c('p', {\n key: i,\n staticClass: \"about\"\n }, [_vm._v(\"\\r\\n \" + _vm._s(paragraph)), _c('br')])\n }), _vm._v(\" \"), _c('router-link', {\n attrs: {\n \"to\": \"/login\"\n }\n }, [_c('button', {\n staticClass: \"button button-green\"\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"startView.login\")) + \"\\r\\n \")])])], 2)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-992056a0\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/AboutKKView.vue\n// module id = 126\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('h2', [_vm._v(_vm._s(_vm.$t(\"inviteSponsorView.viaEmail\")))]), _vm._v(\" \"), _c('form', {\n staticClass: \"field\",\n on: {\n \"submit\": function($event) {\n $event.preventDefault();\n _vm.inviteViaEmail()\n }\n }\n }, [_vm._l((_vm.sponsors), function(s, i) {\n return _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (s.email),\n expression: \"s.email\"\n }],\n key: i,\n attrs: {\n \"type\": \"email\",\n \"placeholder\": _vm.$t('inviteSponsorView.writeEmailAddress')\n },\n domProps: {\n \"value\": (s.email)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n s.email = $event.target.value\n }\n }\n })\n }), _vm._v(\" \"), _c('div', [_c('div', {\n staticClass: \"borderless-button\",\n on: {\n \"click\": function($event) {\n _vm.addRecipient()\n }\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"inviteSponsorView.addRecipient\")) + \"\\r\\n \")])]), _vm._v(\" \"), _c('div', [_c('button', {\n staticClass: \"button button-green\",\n attrs: {\n \"type\": \"submit\",\n \"disabled\": !_vm.isValidatedForSubmit\n }\n }, [_vm._v(_vm._s(_vm.$t(\"inviteSponsorView.sendInvitations\")))])])], 2), _vm._v(\" \"), (_vm.status == 'Sending') ? _c('div', [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"inviteSponsorView.sendingInvitations \")) + \"\\r\\n \"), _c('KkSpinner')], 1) : (_vm.status == 'Sent') ? _c('div', [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"inviteSponsorView.emailInvitationsSent\")) + \"\\r\\n \")]) : _vm._e(), _vm._v(\" \"), _c('div', {\n staticClass: \"section\"\n }, [_c('div', [(!_vm.sponsorCopied) ? _c('button', {\n staticClass: \"button\",\n attrs: {\n \"type\": \"button\"\n },\n on: {\n \"click\": function($event) {\n _vm.copySponsorLink()\n }\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"inviteSponsorView.copySponsorLink\")) + \"\\r\\n \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.sponsorlink),\n expression: \"sponsorlink\"\n }],\n ref: \"text\",\n staticStyle: {\n \"font-size\": \".7em\"\n },\n attrs: {\n \"type\": \"text\"\n },\n domProps: {\n \"value\": (_vm.sponsorlink)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.sponsorlink = $event.target.value\n }\n }\n })]) : _c('button', {\n staticClass: \"button button-primary\",\n attrs: {\n \"type\": \"button\"\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"inviteSponsorView.copied\")) + \"\\r\\n \")])]), _vm._v(\" \"), _c('div', [_c('button', {\n staticClass: \"button\",\n on: {\n \"click\": _vm.invitePreviousSponsors\n }\n }, [_vm._v(\"\\r\\n \" + _vm._s(_vm.$t(\"inviteSponsorView.invitePreviousSponsors\")) + \"\\r\\n \")])])])])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-a4e12358\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/InviteSponsorView.vue\n// module id = 127\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return (!_vm.loading) ? _c('div', [_c('h2', [_c('div', [_vm._v(_vm._s(_vm.$t(\"allStatisticsView.topOrganizations\", [_vm.numTop])))]), _vm._v(\" \"), _c('div', [_vm._v(_vm._s(_vm.getCurrentSeasonYears()))])]), _vm._v(\" \"), _c('table', [_vm._m(0), _vm._v(\" \"), _c('tbody', [_vm._l((_vm.allOrganizations.slice(0, _vm.numTop)), function(o, i) {\n return _c('tr', {\n key: o.organizationId,\n class: {\n hilight: o.organizationId === _vm.store.selectedOrganization.organizationId\n }\n }, [_c('td', [_vm._v(_vm._s(i + 1))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(o.name))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(_vm.$n(o.totalSponsorshipAmount, \"currency\")))])])\n }), _vm._v(\" \"), (_vm.userOrganizationPos >= _vm.numTop) ? _c('tr', [_c('td', [_vm._v(\"...\")]), _vm._v(\" \"), _c('td'), _vm._v(\" \"), _c('td')]) : _vm._e(), _vm._v(\" \"), (_vm.userOrganizationPos >= _vm.numTop) ? _c('tr', {\n staticClass: \"hilight\"\n }, [_c('td', [_vm._v(_vm._s(_vm.userOrganizationPos + 1))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(_vm.userOrganization.name))]), _vm._v(\" \"), _c('td', [_vm._v(_vm._s(_vm.$n(_vm.userOrganization.totalSponsorshipAmount, \"currency\")))])]) : _vm._e()], 2)])]) : _c('div', [_c('KkSpinner')], 1)\n},staticRenderFns: [function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('thead', [_c('th'), _vm._v(\" \"), _c('th'), _vm._v(\" \"), _c('th')])\n}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-b344a5b2\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/AllStatisticsView.vue\n// module id = 128\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('transition', {\n attrs: {\n \"name\": \"overlay\"\n }\n }, [(_vm.store && _vm.p.visible) ? _c('div', {\n staticClass: \"overlay\"\n }, [_c('div', {\n staticClass: \"overlay-content\"\n }, [_c('img', {\n attrs: {\n \"src\": require(\"img/popup.jpg\")\n }\n }), _vm._v(\" \"), _c('div', [_c('h2', [_vm._v(_vm._s(_vm.p.title))]), _vm._v(\" \"), _c('p', [_vm._v(_vm._s(_vm.p.description))])]), _vm._v(\" \"), _c('button', {\n staticClass: \"button button-primary\",\n attrs: {\n \"type\": \"button\"\n },\n on: {\n \"click\": function($event) {\n _vm.p.visible = false\n }\n }\n }, [_vm._v(_vm._s(_vm.$t(\"common.ok\")))]), _vm._v(\" \"), _c('span', {\n staticClass: \"close icon-cross\",\n on: {\n \"click\": function($event) {\n _vm.p.visible = false\n }\n }\n })])]) : _vm._e()])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-c79fd7b8\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/components/KkPopup.vue\n// module id = 129\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('div', {\n staticClass: \"logo\"\n }, [(_vm.$i18n.locale == 'se') ? _c('img', {\n attrs: {\n \"src\": require(\"img/kunniakierros-logo-se.png\")\n }\n }) : _c('img', {\n attrs: {\n \"src\": require(\"img/kunniakierros-logo-fi.png\")\n }\n })]), _vm._v(\" \"), (_vm.error) ? _c('div', {\n staticClass: \"error fadeout\"\n }, [_vm._v(_vm._s(_vm.error))]) : _vm._e(), _vm._v(\" \"), (_vm.state == 'username') ? _c('form', {\n key: \"username\",\n attrs: {\n \"novalidate\": \"\"\n },\n on: {\n \"submit\": function($event) {\n $event.preventDefault();\n _vm.checkUsername($event)\n }\n }\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.username),\n expression: \"username\"\n }],\n attrs: {\n \"type\": \"email\",\n \"autofocus\": \"\",\n \"placeholder\": _vm.$t('user.username')\n },\n domProps: {\n \"value\": (_vm.username)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.username = $event.target.value\n }\n }\n }), _vm._v(\" \"), (!_vm.requestingPin) ? _c('button', {\n staticClass: \"button button-green\",\n attrs: {\n \"type\": \"submit\"\n }\n }, [_vm._v(_vm._s(_vm.$t(\"loginView.askForPin\")))]) : _c('button', {\n staticClass: \"button\",\n attrs: {\n \"disabled\": \"\"\n }\n }, [_vm._v(_vm._s(_vm.$t(\"loginView.requestingPin\")))])]) : (_vm.state == 'pin') ? _c('form', {\n key: \"pin\",\n attrs: {\n \"novalidate\": \"\"\n },\n on: {\n \"submit\": function($event) {\n $event.preventDefault();\n _vm.login($event)\n }\n }\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.pin),\n expression: \"pin\"\n }],\n attrs: {\n \"type\": \"number\",\n \"pattern\": \"[0-9]*\",\n \"autofocus\": \"\",\n \"placeholder\": _vm.$t('user.pin')\n },\n domProps: {\n \"value\": (_vm.pin)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.pin = $event.target.value\n },\n \"blur\": function($event) {\n _vm.$forceUpdate()\n }\n }\n }), _vm._v(\" \"), _c('button', {\n staticClass: \"button button-green\",\n attrs: {\n \"type\": \"submit\"\n }\n }, [_vm._v(_vm._s(_vm.$t(\"loginView.login\")))]), _vm._v(\" \"), _c('p', [_vm._v(_vm._s(_vm.$t(\"loginView.sendPinHelp\")))]), _vm._v(\" \"), _c('button', {\n staticClass: \"button\",\n attrs: {\n \"type\": \"button\"\n },\n on: {\n \"click\": _vm.sendPin\n }\n }, [_vm._v(_vm._s(_vm.$t(\"loginView.sendPin\")))])]) : _vm._e()])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-d3664828\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/LoginView.vue\n// module id = 130\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('h2', [_vm._v(_vm._s(_vm.$t(\"homeView.instructions\")))]), _vm._v(\" \"), _vm._l((_vm.store.globalSettings.publicRulesDescription ? _vm.store.globalSettings.publicRulesDescription.split('\\n') : ''), function(paragraph, i) {\n return _c('p', {\n key: i,\n staticClass: \"about\"\n }, [_vm._v(\"\\r\\n \" + _vm._s(paragraph)), _c('br')])\n })], 2)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-f059dbc8\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/InstructionsView.vue\n// module id = 131\n// module chunks = 0","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('h2', [_vm._v(_vm._s(_vm.$t(\"mobileAppInstructionsView.title\")))]), _vm._v(\" \"), _vm._l((_vm.store.globalSettings.mobileInstructions ? _vm.store.globalSettings.mobileInstructions.split('\\n') : ''), function(paragraph, i) {\n return _c('p', {\n key: i,\n staticClass: \"about\"\n }, [_vm._v(\"\\r\\n \" + _vm._s(paragraph) + \"\\r\\n \")])\n })], 2)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-ff38e232\",\"hasScoped\":false}!./~/vue-loader/lib/selector.js?type=template&index=0!./app/ts/views/MobileAppInstructionsView.vue\n// module id = 132\n// module chunks = 0"],"sourceRoot":""}