{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.promise.finally.js","webpack:///./resources/js/src/app/components/category/StepByStepNavigation.vue?9623","webpack:///resources/js/src/app/components/category/StepByStepNavigation.vue","webpack:///./resources/js/src/app/components/category/StepByStepNavigation.vue?4c6a","webpack:///./resources/js/src/app/components/category/StepByStepNavigation.vue"],"names":["$","IS_PURE","NativePromise","fails","getBuiltIn","isCallable","speciesConstructor","promiseResolve","redefine","target","proto","real","forced","prototype","call","then","onFinally","C","this","isFunction","x","e","method","unsafe","render","_vm","_h","$createElement","_c","_self","isInitiallyLoaded","_e","_t","_v","staticClass","class","catLevelTwo","_l","categoryChildren","category","columnDivider","attrs","href","getCategoryUrl","url","title","details","metaTitle","name","imageSource","level","src","alt","_s","_withStripped","component","options","__file"],"mappings":"2FACA,IAAIA,EAAI,EAAQ,IACZC,EAAU,EAAQ,IAClBC,EAAgB,EAAQ,KACxBC,EAAQ,EAAQ,IAChBC,EAAa,EAAQ,IACrBC,EAAa,EAAQ,IACrBC,EAAqB,EAAQ,KAC7BC,EAAiB,EAAQ,KACzBC,EAAW,EAAQ,IAyBvB,GAhBAR,EAAE,CAAES,OAAQ,UAAWC,OAAO,EAAMC,MAAM,EAAMC,SAN5BV,GAAiBC,GAAM,WACzCD,EAAcW,UAAmB,QAAEC,KAAK,CAAEC,KAAM,eAA+B,mBAKV,CACrE,QAAW,SAAUC,GACnB,IAAIC,EAAIX,EAAmBY,KAAMd,EAAW,YACxCe,EAAad,EAAWW,GAC5B,OAAOE,KAAKH,KACVI,EAAa,SAAUC,GACrB,OAAOb,EAAeU,EAAGD,KAAaD,MAAK,WAAc,OAAOK,MAC9DJ,EACJG,EAAa,SAAUE,GACrB,OAAOd,EAAeU,EAAGD,KAAaD,MAAK,WAAc,MAAMM,MAC7DL,OAMLf,GAAWI,EAAWH,GAAgB,CACzC,IAAIoB,EAASlB,EAAW,WAAWS,UAAmB,QAClDX,EAAcW,UAAmB,UAAMS,GACzCd,EAASN,EAAcW,U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,CACE,MAAF,CACI,WACJ,CACM,KAAN,OACM,UAAN,GAEI,YACJ,CACM,KAAN,OACM,UAAN,GAEI,UACJ,CACM,KAAN,OACM,QAAN,GAEI,YACJ,CACM,KAAN,OACM,QAAN,aAEI,QACJ,CACM,KAAN,OACM,QAAN,GAEI,WACJ,CACM,KAAN,OACM,QAAN,IAEI,cACJ,CACM,KAAN,OACM,UAAN,IAIE,KAvCF,WAyCI,MAAJ,CACM,WAAN,EACM,mBAAN,IAIE,S,+VAAF,EAEI,cAFJ,WAIM,OAAN,+BAGA,aACI,iBAAJ,YAAM,OAAN,kCAIE,YA3DF,WA6DI,KAAJ,aAGE,QACF,CACI,UADJ,WAEM,IAAN,OACA,iBAEQ,KAAR,aAEQ,KAAR,4CACA,CAAU,WAAV,gBAAU,KAAV,iBACA,oBAEU,EAAV,aACU,EAAV,0BAKI,eAjBJ,SAiBA,GAEM,IAAN,oBAGM,OAFN,gEAEA,K,OE5GIC,EAAY,YACd,EACA/B,EHsFoB,IGpFpB,EACA,KACA,KACA,MAuBF+B,EAAUC,QAAQC,OAAS,oEACZ,UAAAF,E","file":"chunks/ceres-19.min.js","sourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromise = require('../internals/native-promise-constructor');\nvar fails = require('../internals/fails');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar speciesConstructor = require('../internals/species-constructor');\nvar promiseResolve = require('../internals/promise-resolve');\nvar redefine = require('../internals/redefine');\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromise && fails(function () {\n  NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.es/ecma262/#sec-promise.prototype.finally\n$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n  'finally': function (onFinally) {\n    var C = speciesConstructor(this, getBuiltIn('Promise'));\n    var isFunction = isCallable(onFinally);\n    return this.then(\n      isFunction ? function (x) {\n        return promiseResolve(C, onFinally()).then(function () { return x; });\n      } : onFinally,\n      isFunction ? function (e) {\n        return promiseResolve(C, onFinally()).then(function () { throw e; });\n      } : onFinally\n    );\n  }\n});\n\n// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromise)) {\n  var method = getBuiltIn('Promise').prototype['finally'];\n  if (NativePromise.prototype['finally'] !== method) {\n    redefine(NativePromise.prototype, 'finally', method, { unsafe: true });\n  }\n}\n","var render = function () {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _c(\n    \"div\",\n    [\n      !_vm.isInitiallyLoaded ? _vm._t(\"default\") : _vm._e(),\n      _vm._v(\" \"),\n      _c(\n        \"div\",\n        {\n          staticClass: \"row\",\n          class: { \"cat-level-2 mx-0\": _vm.catLevelTwo > 1 },\n        },\n        _vm._l(_vm.categoryChildren, function (category) {\n          return _c(\n            \"div\",\n            {\n              staticClass: \"mb-3 col-5 col-md-3\",\n              class: [\n                \"col-lg-\" + _vm.columnDivider,\n                { \"col-5\": _vm.catLevelTwo <= 1, \"col-6\": _vm.catLevelTwo > 1 },\n              ],\n            },\n            [\n              _c(\n                \"a\",\n                {\n                  attrs: {\n                    href: _vm.getCategoryUrl(category.url),\n                    title:\n                      category.details[0].metaTitle || category.details[0].name,\n                  },\n                },\n                [\n                  _c(\n                    \"div\",\n                    {\n                      staticClass: \"nav-item border d-flex\",\n                      class: {\n                        \"no-img\":\n                          !category.details[0][_vm.imageSource] ||\n                          category.level > 2,\n                      },\n                    },\n                    [\n                      category.details[0][_vm.imageSource] &&\n                      category.level <= 2\n                        ? _c(\"div\", { staticClass: \"prop-2-1\" }, [\n                            _vm.imageSource !== \"none\"\n                              ? _c(\"img\", {\n                                  attrs: {\n                                    src:\n                                      \"/documents/\" +\n                                      category.details[0][_vm.imageSource],\n                                    alt:\n                                      category.details[0].metaTitle ||\n                                      category.details[0].name,\n                                  },\n                                })\n                              : _vm._e(),\n                          ])\n                        : _vm._e(),\n                      _vm._v(\" \"),\n                      _c(\n                        \"div\",\n                        { staticClass: \"nav-text d-flex align-center p-2\" },\n                        [\n                          _c(\n                            \"span\",\n                            { staticClass: \"text-appearance mx-auto\" },\n                            [\n                              _vm._v(\n                                \"\\n                        \" +\n                                  _vm._s(category.details[0].name) +\n                                  \"\\n                        \"\n                              ),\n                            ]\n                          ),\n                        ]\n                      ),\n                    ]\n                  ),\n                ]\n              ),\n            ]\n          )\n        }),\n        0\n      ),\n    ],\n    2\n  )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","<template>\r\n    <div>\r\n        <slot v-if=\"!isInitiallyLoaded\"></slot>\r\n        <div class=\"row\" :class=\"{'cat-level-2 mx-0': catLevelTwo > 1}\">\r\n            <div class=\"mb-3 col-5 col-md-3\"\r\n                 :class=\"['col-lg-' + columnDivider, {'col-5': catLevelTwo <= 1, 'col-6': catLevelTwo > 1}]\" v-for=\"category in categoryChildren\">\r\n                <a :href=\"getCategoryUrl(category.url)\"\r\n                   :title=\"category.details[0].metaTitle || category.details[0].name\">\r\n                    <div class=\"nav-item border d-flex\" :class=\"{ 'no-img': !category.details[0][imageSource] || category.level > 2 }\">\r\n                        <div v-if=\"category.details[0][imageSource] && category.level <= 2\" class=\"prop-2-1\">\r\n                            <img v-if=\"imageSource !== 'none'\" :src=\"'/documents/' + category.details[0][imageSource]\"\r\n                                 :alt=\"category.details[0].metaTitle || category.details[0].name\">\r\n                        </div>\r\n                        <div class=\"nav-text d-flex align-center p-2\">\r\n                            <span class=\"text-appearance mx-auto\">\r\n                            {{ category.details[0].name }}\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                </a>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</template>\r\n\r\n<script>\r\nimport { mapState } from \"vuex\";\r\n\r\nexport default {\r\n    props: {\r\n        categoryId:\r\n        {\r\n            type: Number,\r\n            required: true\r\n        },\r\n        catLevelTwo:\r\n        {\r\n            type: Number,\r\n            required: false\r\n        },\r\n        chunkSize:\r\n        {\r\n            type: Number,\r\n            default: 8\r\n        },\r\n        imageSource:\r\n        {\r\n            type: String,\r\n            default: \"imagePath\"\r\n        },\r\n        columns:\r\n        {\r\n            type: Number,\r\n            default: 4\r\n        },\r\n        columnsMax:\r\n        {\r\n            type: Number,\r\n            default: 12\r\n        },\r\n        childrenCount:\r\n        {\r\n            type: Number,\r\n            required: true\r\n        }\r\n    },\r\n\r\n    data()\r\n    {\r\n        return {\r\n            isWaiting: false,\r\n            isInitiallyLoaded: false\r\n        };\r\n    },\r\n\r\n    computed:\r\n        {\r\n            columnDivider()\r\n            {\r\n                return this.columnsMax / this.columns;\r\n            },\r\n\r\n            ...mapState({\r\n                categoryChildren: state => state.navigation.categoryChildren\r\n            })\r\n        },\r\n\r\n    beforeMount()\r\n    {\r\n        this.loadChunk();\r\n    },\r\n\r\n    methods:\r\n    {\r\n        loadChunk()\r\n        {\r\n            if (!this.isWaiting)\r\n            {\r\n                this.isWaiting = true;\r\n\r\n                this.$store.dispatch(\"loadCategoryChildrenChunk\",\r\n                    { categoryId: this.categoryId, size: this.chunkSize })\r\n                    .finally(() =>\r\n                    {\r\n                        this.isWaiting = false;\r\n                        this.isInitiallyLoaded = true;\r\n                    });\r\n            }\r\n        },\r\n\r\n        getCategoryUrl(url)\r\n        {\r\n            const trailingSlash = url[0] === \"/\" ? \"\" : \"/\";\r\n            const prefix = App.urls.includeLanguage ? `/${ App.language }${ trailingSlash }` : \"\";\r\n\r\n            return prefix + url;\r\n        }\r\n    }\r\n}\r\n</script>\r\n","import mod from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StepByStepNavigation.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StepByStepNavigation.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./StepByStepNavigation.vue?vue&type=template&id=1c90b572&\"\nimport script from \"./StepByStepNavigation.vue?vue&type=script&lang=js&\"\nexport * from \"./StepByStepNavigation.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  null,\n  null\n  \n)\n\n/* hot reload */\nif (module.hot) {\n  var api = require(\"/Users/philippneumann/Documents/frontendstudios/8291/438/GonserDT/node_modules/vue-hot-reload-api/dist/index.js\")\n  api.install(require('vue'))\n  if (api.compatible) {\n    module.hot.accept()\n    if (!api.isRecorded('1c90b572')) {\n      api.createRecord('1c90b572', component.options)\n    } else {\n      api.reload('1c90b572', component.options)\n    }\n    module.hot.accept(\"./StepByStepNavigation.vue?vue&type=template&id=1c90b572&\", function () {\n      api.rerender('1c90b572', {\n        render: render,\n        staticRenderFns: staticRenderFns\n      })\n    })\n  }\n}\ncomponent.options.__file = \"resources/js/src/app/components/category/StepByStepNavigation.vue\"\nexport default component.exports"],"sourceRoot":""}