{"version":3,"sources":["webpack:///./EnBW.Vertrieb.Websites.Dsc/StaticResources/TypeScript/Modules/Sidebar/component.vue?e789","webpack:///./EnBW.Vertrieb.Websites.Dsc/StaticResources/TypeScript/Modules/Sidebar/component.vue?b1d1","webpack:///./EnBW.Vertrieb.Websites.Dsc/StaticResources/TypeScript/Modules/Sidebar/index.ts","webpack:///./EnBW.Vertrieb.Websites.Dsc/StaticResources/TypeScript/Modules/Sidebar/component.vue","webpack:///./EnBW.Vertrieb.Websites.Dsc/StaticResources/TypeScript/Modules/Sidebar/component.vue?0953","webpack:///./EnBW.Vertrieb.Websites.Dsc/StaticResources/TypeScript/Modules/Sidebar/component.vue?cd62"],"names":["render","_vm","this","_h","$createElement","_c","_self","isMobile","_e","ref","staticClass","attrs","name","_l","viewModel","dataItems","dataItem","key","isSelected","_v","_s","helper","getTitle","href","getLinkUrl","target","getLinkTarget","title","getLinkTooltip","data-track-id","getTrackingId","data-cf-id","id","data-track-providers","directives","rawName","value","showMobileSidebar","expression","on","click","toggleSidebar","mobileDataItems","getTitleMobile","staticRenderFns","_withStripped","__webpack_require__","d","__webpack_exports__","documentReady_1","default","vueComponentFactory_1","component_vue_1","r","_component_vue_vue_type_template_id_82aa742c___WEBPACK_IMPORTED_MODULE_0__","_component_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__","__WEBPACK_IMPORT_KEY__","_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__","component","Object","options","__file","_node_modules_ts_loader_index_js_ref_2_node_modules_vue_loader_lib_index_js_vue_loader_options_component_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__","_node_modules_ts_loader_index_js_ref_2_node_modules_vue_loader_lib_index_js_vue_loader_options_component_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default","n","exports","vue_1","extend","mixins","componentMixin_1","componentMixin","inheritAttrs","data","DataItemHelper_1","DeviceHelper_1","mounted","_this","$nextTick","headline","$el","insertAdjacentHTML","mobileSidebar","getMobileSidebar","addEventListener","created","themas","document","querySelectorAll","length","i","dataset","undefined","innerHTML","slice","sort","a","beforeDestroy","removeEventListener","methods","TrackingHelper_1","generateKey","querySelector"],"mappings":"yGAAA,SAAAA,IACA,IAAAC,EAAAC,KACAC,EAAAF,EAAAG,eACAC,EAAAJ,EAAAK,MAAAD,IAAAF,EACA,OAAAE,EAAA,OACAJ,EAAAM,SAmDAN,EAAAO,KAlDAH,EACA,KACA,CACAI,IAAA,kBACAC,YAAA,UACAC,MAAA,CAAoBC,KAAA,mBAEpBX,EAAAY,GAAAZ,EAAAa,UAAAC,UAAA,SAAAC,GACA,OAAAX,EACA,KACA,CAAeY,IAAAD,EAAAC,IAAAP,YAAA,kBACf,CACAM,EAAAE,WACAb,EACA,MACA,CAAuBK,YAAA,wCACvB,CACAL,EAAA,OAAmCK,YAAA,kBAAgC,CACnEL,EAAA,QACAJ,EAAAkB,GAAAlB,EAAAmB,GAAAnB,EAAAoB,OAAAC,SAAAN,WAKAX,EACA,IACA,CACAK,YAAA,gBACAC,MAAA,CACAY,KAAAtB,EAAAoB,OAAAG,WAAAR,GACAS,OAAAxB,EAAAoB,OAAAK,cAAAV,GACAW,MAAA1B,EAAAoB,OAAAO,eAAAZ,GACAa,gBAAA5B,EAAA6B,cAAAd,GACAe,aAAAf,EAAAgB,GACAC,uBAAA,QAGA,CACA5B,EAAA,OAAmCK,YAAA,kBAAgC,CACnEL,EAAA,QACAJ,EAAAkB,GAAAlB,EAAAmB,GAAAnB,EAAAoB,OAAAC,SAAAN,eAQA,GAGAf,EAAAkB,GAAA,KACAlB,EAAAM,SACAF,EACA,MACA,CACA6B,WAAA,CACA,CACAtB,KAAA,OACAuB,QAAA,SACAC,MAAAnC,EAAAoC,kBACAC,WAAA,sBAGA7B,IAAA,kBAEA,CACAJ,EAAA,OAAuBK,YAAA,WAAyB,CAChDT,EAAAM,SACAF,EAAA,OACAK,YAAA,sBACA6B,GAAA,CAAyBC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AAS,CACLzD,cAAa,WACTvC,KAAKmC,mBAAqBnC,KAAKmC,mBAEnCP,cAAa,SAACd,GACV,OAAOmF,EAAAjD,QAAekD,YAAY,sBAAuB3B,EAAAvB,QAAepB,cAAcd,KAE1FkE,iBAAgB,WAGZ,OAAOI,SAASe,cAFC","file":"module.Sidebar.3386b83c95c642664a63.chunk.js","sourcesContent":["var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", [\n !_vm.isMobile\n ? _c(\n \"ul\",\n {\n ref: \"sidebar-desktop\",\n staticClass: \"sidebar\",\n attrs: { name: \"selection-card\" }\n },\n _vm._l(_vm.viewModel.dataItems, function(dataItem) {\n return _c(\n \"li\",\n { key: dataItem.key, staticClass: \"sidebar__entry\" },\n [\n dataItem.isSelected\n ? _c(\n \"div\",\n { staticClass: \"sidebar__item sidebar__item-selected\" },\n [\n _c(\"div\", { staticClass: \"sidebar__label\" }, [\n _c(\"span\", [\n _vm._v(_vm._s(_vm.helper.getTitle(dataItem)))\n ])\n ])\n ]\n )\n : _c(\n \"a\",\n {\n staticClass: \"sidebar__item\",\n attrs: {\n href: _vm.helper.getLinkUrl(dataItem),\n target: _vm.helper.getLinkTarget(dataItem),\n title: _vm.helper.getLinkTooltip(dataItem),\n \"data-track-id\": _vm.getTrackingId(dataItem),\n \"data-cf-id\": dataItem.id,\n \"data-track-providers\": \"bai\"\n }\n },\n [\n _c(\"div\", { staticClass: \"sidebar__label\" }, [\n _c(\"span\", [\n _vm._v(_vm._s(_vm.helper.getTitle(dataItem)))\n ])\n ])\n ]\n )\n ]\n )\n }),\n 0\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.isMobile\n ? _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.showMobileSidebar,\n expression: \"showMobileSidebar\"\n }\n ],\n ref: \"sidebar-mobile\"\n },\n [\n _c(\"div\", { staticClass: \"sidebar\" }, [\n _vm.isMobile\n ? _c(\"div\", {\n staticClass: \"sidebar__icon-close\",\n on: { click: _vm.toggleSidebar }\n })\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"ul\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.showMobileSidebar,\n expression: \"showMobileSidebar\"\n }\n ],\n attrs: { name: \"selection-card\" }\n },\n _vm._l(_vm.mobileDataItems, function(dataItem) {\n return _c(\n \"li\",\n { key: dataItem.key, staticClass: \"sidebar__entry\" },\n [\n dataItem.isSelected\n ? _c(\n \"div\",\n {\n staticClass:\n \"sidebar__item sidebar__item-selected\"\n },\n [\n _c(\"div\", { staticClass: \"sidebar__label\" }, [\n _c(\"span\", [\n _vm._v(_vm._s(_vm.helper.getTitle(dataItem)))\n ])\n ])\n ]\n )\n : _c(\n \"a\",\n {\n staticClass: \"sidebar__item\",\n attrs: {\n href: _vm.helper.getLinkUrl(dataItem),\n \"data-track-id\": _vm.getTrackingId(dataItem),\n \"data-cf-id\": dataItem.id,\n \"data-track-providers\": \"bai\"\n }\n },\n [\n _c(\"div\", { staticClass: \"sidebar__label\" }, [\n _c(\"span\", [\n _vm._v(\n _vm._s(_vm.helper.getTitleMobile(dataItem))\n )\n ])\n ])\n ]\n )\n ]\n )\n }),\n 0\n )\n ])\n ]\n )\n : _vm._e()\n ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","export * from \"-!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./component.vue?vue&type=template&id=82aa742c&\"","import component from './component.vue';\r\nimport documentReady from 'ComponentExtras/documentReady';\r\nimport vueComponentFactory from 'ComponentExtras/vueComponentFactory';\r\n\r\ndocumentReady(() => {\r\n vueComponentFactory(component, 'Module_Sidebar');\r\n});\r\n","import { render, staticRenderFns } from \"./component.vue?vue&type=template&id=82aa742c&\"\nimport script from \"./component.vue?vue&type=script&lang=ts&\"\nexport * from \"./component.vue?vue&type=script&lang=ts&\"\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(\"D:\\\\a\\\\1\\\\s\\\\Dsc\\\\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('82aa742c')) {\n api.createRecord('82aa742c', component.options)\n } else {\n api.reload('82aa742c', component.options)\n }\n module.hot.accept(\"./component.vue?vue&type=template&id=82aa742c&\", function () {\n api.rerender('82aa742c', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"EnBW.Vertrieb.Websites.Dsc/StaticResources/TypeScript/Modules/Sidebar/component.vue\"\nexport default component.exports","import mod from \"-!../../../../../node_modules/ts-loader/index.js??ref--2!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./component.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/ts-loader/index.js??ref--2!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./component.vue?vue&type=script&lang=ts&\"","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from 'vue';\r\nimport DataItemHelper from '../../Helper/DataItemHelper';\r\nimport { DataItemDto } from '../../Models/DataItemDto';\r\nimport TrackingHelper from '../../Helper/TrackingHelper';\r\nimport DeviceHelper from '../../Helper/DeviceHelper';\r\nimport { componentMixin } from '../../mixins/componentMixin';\r\n\r\nexport default Vue.extend({\r\n mixins: [componentMixin],\r\n inheritAttrs: false,\r\n data() {\r\n const data = {\r\n showMobileSidebar: false,\r\n helper: DataItemHelper,\r\n mobileDataItems: null,\r\n isMobile: DeviceHelper.isMobile(),\r\n };\r\n\r\n return data;\r\n },\r\n mounted() {\r\n this.$nextTick(() => {\r\n if (this.viewModel.headline) {\r\n this.$el.insertAdjacentHTML('beforebegin', this.viewModel.headline);\r\n }\r\n });\r\n\r\n const mobileSidebar = this.getMobileSidebar();\r\n if (mobileSidebar) {\r\n mobileSidebar.addEventListener('click', this.toggleSidebar);\r\n }\r\n },\r\n created() {\r\n const themas = document.querySelectorAll('#sidebar-thema');\r\n\r\n if (themas !== null && themas !== undefined && themas.length > 0) {\r\n for (let i = 0; i < themas.length; i++) {\r\n if (themas[i].dataset !== null && themas[i].dataset !== undefined && themas[i].dataset.key !== null && themas[i].dataset.key !== undefined) {\r\n themas[i].innerHTML = themas[i].dataset.key;\r\n }\r\n }\r\n }\r\n\r\n this.mobileDataItems = [...this.viewModel.dataItems].sort(function (a) {\r\n return a.isSelected ? -1 : 1;\r\n });\r\n },\r\n beforeDestroy() {\r\n const mobileSidebar = this.getMobileSidebar();\r\n if (mobileSidebar) {\r\n mobileSidebar.removeEventListener('click', this.toggleSidebar);\r\n }\r\n },\r\n methods: {\r\n toggleSidebar() {\r\n this.showMobileSidebar = !this.showMobileSidebar;\r\n },\r\n getTrackingId(dataItem: DataItemDto) {\r\n return TrackingHelper.generateKey('taxonomy-navigation', DataItemHelper.getTrackingId(dataItem));\r\n },\r\n getMobileSidebar() {\r\n const selector = '.mobile-sidebar';\r\n\r\n return document.querySelector(selector);\r\n },\r\n },\r\n});\r\n"],"sourceRoot":""}