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OAAA,CAAiBsN,EAAAC,EAAA,CAAmEC,KAAc,IAAA9J,EAAA,EAA6BrC,CAARqC,EAAQnD,MAAA,CAAAc,EAAApB,KAAA,CAAAqN,EAAA,KAA0CjM,EAAAI,MAAA,CAAAJ,EAAAoE,SAAA,CAAA6H,EAAA,KAAiDG,EAAAzN,OAAA,CAAA0D,CAAA","sources":["webpack://_N_E/./node_modules/cookie/index.js","webpack://_N_E/./node_modules/cookies-next/lib/index.js","webpack://_N_E/?f08f","webpack://_N_E/./api/wagtail.js","webpack://_N_E/./pages/404.js","webpack://_N_E/./utils/caseconverters.js","webpack://_N_E/./node_modules/next/dist/compiled/querystring-es3/index.js"],"sourcesContent":["/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module exports.\n * @public\n */\n\nexports.parse = parse;\nexports.serialize = serialize;\n\n/**\n * Module variables.\n * @private\n */\n\nvar __toString = Object.prototype.toString\n\n/**\n * RegExp to match field-content in RFC 7230 sec 3.2\n *\n * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n * field-vchar = VCHAR / obs-text\n * obs-text = %x80-FF\n */\n\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n\n/**\n * Parse a cookie header.\n *\n * Parse the given cookie header string into an object\n * The object has the various cookies as keys(names) => values\n *\n * @param {string} str\n * @param {object} [options]\n * @return {object}\n * @public\n */\n\nfunction parse(str, options) {\n if (typeof str !== 'string') {\n throw new TypeError('argument str must be a string');\n }\n\n var obj = {}\n var opt = options || {};\n var dec = opt.decode || decode;\n\n var index = 0\n while (index < str.length) {\n var eqIdx = str.indexOf('=', index)\n\n // no more cookie pairs\n if (eqIdx === -1) {\n break\n }\n\n var endIdx = str.indexOf(';', index)\n\n if (endIdx === -1) {\n endIdx = str.length\n } else if (endIdx < eqIdx) {\n // backtrack on prior semicolon\n index = str.lastIndexOf(';', eqIdx - 1) + 1\n continue\n }\n\n var key = str.slice(index, eqIdx).trim()\n\n // only assign once\n if (undefined === obj[key]) {\n var val = str.slice(eqIdx + 1, endIdx).trim()\n\n // quoted values\n if (val.charCodeAt(0) === 0x22) {\n val = val.slice(1, -1)\n }\n\n obj[key] = tryDecode(val, dec);\n }\n\n index = endIdx + 1\n }\n\n return obj;\n}\n\n/**\n * Serialize data into a cookie header.\n *\n * Serialize the a name value pair into a cookie string suitable for\n * http headers. An optional options object specified cookie parameters.\n *\n * serialize('foo', 'bar', { httpOnly: true })\n * => \"foo=bar; httpOnly\"\n *\n * @param {string} name\n * @param {string} val\n * @param {object} [options]\n * @return {string}\n * @public\n */\n\nfunction serialize(name, val, options) {\n var opt = options || {};\n var enc = opt.encode || encode;\n\n if (typeof enc !== 'function') {\n throw new TypeError('option encode is invalid');\n }\n\n if (!fieldContentRegExp.test(name)) {\n throw new TypeError('argument name is invalid');\n }\n\n var value = enc(val);\n\n if (value && !fieldContentRegExp.test(value)) {\n throw new TypeError('argument val is invalid');\n }\n\n var str = name + '=' + value;\n\n if (null != opt.maxAge) {\n var maxAge = opt.maxAge - 0;\n\n if (isNaN(maxAge) || !isFinite(maxAge)) {\n throw new TypeError('option maxAge is invalid')\n }\n\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n var expires = opt.expires\n\n if (!isDate(expires) || isNaN(expires.valueOf())) {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + expires.toUTCString()\n }\n\n if (opt.httpOnly) {\n str += '; HttpOnly';\n }\n\n if (opt.secure) {\n str += '; Secure';\n }\n\n if (opt.partitioned) {\n str += '; Partitioned'\n }\n\n if (opt.priority) {\n var priority = typeof opt.priority === 'string'\n ? opt.priority.toLowerCase()\n : opt.priority\n\n switch (priority) {\n case 'low':\n str += '; Priority=Low'\n break\n case 'medium':\n str += '; Priority=Medium'\n break\n case 'high':\n str += '; Priority=High'\n break\n default:\n throw new TypeError('option priority is invalid')\n }\n }\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string'\n ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n case 'lax':\n str += '; SameSite=Lax';\n break;\n case 'strict':\n str += '; SameSite=Strict';\n break;\n case 'none':\n str += '; SameSite=None';\n break;\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n}\n\n/**\n * URL-decode string value. Optimized to skip native call when no %.\n *\n * @param {string} str\n * @returns {string}\n */\n\nfunction decode (str) {\n return str.indexOf('%') !== -1\n ? decodeURIComponent(str)\n : str\n}\n\n/**\n * URL-encode value.\n *\n * @param {string} val\n * @returns {string}\n */\n\nfunction encode (val) {\n return encodeURIComponent(val)\n}\n\n/**\n * Determine if value is a Date.\n *\n * @param {*} val\n * @private\n */\n\nfunction isDate (val) {\n return __toString.call(val) === '[object Date]' ||\n val instanceof Date\n}\n\n/**\n * Try decoding a string using a decoding function.\n *\n * @param {string} str\n * @param {function} decode\n * @private\n */\n\nfunction tryDecode(str, decode) {\n try {\n return decode(str);\n } catch (e) {\n return str;\n }\n}\n","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hasCookie = exports.deleteCookie = exports.setCookie = exports.getCookie = exports.getCookies = void 0;\nvar cookie_1 = require(\"cookie\");\nvar isClientSide = function () { return typeof window !== 'undefined'; };\nvar isCookiesFromAppRouter = function (cookieStore) {\n if (!cookieStore)\n return false;\n return ('getAll' in cookieStore &&\n 'set' in cookieStore &&\n typeof cookieStore.getAll === 'function' &&\n typeof cookieStore.set === 'function');\n};\nvar isContextFromAppRouter = function (context) {\n return ((!!(context === null || context === void 0 ? void 0 : context.req) && 'cookies' in context.req && isCookiesFromAppRouter(context === null || context === void 0 ? void 0 : context.req.cookies)) ||\n (!!(context === null || context === void 0 ? void 0 : context.res) && 'cookies' in context.res && isCookiesFromAppRouter(context === null || context === void 0 ? void 0 : context.res.cookies)) ||\n (!!(context === null || context === void 0 ? void 0 : context.cookies) && isCookiesFromAppRouter(context.cookies())));\n};\nvar transformAppRouterCookies = function (cookies) {\n var _cookies = {};\n cookies.getAll().forEach(function (_a) {\n var name = _a.name, value = _a.value;\n _cookies[name] = value;\n });\n return _cookies;\n};\nvar stringify = function (value) {\n try {\n if (typeof value === 'string') {\n return value;\n }\n var stringifiedValue = JSON.stringify(value);\n return stringifiedValue;\n }\n catch (e) {\n return value;\n }\n};\nvar decode = function (str) {\n if (!str)\n return str;\n return str.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n};\nvar getCookies = function (options) {\n if (isContextFromAppRouter(options)) {\n if (options === null || options === void 0 ? void 0 : options.req) {\n return transformAppRouterCookies(options.req.cookies);\n }\n if (options === null || options === void 0 ? void 0 : options.cookies) {\n return transformAppRouterCookies(options.cookies());\n }\n }\n var req;\n // DefaultOptions['req] can be casted here because is narrowed by using the fn: isContextFromAppRouter\n if (options)\n req = options.req;\n if (!isClientSide()) {\n // if cookie-parser is used in project get cookies from ctx.req.cookies\n // if cookie-parser isn't used in project get cookies from ctx.req.headers.cookie\n if (req && req.cookies)\n return req.cookies;\n if (req && req.headers.cookie)\n return (0, cookie_1.parse)(req.headers.cookie);\n return {};\n }\n var _cookies = {};\n var documentCookies = document.cookie ? document.cookie.split('; ') : [];\n for (var i = 0, len = documentCookies.length; i < len; i++) {\n var cookieParts = documentCookies[i].split('=');\n var _cookie = cookieParts.slice(1).join('=');\n var name_1 = cookieParts[0];\n _cookies[name_1] = _cookie;\n }\n return _cookies;\n};\nexports.getCookies = getCookies;\nvar getCookie = function (key, options) {\n var _cookies = (0, exports.getCookies)(options);\n var value = _cookies[key];\n if (value === undefined)\n return undefined;\n return decode(value);\n};\nexports.getCookie = getCookie;\nvar setCookie = function (key, data, options) {\n if (isContextFromAppRouter(options)) {\n var req = options.req, res = options.res, cookiesFn = options.cookies, restOptions = __rest(options, [\"req\", \"res\", \"cookies\"]);\n var payload = __assign({ name: key, value: stringify(data) }, restOptions);\n if (req) {\n req.cookies.set(payload);\n }\n if (res) {\n res.cookies.set(payload);\n }\n if (cookiesFn) {\n cookiesFn().set(payload);\n }\n return;\n }\n var _cookieOptions;\n var _req;\n var _res;\n if (options) {\n // DefaultOptions can be casted here because the AppRouterMiddlewareOptions is narrowed using the fn: isContextFromAppRouter\n var _a = options, req = _a.req, res = _a.res, _options = __rest(_a, [\"req\", \"res\"]);\n _req = req;\n _res = res;\n _cookieOptions = _options;\n }\n var cookieStr = (0, cookie_1.serialize)(key, stringify(data), __assign({ path: '/' }, _cookieOptions));\n if (!isClientSide()) {\n if (_res && _req) {\n var currentCookies = _res.getHeader('Set-Cookie');\n if (!Array.isArray(currentCookies)) {\n currentCookies = !currentCookies ? [] : [String(currentCookies)];\n }\n _res.setHeader('Set-Cookie', currentCookies.concat(cookieStr));\n if (_req && _req.cookies) {\n var _cookies = _req.cookies;\n data === '' ? delete _cookies[key] : (_cookies[key] = stringify(data));\n }\n if (_req && _req.headers && _req.headers.cookie) {\n var _cookies = (0, cookie_1.parse)(_req.headers.cookie);\n data === '' ? delete _cookies[key] : (_cookies[key] = stringify(data));\n _req.headers.cookie = Object.entries(_cookies).reduce(function (accum, item) {\n return accum.concat(\"\".concat(item[0], \"=\").concat(item[1], \";\"));\n }, '');\n }\n }\n }\n else {\n document.cookie = cookieStr;\n }\n};\nexports.setCookie = setCookie;\nvar deleteCookie = function (key, options) {\n return (0, exports.setCookie)(key, '', __assign(__assign({}, options), { maxAge: -1 }));\n};\nexports.deleteCookie = deleteCookie;\nvar hasCookie = function (key, options) {\n if (!key)\n return false;\n var cookie = (0, exports.getCookies)(options);\n return cookie.hasOwnProperty(key);\n};\nexports.hasCookie = hasCookie;\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/404\",\n function () {\n return require(\"private-next-pages/404.js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/404\"])\n });\n }\n ","import querystring from 'querystring';\nimport {\n keysToCamelFromSnake,\n keysToSnakeFromCamel,\n} from '../utils/caseconverters';\n\nconst API_URL = process.env.WAGTAIL_API_URL;\nconst NEXT_PUBLIC_API_URL =\n process.env.NEXT_PUBLIC_WAGTAIL_API_URL ?? '/wt/api/nextjs';\n\nexport async function getPage(path, params, options) {\n params = params || {};\n params = {\n htmlPath: path,\n ...params,\n };\n\n return await getRequest(`${API_URL}/v1/page_by_path/`, params, options);\n}\n\nexport async function getPageForClient(path, params, options) {\n params = params || {};\n params = {\n htmlPath: path,\n ...params,\n };\n return await getRequest(\n `${NEXT_PUBLIC_API_URL}/v1/page_by_path/`,\n params,\n options\n );\n}\n\nexport async function getPasswordProtectedPage(\n restrictionId,\n pageId,\n params,\n options\n) {\n params = params || {};\n return await postRequest(\n `${NEXT_PUBLIC_API_URL}/v1/password_protected_page/${restrictionId}/${pageId}/`,\n params,\n options\n );\n}\n\nexport async function getAllPages() {\n return await getRequest(`${API_URL}/v1/page_relative_urls/`);\n}\n\nexport async function getPagePreview(contentType, token, params, options) {\n params = params || {};\n params = {\n contentType,\n token,\n ...params,\n };\n\n return await getRequest(`${API_URL}/v1/page_preview/`, params, options);\n}\n\nexport async function getPublicViewData(slug, params, options) {\n return await getRequest(\n `${NEXT_PUBLIC_API_URL}/v1/external_view_data/${slug}/`,\n params,\n options\n );\n}\n\nexport async function getViewData(slug, params, options) {\n return await getRequest(\n `${API_URL}/v1/external_view_data/${slug}/`,\n params,\n options\n );\n}\n\nexport async function getRedirect(path, params, options) {\n params = params || {};\n params = {\n htmlPath: path,\n ...params,\n };\n\n return await getRequest(`${API_URL}/v1/redirect_by_path/`, params, options);\n}\n\nexport async function getRequest(url, params, options) {\n params = params || {};\n params = keysToSnakeFromCamel(params);\n\n let headers = options?.headers || {};\n headers = {\n 'Content-Type': 'application/json',\n ...headers,\n };\n const queryString = querystring.stringify(params);\n const res = await fetch(`${url}?${queryString}`, { headers });\n\n if (res.status < 200 || res.status >= 300) {\n const error = new WagtailApiResponseError(res, url, params);\n error.response = res;\n throw error;\n }\n\n const json = await res.json();\n return {\n headers: res.headers,\n json: keysToCamelFromSnake(json),\n };\n}\n\nexport async function postRequest(url, params, options) {\n params = params || {};\n params = keysToSnakeFromCamel(params);\n\n let headers = options?.headers || {};\n headers = {\n 'Content-Type': 'application/json',\n ...headers,\n };\n const res = await fetch(url, {\n method: 'POST',\n body: JSON.stringify(params),\n headers,\n });\n\n if (res.status < 200 || res.status >= 300) {\n const error = new WagtailApiResponseError(res, url, params);\n error.response = res;\n throw error;\n }\n\n const json = await res.json();\n return {\n headers: res.headers,\n json: keysToCamelFromSnake(json),\n };\n}\n\nexport async function postForm(formData, token = null) {\n return await postRequest(\n `${NEXT_PUBLIC_API_URL}/v1/submit_form/`,\n formData,\n {\n headers: {\n 'X-CSRFToken': token,\n },\n }\n );\n}\n\nexport class WagtailApiResponseError extends Error {\n constructor(res, url, params) {\n super(\n `${res.statusText}. Url: ${url}. Params: ${JSON.stringify(params)}`\n );\n this.name = 'WagtailApiResponseError';\n }\n}\n","import { useState, useEffect } from 'react';\nimport { getPublicViewData } from '../api/wagtail';\nimport LazyContainers from '../containers/LazyContainers';\nimport { getCookie } from 'cookies-next';\nimport { serverSideTranslations } from 'next-i18next/serverSideTranslations';\n\nconst matomoTracking = (matomoUrl) => {\n var _mtm = (window._mtm = window._mtm || []);\n const _paq = (window._paq = window._paq || []);\n _mtm.push({ 'mtm.startTime': new Date().getTime(), event: 'mtm.Start' });\n _paq.push([\n 'setDomains',\n [\n '*.${domain}',\n '*.minasidor.jamtkraft.se',\n '*.nya-minasidor.jamtkraft.se',\n ],\n ]);\n _paq.push(['enableCrossDomainLinking']);\n var d = document,\n g = d.createElement('script'),\n s = d.getElementsByTagName('script')[0];\n g.async = true;\n g.src = matomoUrl;\n s.parentNode.insertBefore(g, s);\n};\n\nexport const getStaticProps = async ({ locale }) => {\n return {\n props: {\n ...(await serverSideTranslations(locale ?? 'en', ['common'])),\n },\n };\n};\n\nfunction DynamicNotFoundPage(args) {\n // 404 does not support getServerSideProps, must fetch client side data\n // https://github.com/vercel/next.js/blob/master/errors/404-get-initial-props.md\n const [data, setData] = useState(null);\n\n useEffect(() => {\n async function fetchData() {\n const { json: pageData } = await getPublicViewData('404', {\n selectedSite: getCookie('selectedSite'),\n });\n setData(pageData);\n const { matomoUrl } = pageData.componentProps.siteSetting;\n\n if (matomoUrl) {\n setTimeout(() => matomoTracking(matomoUrl), 100);\n }\n }\n fetchData();\n }, []);\n\n if (!data) {\n return null;\n }\n\n return ;\n}\n\nexport default DynamicNotFoundPage;\n\nfunction NotFoundPage({ componentName, componentProps }) {\n const Component = LazyContainers[componentName];\n if (!Component) {\n return

Component {componentName} not found

;\n }\n return ;\n}\n\n/*\n// For static routing\nexport async function getStaticProps({ params, preview, previewData }) {\n const pageData = await getViewData('404');\n return { props: pageData }\n}\n*/\n","const snakeToCamel = (s) => {\n return s.replace(/(_\\w)/g, (x) => x[1].toUpperCase());\n};\n\nconst ucFirst = (s) => s.charAt(0).toUpperCase() + s.slice(1);\n\nconst snakeToPascal = (s) => s.split('_').map(ucFirst).join('');\nconst camelToPascal = (s) => ucFirst(s);\n\n/**\n * @link https://github.com/peet/camel-to-snake/blob/master/index.js\n */\nconst camelToSnake = (s) => {\n return s\n .replace(/([a-z]|(?:[A-Z0-9]+))([A-Z0-9]|$)/g, function (_, $1, $2) {\n return $1 + ($2 && '_' + $2);\n })\n .toLowerCase();\n};\n\nconst keysToSnakeFromCamel = (obj, removeNull = true) =>\n convertObjectKeys(obj, removeNull, camelToSnake);\n\nconst keysToCamelFromSnake = (obj, removeNull = true) =>\n convertObjectKeys(obj, removeNull);\n\nconst convertObjectKeys = (\n obj,\n removeNull = true,\n converter = snakeToCamel\n) => {\n if (Array.isArray(obj)) {\n return obj.map((x) => convertObjectKeys(x, removeNull, converter));\n }\n\n if (typeof obj !== 'object') {\n return obj;\n }\n\n let r = {};\n for (let key in obj) {\n if (removeNull && obj[key] === null) {\n continue;\n }\n\n r[converter(key)] =\n obj[key] && typeof obj[key] === 'object'\n ? convertObjectKeys(obj[key], removeNull, converter)\n : obj[key];\n }\n\n return r;\n};\n\nexport {\n ucFirst,\n convertObjectKeys,\n snakeToCamel,\n snakeToPascal,\n camelToPascal,\n camelToSnake,\n keysToSnakeFromCamel,\n keysToCamelFromSnake,\n};\n","(function(){\"use strict\";var e={815:function(e){function hasOwnProperty(e,r){return Object.prototype.hasOwnProperty.call(e,r)}e.exports=function(e,n,t,o){n=n||\"&\";t=t||\"=\";var a={};if(typeof e!==\"string\"||e.length===0){return a}var i=/\\+/g;e=e.split(n);var u=1e3;if(o&&typeof o.maxKeys===\"number\"){u=o.maxKeys}var c=e.length;if(u>0&&c>u){c=u}for(var p=0;p=0){_=f.substr(0,s);l=f.substr(s+1)}else{_=f;l=\"\"}y=decodeURIComponent(_);d=decodeURIComponent(l);if(!hasOwnProperty(a,y)){a[y]=d}else if(r(a[y])){a[y].push(d)}else{a[y]=[a[y],d]}}return a};var r=Array.isArray||function(e){return Object.prototype.toString.call(e)===\"[object Array]\"}},577:function(e){var stringifyPrimitive=function(e){switch(typeof e){case\"string\":return e;case\"boolean\":return e?\"true\":\"false\";case\"number\":return isFinite(e)?e:\"\";default:return\"\"}};e.exports=function(e,t,o,a){t=t||\"&\";o=o||\"=\";if(e===null){e=undefined}if(typeof e===\"object\"){return map(n(e),(function(n){var a=encodeURIComponent(stringifyPrimitive(n))+o;if(r(e[n])){return map(e[n],(function(e){return a+encodeURIComponent(stringifyPrimitive(e))})).join(t)}else{return a+encodeURIComponent(stringifyPrimitive(e[n]))}})).join(t)}if(!a)return\"\";return encodeURIComponent(stringifyPrimitive(a))+o+encodeURIComponent(stringifyPrimitive(e))};var r=Array.isArray||function(e){return Object.prototype.toString.call(e)===\"[object Array]\"};function map(e,r){if(e.map)return e.map(r);var n=[];for(var t=0;t