{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/store/root.store.ts","webpack:///./src/components/CookieBar.vue?0b28","webpack:///./src/App.vue?2446","webpack:///./src/utils/constants.ts","webpack:///./src/utils/api/api.ts","webpack:///./src/services/newsletter.service.ts","webpack:///./src/components/Newsletter.vue","webpack:///./src/components/Newsletter.vue?8d6c","webpack:///./src/components/CookieBar.vue","webpack:///./src/components/CookieBar.vue?4f75","webpack:///./src/App.vue","webpack:///./src/App.vue?8ecf","webpack:///./src/router/index.ts","webpack:///./src/main.ts","webpack:///./src/services/category.service.ts"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","exports","module","l","e","promises","Promise","resolve","reject","href","fullhref","p","existingLinkTags","document","getElementsByTagName","tag","dataHref","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","code","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","error","clearTimeout","chunk","errorType","realSrc","message","name","undefined","setTimeout","head","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice","useRootStore","defineStore","id","state","isLoading","categories","articles","hasLoadedArticles","actions","setCategories","this","$state","setArticles","API_BASE","apiConfig","baseURL","headers","common","Accept","paramsSerializer","params","qs","indices","Api","constructor","config","_defineProperty","api","axios","interceptors","use","param","authToken","localStorage","getItem","response","status","location","getUri","url","delete","post","put","patch","NewsletterService","super","add","email","newsletterApi","_hoisted_1","_createElementVNode","class","_hoisted_2","_hoisted_3","_hoisted_4","for","_hoisted_5","_defineComponent","__name","setup","__props","ref","isSubmitting","subscribe","async","alert","_ctx","_cache","_openBlock","_createElementBlock","_withDirectives","placeholder","$event","_vModelText","disabled","onClick","_withModifiers","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","cookieCategories","cookies","category","accepted","cookieMessage","acceptAllButtonText","declineAllButtonText","selectCookiesText","showCookieBar","showCookies","acceptCookies","selectedCookies","flatMap","filter","cookie","map","setItem","JSON","stringify","runCookies","acceptAllCookies","x","declineAllCookies","selectCookies","ids","initGoogleAnalytics","gtag","dataLayer","arguments","Date","querySelector","onMounted","_localStorage$getItem","storedCookies","parse","_toDisplayString","_vShow","_Fragment","_renderList","style","checked","onChange","toggleCookie","_createCommentVNode","alt","_createStaticVNode","role","_createTextVNode","rootStore","showAlert","categoryApi","getAll","_component_router_link","_resolveComponent","_component_router_view","_createVNode","to","custom","default","_withCtx","navigate","_","Newsletter","CookieBar","routes","component","router","createRouter","history","createWebHistory","process","scrollBehavior","from","savedPosition","top","beforeEach","next","scrollTo","left","behavior","createApp","App","createPinia","Popper","mount","Array","groupBy","prop","reduce","groups","item","val","String","CategoryService"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAg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CzPfc,oBAAUC,GACL7I,IAAI8H,IACJ9H,IAAI8I,gBAKJjB,UAAU,SAAUkB,MACpBC,MAAM,QAcXC,MAAMvR,UAAUwR,QAAU,SAAgCC,GACtD,OAAOvK,KAAKwK,QAAOA,SAAUC,EAAgCC,GACzD,MAAMC,EAAMD,EAAKH,GAGjB,OAFAE,EAAOG,OAAOD,IAAQF,EAAOG,OAAOD,KAAS,GAC7CF,EAAOG,OAAOD,IAAMzR,KAAKwR,GAClBD,IACR,CAAC,EAAE,CAAH,E,kCChCP,8DAGA,MAAMI,UAAwBhK,IAC1BC,YAAmBV,GACf+B,MAAM/B,GAENJ,KAAKmI,OAASnI,KAAKmI,OAAOvJ,KAAKoB,KAAKA,CAGjCmI,SACH,OAAOnI,KAAK/B,IAA8B,gBACrC5B,MAAM5C,GACIA,EAAOrB,QAKvB,MAAM8P,EAAc,IAAI2C,EAAgBzK","file":"js/app.2b82c4de.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t\"app\": 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"js/\" + ({\"Article~Articles\":\"Article~Articles\",\"Article\":\"Article\",\"Articles\":\"Articles\",\"ContactUs\":\"ContactUs\",\"Error\":\"Error\",\"ListArticles\":\"ListArticles\",\"Login\":\"Login\",\"Order\":\"Order\",\"OrderConfirm\":\"OrderConfirm\",\"SaveArticle\":\"SaveArticle\",\"Start\":\"Start\"}[chunkId]||chunkId) + \".\" + {\"Article~Articles\":\"7a4fe694\",\"Article\":\"9e640a20\",\"Articles\":\"6ec139ce\",\"ContactUs\":\"4dbb115e\",\"Error\":\"109d1dc1\",\"ListArticles\":\"303d3317\",\"Login\":\"50f138d3\",\"Order\":\"ba171797\",\"OrderConfirm\":\"50a54f0c\",\"SaveArticle\":\"9c9804f9\",\"Start\":\"4e70e64f\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"Article~Articles\":1,\"Article\":1,\"Articles\":1,\"ListArticles\":1,\"Order\":1,\"SaveArticle\":1,\"Start\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"css/\" + ({\"Article~Articles\":\"Article~Articles\",\"Article\":\"Article\",\"Articles\":\"Articles\",\"ContactUs\":\"ContactUs\",\"Error\":\"Error\",\"ListArticles\":\"ListArticles\",\"Login\":\"Login\",\"Order\":\"Order\",\"OrderConfirm\":\"OrderConfirm\",\"SaveArticle\":\"SaveArticle\",\"Start\":\"Start\"}[chunkId]||chunkId) + \".\" + {\"Article~Articles\":\"f39a60e6\",\"Article\":\"a88cb57d\",\"Articles\":\"f7fcf798\",\"ContactUs\":\"31d6cfe0\",\"Error\":\"31d6cfe0\",\"ListArticles\":\"f7fcf798\",\"Login\":\"31d6cfe0\",\"Order\":\"a5f71095\",\"OrderConfirm\":\"31d6cfe0\",\"SaveArticle\":\"353db2f1\",\"Start\":\"40783f8e\"}[chunkId] + \".css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import { defineStore } from \"pinia\";\r\nimport { CategoryViewModel } from '@/types/CategoryViewModel';\r\nimport { ArticleViewModel } from \"@/types/ArticleViewModel\";\r\n\r\nexport type RootState = {\r\n isLoading: boolean;\r\n hasLoadedArticles: boolean;\r\n categories: CategoryViewModel[];\r\n articles: ArticleViewModel[];\r\n};\r\n\r\nexport const useRootStore = defineStore({\r\n id: 'appStore',\r\n state: (): RootState => {\r\n return {\r\n isLoading: true,\r\n categories: [] as CategoryViewModel[],\r\n articles: [] as ArticleViewModel[],\r\n hasLoadedArticles: false\r\n }\r\n },\r\n actions: {\r\n setCategories(categories: CategoryViewModel[]) {\r\n this.$state.categories = categories;\r\n this.$state.isLoading = false;\r\n },\r\n setArticles(articles: ArticleViewModel[]) {\r\n this.$state.articles = articles;\r\n this.$state.hasLoadedArticles = true;\r\n }\r\n }\r\n});","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./CookieBar.vue?vue&type=style&index=0&id=4071fc6e&scoped=true&lang=scss\"","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../node_modules/vue-loader-v16/dist/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./App.vue?vue&type=style&index=0&id=2a0809b6&lang=scss\"","import { AxiosRequestConfig } from 'axios';\r\nimport * as qs from 'qs';\r\n\r\nexport const API_BASE = process.env.NODE_ENV === 'production' ? '/api' : 'https://localhost:8787/api/';\r\nexport const apiConfig: AxiosRequestConfig = {\r\n timeout: 15000,\r\n baseURL: API_BASE,\r\n headers: {\r\n common: {\r\n 'Content-Type': 'application/json',\r\n Accept: 'application/json',\r\n }\r\n },\r\n paramsSerializer: (params) => qs.stringify(params, { indices: false })\r\n};","import axios, { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';\r\nimport { API_BASE } from '../constants';\r\n\r\nexport class Api {\r\n private api: AxiosInstance;\r\n\r\n public constructor(config: AxiosRequestConfig) {\r\n this.api = axios.create(config);\r\n\r\n this.api.interceptors.request.use((param: AxiosRequestConfig) => {\r\n const authToken = localStorage.getItem('authToken');\r\n\r\n const config = {\r\n ...param,\r\n baseURL: API_BASE\r\n }\r\n\r\n if (authToken)\r\n config.headers['Authorization'] = `Bearer ${authToken}`;\r\n\r\n return {\r\n ...config\r\n }\r\n });\r\n\r\n this.api.interceptors.response.use(\r\n (response) => response,\r\n (error) => {\r\n if (error.response.status === 401) {\r\n window.location.href = '/admin/login';\r\n }\r\n return Promise.reject(error);\r\n }\r\n );\r\n }\r\n\r\n public getUri(config?: AxiosRequestConfig): string {\r\n return this.api.getUri(config);\r\n }\r\n\r\n public request>(config: AxiosRequestConfig): Promise {\r\n return this.api.request(config);\r\n }\r\n\r\n public get>(url: string, config?: AxiosRequestConfig): Promise {\r\n return this.api.get(url, config);\r\n }\r\n\r\n public delete>(url: string, config?: AxiosRequestConfig): Promise {\r\n return this.api.delete(url, config);\r\n }\r\n\r\n public head>(url: string, config?: AxiosRequestConfig): Promise {\r\n return this.api.head(url, config);\r\n }\r\n\r\n public post>(url: string, data: D, config?: AxiosRequestConfig): Promise {\r\n return this.api.post(url, data, config);\r\n }\r\n\r\n public put>(url: string, data: D, config?: AxiosRequestConfig): Promise {\r\n return this.api.put(url, data, config);\r\n }\r\n\r\n public patch>(url: string, data?: string, config?: AxiosRequestConfig): Promise {\r\n return this.api.patch(url, data, config);\r\n }\r\n}","import { AxiosRequestConfig, AxiosResponse } from 'axios';\r\nimport { Api } from '../utils/api/api';\r\nimport { apiConfig } from '../utils/constants';\r\n\r\nclass NewsletterService extends Api {\r\n public constructor(apiConfig: AxiosRequestConfig) {\r\n super(apiConfig);\r\n this.add = this.add.bind(this);\r\n }\r\n\r\n public add(email: string): Promise {\r\n return this.post(`newsletter`, { email: email })\r\n .then((result: AxiosResponse) => {\r\n return result.data\r\n });\r\n }\r\n}\r\n\r\nexport const newsletterApi = new NewsletterService(apiConfig);","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, vModelText as _vModelText, withDirectives as _withDirectives, withModifiers as _withModifiers, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createElementVNode(\"h5\", { class: \"accent-3 text-uppercase\" }, \"Prenumerera på nya släpp\", -1)\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"p\", null, \"Så fort vi lägger ut nya objekt så får du ett mail.\", -1)\nconst _hoisted_3 = { class: \"d-flex w-100 gap-2\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"label\", {\n for: \"newsletter\",\n class: \"visually-hidden\"\n}, \"Epost\", -1)\nconst _hoisted_5 = [\"disabled\", \"onClick\"]\n\nimport { ref } from 'vue';\r\n import { newsletterApi } from '@/services/newsletter.service';\r\n\r\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'Newsletter',\n setup(__props) {\n\r\n const email = ref('');\r\n const isSubmitting = ref(false);\r\n\r\n const subscribe = async function () {\r\n isSubmitting.value = true;\r\n const res = await newsletterApi.add(email.value);\r\n if (res) {\r\n email.value = '';\r\n alert('Du prenumererar nu!')\r\n }\r\n else {\r\n alert('Något gick snett. Kontrollera att e-posten följer formatet `namn@namn.se`.')\r\n isSubmitting.value = false;\r\n }\r\n }\r\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"form\", null, [\n _hoisted_1,\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _withDirectives(_createElementVNode(\"input\", {\n id: \"newsletter\",\n type: \"email\",\n class: \"form-control\",\n placeholder: \"Epostadress\",\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((email).value = $event))\n }, null, 512), [\n [_vModelText, email.value]\n ]),\n _createElementVNode(\"button\", {\n class: \"btn btn-primary\",\n type: \"button\",\n disabled: isSubmitting.value,\n onClick: _withModifiers(subscribe, [\"prevent\"])\n }, \" PRENUMERERA \", 8, _hoisted_5)\n ])\n ]))\n}\n}\n\n})","import script from \"./Newsletter.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Newsletter.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, vShow as _vShow, withDirectives as _withDirectives, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-4071fc6e\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n key: 0,\n class: \"cookie-bar shadow-lg border-top border-primary\"\n}\nconst _hoisted_2 = { class: \"container-fluid py-4\" }\nconst _hoisted_3 = { class: \"row\" }\nconst _hoisted_4 = { class: \"col\" }\nconst _hoisted_5 = { class: \"accent-3 text-center mb-4 display-6\" }\nconst _hoisted_6 = { class: \"row\" }\nconst _hoisted_7 = { class: \"col-auto mx-auto\" }\nconst _hoisted_8 = { class: \"d-flex justify-content-center\" }\nconst _hoisted_9 = { class: \"container\" }\nconst _hoisted_10 = { class: \"row\" }\nconst _hoisted_11 = { class: \"col-12\" }\nconst _hoisted_12 = { class: \"d-flex justify-content-center\" }\nconst _hoisted_13 = { class: \"list-group mt-2\" }\nconst _hoisted_14 = { class: \"list-group\" }\nconst _hoisted_15 = { class: \"form-check form-switch\" }\nconst _hoisted_16 = [\"id\", \"checked\", \"onChange\", \"disabled\"]\nconst _hoisted_17 = [\"for\"]\nconst _hoisted_18 = { class: \"col-12 text-center mt-3\" }\n\nimport { ref, onMounted } from 'vue';\r\n\r\n interface Cookie {\r\n id: string;\r\n name: string;\r\n category: string;\r\n accepted: boolean;\r\n disabled: boolean;\r\n }\r\n\r\n interface CookieCategory {\r\n id: string;\r\n name: string;\r\n cookies: Cookie[];\r\n }\r\n\r\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'CookieBar',\n setup(__props) {\n\r\n const cookieCategories: CookieCategory[] = [\r\n {\r\n id: 'necessary',\r\n name: 'Nödvändiga',\r\n cookies: [\r\n {\r\n id: 'necessary-site-cookie',\r\n name: 'Lagrar dina val av cookies',\r\n category: 'necessary',\r\n accepted: true,\r\n disabled: true\r\n },\r\n ],\r\n },\r\n //{\r\n // id: 'marketing',\r\n // name: 'Marknadsföring',\r\n // cookies: [\r\n // {\r\n // id: 'cookie3',\r\n // name: 'Marknadsföringscookie 1',\r\n // category: 'marketing',\r\n // accepted: true,\r\n // },\r\n // {\r\n // id: 'cookie4',\r\n // name: 'Marknadsföringscookie 2',\r\n // category: 'marketing',\r\n // accepted: true,\r\n // },\r\n // ],\r\n //},\r\n {\r\n id: 'statisical',\r\n name: 'Statistik- och analyskakor',\r\n cookies: [\r\n {\r\n id: 'ga4',\r\n name: 'Google Analytics 4 - För att analysera hur besökare använder webbplatsen och för att optimera innehållet för att passa dina behov',\r\n category: 'statisical',\r\n accepted: true,\r\n disabled: false\r\n }\r\n ]\r\n }\r\n ];\r\n\r\n const cookieMessage = ref('Vi använder cookies 🍪 för att förbättra din upplevelse på webbplatsen!');\r\n const acceptAllButtonText = ref('ACCEPTERA');\r\n const declineAllButtonText = ref('AVVISA');\r\n const selectCookiesText = ref('VÄLJ SJÄLV');\r\n\r\n const showCookieBar = ref(false);\r\n const showCookies = ref(false);\r\n\r\n const toggleCookie = (cookie: Cookie): void => {\r\n cookie.accepted = !cookie.accepted;\r\n };\r\n\r\n const acceptCookies = (): void => {\r\n showCookieBar.value = false;\r\n\r\n const selectedCookies = cookieCategories.flatMap((category) =>\r\n category.cookies.filter((cookie) => cookie.accepted).map((cookie) => cookie.id));\r\n\r\n localStorage.setItem('selectedCookies', JSON.stringify(selectedCookies));\r\n\r\n runCookies(selectedCookies);\r\n };\r\n\r\n const acceptAllCookies = (): void => {\r\n for (const category of cookieCategories) {\r\n for (const cookie of category.cookies.filter(x => !x.disabled)) {\r\n cookie.accepted = true;\r\n }\r\n }\r\n\r\n acceptCookies();\r\n };\r\n\r\n const declineAllCookies = (): void => {\r\n for (const category of cookieCategories) {\r\n for (const cookie of category.cookies.filter(x => !x.disabled)) {\r\n cookie.accepted = false;\r\n }\r\n }\r\n\r\n acceptCookies();\r\n };\r\n\r\n const selectCookies = (): void => {\r\n showCookies.value = true;\r\n };\r\n\r\n const runCookies = (ids: string[]): void => {\r\n for (const id of ids) {\r\n switch (id) {\r\n case 'ga4':\r\n initGoogleAnalytics();\r\n break;\r\n }\r\n }\r\n };\r\n\r\n const initGoogleAnalytics = (): void => {\r\n const isProduction = process.env.NODE_ENV === 'production';\r\n if (!isProduction)\r\n return;\r\n\r\n const script = document.createElement('script');\r\n script.src = 'https://www.googletagmanager.com/gtag/js?id=G-426SG6KY3G';\r\n script.async = true;\r\n script.onload = () => {\r\n (window as any).dataLayer = (window as any).dataLayer || [];\r\n function gtag() { (window as any).dataLayer.push(arguments); }\r\n gtag('js', new Date());\r\n\r\n gtag('config', 'G-426SG6KY3G');\r\n };\r\n\r\n const head = document.querySelector('head');\r\n if (head)\r\n head.appendChild(script);\r\n };\r\n\r\n onMounted(() => {\r\n const storedCookies: string[] | null = localStorage.getItem('selectedCookies')\r\n ? JSON.parse(localStorage.getItem('selectedCookies') ?? '')\r\n : null;\r\n\r\n if (storedCookies === null) {\r\n showCookieBar.value = true;\r\n return;\r\n }\r\n\r\n runCookies(storedCookies);\r\n });\r\n\nreturn (_ctx: any,_cache: any) => {\n return (showCookieBar.value)\n ? (_openBlock(), _createElementBlock(\"section\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"h6\", _hoisted_5, _toDisplayString(cookieMessage.value), 1)\n ])\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"button\", {\n onClick: acceptAllCookies,\n class: \"btn btn-primary me-2 btn-custom-size d-none d-md-block\"\n }, _toDisplayString(acceptAllButtonText.value), 1),\n _createElementVNode(\"button\", {\n onClick: declineAllCookies,\n class: \"btn btn-secondary me-4 btn-custom-size d-none d-md-block\"\n }, _toDisplayString(declineAllButtonText.value), 1),\n _createElementVNode(\"button\", {\n onClick: selectCookies,\n class: \"btn btn-outline-primary text-white btn-select-cookies btn-custom-size d-none d-md-block\"\n }, _toDisplayString(selectCookiesText.value), 1),\n _createElementVNode(\"button\", {\n onClick: acceptAllCookies,\n class: \"btn btn-primary me-2 d-md-none\"\n }, _toDisplayString(acceptAllButtonText.value), 1),\n _createElementVNode(\"button\", {\n onClick: declineAllCookies,\n class: \"btn btn-secondary me-4 d-md-none\"\n }, _toDisplayString(declineAllButtonText.value), 1),\n _createElementVNode(\"button\", {\n onClick: selectCookies,\n class: \"btn btn-outline-primary text-white btn-select-cookies d-md-none\"\n }, _toDisplayString(selectCookiesText.value), 1)\n ])\n ])\n ], 512), [\n [_vShow, !showCookies.value]\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"div\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n _createElementVNode(\"ul\", _hoisted_13, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(cookieCategories, (category) => {\n return _createElementVNode(\"li\", {\n key: category.id,\n class: \"list-group-item\",\n style: {\"background-color\":\"#ececec\"}\n }, [\n _createElementVNode(\"h5\", null, _toDisplayString(category.name), 1),\n _createElementVNode(\"ul\", _hoisted_14, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(category.cookies, (cookie) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: cookie.id,\n class: \"list-group-item bg-white\"\n }, [\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"input\", {\n type: \"checkbox\",\n id: cookie.id,\n checked: cookie.accepted,\n onChange: ($event: any) => (toggleCookie(cookie)),\n class: \"form-check-input border-secondary\",\n disabled: cookie.disabled\n }, null, 40, _hoisted_16),\n _createElementVNode(\"label\", {\n for: cookie.id,\n class: \"form-check-label\"\n }, _toDisplayString(cookie.name), 9, _hoisted_17)\n ])\n ]))\n }), 128))\n ])\n ])\n }), 64))\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_18, [\n _createElementVNode(\"button\", {\n onClick: acceptCookies,\n class: \"btn btn-primary btn-custom-size me-2\"\n }, _toDisplayString(acceptAllButtonText.value), 1),\n _createElementVNode(\"button\", {\n onClick: _cache[0] || (_cache[0] = ($event: any) => (showCookies.value = false)),\n class: \"btn btn-secondary btn-custom-size\"\n }, \"AVBRYT\")\n ])\n ])\n ], 512), [\n [_vShow, showCookies.value]\n ])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./CookieBar.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./CookieBar.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./CookieBar.vue?vue&type=style&index=0&id=4071fc6e&scoped=true&lang=scss\"\n\nimport exportComponent from \"C:\\\\dev\\\\priv\\\\NGHantverk.Store\\\\NGHantverk.Store.App\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-4071fc6e\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createTextVNode as _createTextVNode, withModifiers as _withModifiers, vShow as _vShow, withDirectives as _withDirectives, createStaticVNode as _createStaticVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"navbar navbar-expand navbar-white py-1 bg-green\" }\nconst _hoisted_2 = { class: \"container-fluid\" }\nconst _hoisted_3 = [\"href\", \"onClick\"]\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"img\", {\n src: \"/images/logo-small.png\",\n alt: \"NG Hantverk logotyp\",\n class: \"w-100\"\n}, null, -1)\nconst _hoisted_5 = [\n _hoisted_4\n]\nconst _hoisted_6 = /*#__PURE__*/_createStaticVNode(\"\", 1)\nconst _hoisted_7 = {\n class: \"alert alert-info alert-dismissible fade show rounded-0 mb-0 text-center\",\n role: \"alert\"\n}\nconst _hoisted_8 = /*#__PURE__*/_createElementVNode(\"strong\", null, [\n /*#__PURE__*/_createTextVNode(\" Tack för alla möten på \"),\n /*#__PURE__*/_createElementVNode(\"a\", {\n href: \"https://knivexpo.se\",\n target: \"_blank\"\n }, \"KnivExpo\"),\n /*#__PURE__*/_createTextVNode(\" i Vadstena. Vi ses nästa år! \")\n], -1)\nconst _hoisted_9 = { class: \"app pb-3 container px-4 px-lg-5 py-5\" }\nconst _hoisted_10 = {\n class: \"container-fluid border-top text-gray-light\",\n style: {\"background-color\":\"#333333 !important\"}\n}\nconst _hoisted_11 = { class: \"py-5 container\" }\nconst _hoisted_12 = { class: \"row\" }\nconst _hoisted_13 = /*#__PURE__*/_createStaticVNode(\"\", 1)\nconst _hoisted_14 = { class: \"col-md-5 order-1 order-md-2\" }\nconst _hoisted_15 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"d-flex justify-content-between py-4 my-4 border-top border-green\" }, [\n /*#__PURE__*/_createElementVNode(\"p\", null, \"© 2023 NG Hantverk\")\n], -1)\n\nimport { onMounted, ref } from 'vue';\r\n import { categoryApi } from '@/services/category.service';\r\n import { useRootStore } from '@/store/root.store';\r\n import Newsletter from '@/components/Newsletter.vue';\r\n import CookieBar from '@/components/CookieBar.vue';\r\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'App',\n setup(__props) {\n\r\n const rootStore = useRootStore();\r\n const showAlert = ref(true);\r\n\r\n onMounted(async () => {\r\n rootStore.setCategories(await categoryApi.getAll());\r\n });\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_router_link = _resolveComponent(\"router-link\")!\n const _component_router_view = _resolveComponent(\"router-view\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"nav\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_router_link, {\n to: { name:'Start' },\n custom: \"\"\n }, {\n default: _withCtx(({ href, navigate }) => [\n _createElementVNode(\"a\", {\n class: \"navbar-brand\",\n href: href,\n onClick: navigate\n }, _hoisted_5, 8, _hoisted_3)\n ]),\n _: 1\n }),\n _hoisted_6\n ])\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createTextVNode(\"🤠\"),\n _createElementVNode(\"button\", {\n type: \"button\",\n class: \"btn-close\",\n \"aria-label\": \"Stäng\",\n onClick: _cache[0] || (_cache[0] = _withModifiers(($event: any) => (showAlert.value = false), [\"prevent\"]))\n })\n ], 512), [\n [_vShow, showAlert.value]\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _createVNode(_component_router_view)\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"footer\", _hoisted_11, [\n _createElementVNode(\"div\", _hoisted_12, [\n _hoisted_13,\n _createElementVNode(\"div\", _hoisted_14, [\n _createVNode(Newsletter)\n ])\n ]),\n _hoisted_15\n ])\n ]),\n _createVNode(CookieBar)\n ], 64))\n}\n}\n\n})","import script from \"./App.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./App.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./App.vue?vue&type=style&index=0&id=2a0809b6&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { RouteRecordRaw, createRouter, createWebHistory } from \"vue-router\";\n\nconst routes: Array = [\n {\n \"path\": \"/\",\n \"name\": \"Start\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"Start\" */ \"@/views/Start.vue\"),\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": true\n }\n }\n },\n {\n \"path\": \"/knivar\",\n \"name\": \"Knifes\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"Articles\" */ \"@/views/Articles.vue\"),\n \"props\": { \"categoryId\": 2 },\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": true\n }\n }\n },\n {\n \"path\": \"/fodral\",\n \"name\": \"Sheath\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"Articles\" */ \"@/views/Articles.vue\"),\n \"props\": { \"categoryId\": 3 },\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": true\n }\n }\n },\n {\n \"path\": \"/skraddarsytt\",\n \"name\": \"CustomMade\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"Articles\" */ \"@/views/Articles.vue\"),\n \"props\": { \"categoryId\": 4 },\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": true\n }\n }\n },\n {\n \"path\": \"/knivar/:slug\",\n \"name\": \"Article-knivar\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"Article\" */ \"@/views/Article.vue\"),\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": false\n }\n }\n },\n {\n \"path\": \"/skraddarsytt/:slug\",\n \"name\": \"Article-skraddarsytt\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"Article\" */ \"@/views/Article.vue\"),\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": false\n }\n }\n },\n {\n \"path\": \"/fodral/:slug\",\n \"name\": \"Article-fodral\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"Article\" */ \"@/views/Article.vue\"),\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": false\n }\n }\n },\n {\n \"path\": \"/bestall/:slug\",\n \"name\": \"Order\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"Order\" */ \"@/views/Order.vue\"),\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": false\n }\n }\n },\n {\n \"path\": \"/bestallt\",\n \"name\": \"OrderConfirm\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"OrderConfirm\" */ \"@/views/OrderConfirm.vue\"),\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": false\n }\n }\n },\n {\n \"path\": \"/kontakta-oss\",\n \"name\": \"ContactUs\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"ContactUs\" */ \"@/views/ContactUs.vue\"),\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": true\n }\n }\n },\n {\n \"path\": \"/admin/article/save/:id?\",\n \"name\": \"SaveArticle\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"SaveArticle\" */ \"@/views/admin/article/SaveArticle.vue\"),\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": false\n }\n }\n },\n {\n \"path\": \"/admin/articles\",\n \"name\": \"ListArticles\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"ListArticles\" */ \"@/views/admin/article/ListArticles.vue\"),\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": false\n }\n }\n },\n {\n \"path\": \"/admin/login\",\n \"name\": \"Login\",\n // route level code-splitting\n // this generates a separate chunk (about.[hash].js) for this route\n // which is lazy-loaded when the route is visited.\n component: () => import(/* webpackChunkName: \"Login\" */ \"@/views/admin/Login.vue\"),\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": false\n }\n }\n },\n {\n \"path\": '/:catchAll(.*)',\n \"name\": '404-default',\n component: () => import(/* webpackChunkName: \"Error\" */ '@/views/Error.vue'),\n \"props\": { \"statusCode\": 404 },\n \"meta\": {\n \"sitemap\": {\n \"priority\": 0.7,\n \"changefreq\": \"weekly\",\n \"lastmod\": \"2023-07-08\",\n \"index\": false\n }\n }\n }\n]\n\nconst router = createRouter({\n history: createWebHistory(process.env.BASE_URL),\n routes,\n scrollBehavior(to, from, savedPosition) {\n if (savedPosition) {\n return savedPosition;\n } else {\n return new Promise((resolve) => {\n setTimeout(() => {\n resolve({ top: 0 });\n }, 200); // V�nta 100 ms innan du scrollar upp\n });\n }\n },\n});\n\nrouter.beforeEach((to, from, next) => {\n window.scrollTo({\n top: 0,\n left: 0,\n behavior: \"auto\",\n });\n next();\n});\n\n\nexport default router;","import { createApp } from 'vue';\r\nimport App from './App.vue';\r\nimport { createPinia } from 'pinia';\r\n//import { VueReCaptcha } from 'vue-recaptcha-v3';\r\nimport Popper from 'vue3-popper';\r\nimport router from './router/index';\r\n\r\ncreateApp(App)\r\n .use(router)\r\n .use(createPinia())\r\n //.use(VueReCaptcha, {\r\n // siteKey: '6LfjwuomAAAAALIKtZMFA_AqC-iqHTaYFlEgh7-f',\r\n // autoHideBadge: true\r\n //})\r\n .component(\"Popper\", Popper)\r\n .mount('#app');\r\n\r\ndeclare global {\r\n interface Array {\r\n groupBy(prop: keyof T): { [key: string]: T[] };\r\n }\r\n}\r\n\r\ndeclare global {\r\n interface Array {\r\n groupBy(prop: K): { [key: string]: T[] };\r\n }\r\n}\r\n\r\nArray.prototype.groupBy = function (prop: K) {\r\n return this.reduce(function (groups: { [key: string]: T[] }, item: T) {\r\n const val = item[prop];\r\n groups[String(val)] = groups[String(val)] || [];\r\n groups[String(val)].push(item);\r\n return groups;\r\n }, {});\r\n};","import { AxiosRequestConfig, AxiosResponse } from 'axios';\r\nimport { CategoryViewModel } from '../types/CategoryViewModel';\r\n\r\nimport { Api } from '../utils/api/api';\r\nimport { apiConfig } from '../utils/constants';\r\n\r\nclass CategoryService extends Api {\r\n public constructor(apiConfig: AxiosRequestConfig) {\r\n super(apiConfig);\r\n\r\n this.getAll = this.getAll.bind(this);\r\n }\r\n\r\n public getAll(): Promise> {\r\n return this.get>(`category/get`)\r\n .then((result: AxiosResponse>) => {\r\n return result.data\r\n });\r\n }\r\n}\r\n\r\nexport const categoryApi = new CategoryService(apiConfig);"],"sourceRoot":""}