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AAG,GAAGV,EAAIc,GAAG,KAAKX,EAAG,MAAM,CAACG,YAAY,8BAA8B,CAACH,EAAG,SAAS,CAACG,YAAY,2BAA2BE,MAAM,CAAC,KAAO,eAAeQ,KAAK,mBAAmB,GAAGhB,EAAIiB,IAAI,EAC7xBC,EAAkB,E","sources":["webpack:///./resources/area/web/default/js/components/catalog/ProductSubCategoryList.vue?bcb6","webpack:///./resources/area/web/default/js/components/catalog/ProductSubCategoryList.vue","webpack:///./resources/area/web/default/js/components/catalog/ProductSubCategoryList.vue?cb4d","webpack:///./resources/area/web/default/js/components/catalog/ProductSubCategoryList.vue?5877"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport {Component, Vue, Prop} from 'vue-property-decorator';\nimport ServiceContainer from '@flashpointbv/solar-service-container';\nimport {Swiper} from 'vue-awesome-swiper';\n@Component({\n  name: 'catalog-product-subcategory-list',\n  components: ServiceContainer().getComponents(),\n})\nexport default class extends Vue {\n  $refs!: {\n    subCategoriesSlider: InstanceType<typeof Swiper>;\n  }\n  @Prop() readonly subCategories: Array<object>;\n  private slideOptions: object = {\n    slidesPerView: 'auto',\n    loop: false,\n    spaceBetween: 10,\n    centerInsufficientSlides: true,\n    pagination: {\n      el: `.categories_list .swiper__progress`,\n      type: 'progressbar'\n    },\n  };\n  private slideToIndex(): void {\n    this.subCategories.forEach((category, index) => {\n      if(category.hasOwnProperty('is_selected_category') && category['is_selected_category']) {\n        this.$refs['subCategoriesSlider'].$swiper.slideTo(index, 200, false);\n      }\n    })\n  }\n  private get activeSubCategories(): Array<object> {\n    return this.subCategories.filter(category => category['show_in_menu']);\n  }\n  private mounted(): void {\n    const interval = setInterval(() => {\n      if(this.$refs['subCategoriesSlider']) {\n        this.slideToIndex();\n        clearInterval(interval);\n      }\n    }, 50);\n  }\n}\n","import { render, staticRenderFns } from \"./ProductSubCategoryList.vue?vue&type=template&id=22103110&\"\nimport script from \"./ProductSubCategoryList.vue?vue&type=script&lang=ts&\"\nexport * from \"./ProductSubCategoryList.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\nexport default component.exports","import mod from \"-!../../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductSubCategoryList.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../../node_modules/ts-loader/index.js??clonedRuleSet-5[0].rules[0].use[0]!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ProductSubCategoryList.vue?vue&type=script&lang=ts&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.subCategories.length >= 3)?_c('div',{staticClass:\"categories_list\"},[_c('swiper',{ref:\"subCategoriesSlider\",attrs:{\"options\":_vm.slideOptions}},_vm._l((_vm.activeSubCategories),function(subCategory){return _c('swiper-slide',{key:subCategory['id']},[_c('a',{staticClass:\"--button --secondary --border--light --thin\",class:{ '--active ' : subCategory['is_selected_category']},staticStyle:{\"display\":\"block\"},attrs:{\"href\":subCategory['url_key']}},[_vm._v(\"\\n          \"+_vm._s(subCategory['name'])+\"\\n        \")])])}),1),_vm._v(\" \"),_c('div',{staticClass:\"--navi hide-for-small-only\"},[_c('button',{staticClass:\"swiper-navigation --next\",attrs:{\"slot\":\"button-next\"},slot:\"button-next\"})])],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }"],"names":["Vue","slideOptions","slidesPerView","loop","spaceBetween","centerInsufficientSlides","pagination","el","type","slideToIndex","this","subCategories","forEach","category","index","hasOwnProperty","$refs","$swiper","slideTo","activeSubCategories","filter","mounted","interval","setInterval","clearInterval","Prop","Array","Component","name","components","getComponents","render","_vm","_h","$createElement","_c","_self","length","staticClass","ref","attrs","_l","subCategory","key","class","staticStyle","_v","_s","slot","_e","staticRenderFns"],"sourceRoot":""}