{"version":3,"sources":["webpack:///./src/components/shared/Pagination.vue","webpack:///src/components/shared/Pagination.vue","webpack:///./src/components/shared/Pagination.vue?f4f1","webpack:///./src/components/shared/Pagination.vue?ac7f","webpack:///./src/components/shared/Pagination.vue?f9ad","webpack:///./src/views/SearchView.vue?abcb","webpack:///./src/views/SearchView.vue","webpack:///src/views/SearchView.vue","webpack:///./src/views/SearchView.vue?182b","webpack:///./src/views/SearchView.vue?3325"],"names":["render","_vm","this","_c","_self","showPagination","staticClass","_v","_s","paginationResultsTitle","class","disabled","prevDisabled","attrs","query","page","search","$route","paginationProps","currentRoute","_l","pages","index","key","active","nextDisabled","parseInt","pager","totalPages","_e","staticRenderFns","name","mixins","translations","data","actionName","action","computed","props","String","type","Object","default","mounted","timerId","setTimeout","$store","dispatch","searchConfig","clearTimeout","watch","goToPage","component","selectedArticle","slot","domProps","addToCartSuccessMessage","title","highlightedImageUrl","baseUrl","goToShoppingCart","continueShopping","quickArticle","id","directives","rawName","value","sortField","expression","on","$event","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","multiple","handleSortChange","sortFields","item","label","pageSize","$set","changePageSize","pageSizeList","join","layout","articles","length","articleId","params","slug","slugify","profile","discountDataVisible","getCurrentDiscount","_f","sale","disableSelling","canPassRestrictions","addToCart","hasAttributes","getQuickArticle","quickPreview","brandId","brand","replace","isOnWishlist","stopPropagation","preventDefault","toggleWishlistItem","isOnWishList","oldPrice","price","salePrice","saleDiscountPercentage","forms","labels","code","canViewPrices","getCurrentPrice","getOldPrice","stockAmount","allowOrderingStockZero","showOutOfStockModal","availableOnRequest","noResultsAccordingToTheGivenParameters","staticStyle","shortDescription","setQuantity","quantity","modifiers","composing","_n","$forceUpdate","chooseOptions","manufacturer","productName","preview","discount","toFixed","categories","searchFilters","categoryId","categoryIds","isArray","_i","$$a","$$el","$$c","checked","$$v","$$i","concat","slice","stock","onStock","isInStock","brands","brandIds","maxPriceInThisCategory","priceRange","parseFloat","minPriceInThisCategory","ref","handlePriceChangeOnEnter","roundPrice","handlePriceChange","apply","tags","tagIds","tagTitle","components","QuickPreview","Pagination","Photo","Modal","layouts","attributeValuesIds","_this$profile","userData","articleAlwaysVisibleOnWeb","quickSearch","trim","minPrice","maxPrice","getters","getSearchViewArticles","config","getSearchFilters","category","getCategoryById","prices","_this$searchFilters","_this$searchFilters2","getAllowOrderingStockZero","getMostPopularTags","getProfile","methods","matchedPP","baseArticlePrice","event","$refs","priceInput0","blur","priceInput1","getArticles","num","getFilters","sortBy","isSortAscending","api","then","response","$toast","info","$router","push","addToShoppingCart","$","modal","itemAddedToCart","catch","err","error","field","find","i","handleSort","handleScroll","localStorage","setItem","window","scrollY","addEventListener","scrollPosition","getItem","scrollTo","top","behavior","destroyed","removeEventListener"],"mappings":"+GAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAAEF,EAAII,eAAgBF,EAAG,MAAM,CAACG,YAAY,8BAA8B,CAACH,EAAG,MAAM,CAACG,YAAY,6BAA6B,CAACH,EAAG,QAAQ,CAACF,EAAIM,GAAGN,EAAIO,GAAGP,EAAIQ,6BAA6BN,EAAG,KAAK,CAACG,YAAY,cAAc,CAACH,EAAG,KAAK,CAACG,YAAY,YAAYI,MAAM,CAAEC,SAAUV,EAAIW,eAAgB,CAACT,EAAG,cAAc,CAACG,YAAY,iBAAiBO,MAAM,CAAC,GAAK,CAAEC,MAAO,CAAEC,KAAM,EAAGC,OAAQf,EAAIgB,OAAOH,MAAME,UAAWf,EAAIiB,oBAAsB,CAACf,EAAG,OAAO,CAACA,EAAG,IAAI,CAACG,YAAY,gCAAgC,GAAGH,EAAG,KAAK,CAACG,YAAY,YAAYI,MAAM,CAAEC,SAAUV,EAAIW,eAAgB,CAACT,EAAG,cAAc,CAACG,YAAY,iBAAiBO,MAAM,CAAC,GAAK,CACzrBC,MAAO,CACLC,MAAOd,EAAIkB,aAAaL,MAAMC,KAAO,E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OAAAE,iBAAA,cAAAL,cACA,MAAAM,EAAAL,aAAAM,QAAA,wBACAD,GACAH,OAAAK,SAAA,CAAAC,IAAA3N,SAAAwN,EAAA,IAAAI,SAAA,WAEA,KAAAjC,cACA,KAAAE,aACA,KAAA1C,cAEA0E,YACAR,OAAAS,oBAAA,cAAAZ,eAEA1L,MAAA,CACAoH,WACA,KAAA+C,eAKA9D,cACA,KAAA8D,eAEAd,SACA,KAAA/B,WAAA,KAAA+B,QAEAtB,SACA,KAAAoC,eAEAlD,UACA,KAAAjJ,gBAAAiJ,SAAA,SAAAA,SAAA,KACA,KAAAkD,iBCp6BiX,I,wBCQ7WjK,EAAY,eACd,EACApD,EACA8B,GACA,EACA,KACA,WACA,MAIa,aAAAsB,E","file":"js/search-view.7007911f.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.showPagination)?_c('nav',{staticClass:\"toolbox toolbox-pagination\"},[_c('div',{staticClass:\"toolbox-item toolbox-show\"},[_c('label',[_vm._v(_vm._s(_vm.paginationResultsTitle))])]),_c('ul',{staticClass:\"pagination\"},[_c('li',{staticClass:\"page-item\",class:{ disabled: _vm.prevDisabled }},[_c('router-link',{staticClass:\"page-link prev\",attrs:{\"to\":{ query: { page: 1, search: _vm.$route.query.search, ..._vm.paginationProps } }}},[_c('span',[_c('i',{staticClass:\"icon-angle-double-left\"})])])],1),_c('li',{staticClass:\"page-item\",class:{ disabled: _vm.prevDisabled }},[_c('router-link',{staticClass:\"page-link prev\",attrs:{\"to\":{\n query: {\n page: +_vm.currentRoute.query.page - 1,\n search: _vm.$route.query.search,\n ..._vm.paginationProps,\n },\n }}},[_c('span',[_c('i',{staticClass:\"icon-angle-left\"})])])],1),_vm._l((_vm.pages),function(index){return _c('li',{key:index,staticClass:\"page-item\",class:{\n active: index == _vm.currentRoute.query.page || (index === 1 && !_vm.currentRoute.query.page),\n }},[_c('router-link',{staticClass:\"page-link\",attrs:{\"exact\":\"\",\"to\":{ query: { page: index, search: _vm.$route.query.search, ..._vm.paginationProps } }}},[_vm._v(\" \"+_vm._s(index)+\" \")])],1)}),_c('li',{staticClass:\"page-item\",class:{ disabled: _vm.nextDisabled }},[_c('router-link',{staticClass:\"page-link next\",attrs:{\"to\":{\n query: {\n page: parseInt(_vm.currentRoute.query.page || 1, 10) + 1,\n search: _vm.$route.query.search,\n ..._vm.paginationProps,\n },\n }}},[_c('span',[_c('a',{staticClass:\"page-link page-link-btn\",attrs:{\"href\":\"#\"}},[_c('i',{staticClass:\"icon-angle-right\"})])])])],1),_c('li',{staticClass:\"page-item\",class:{ disabled: _vm.nextDisabled }},[_c('router-link',{staticClass:\"page-link next\",attrs:{\"to\":{\n query: { page: _vm.pager.totalPages, search: _vm.$route.query.search, ..._vm.paginationProps },\n }}},[_c('span',[_c('i',{staticClass:\"icon-angle-double-right\"})])])],1)],2)]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <nav class=\"toolbox toolbox-pagination\" v-if=\"showPagination\">\r\n <div class=\"toolbox-item toolbox-show\">\r\n <label>{{ paginationResultsTitle }}</label>\r\n </div>\r\n <!-- End .toolbox-item -->\r\n <ul class=\"pagination\">\r\n <li class=\"page-item\" :class=\"{ disabled: prevDisabled }\">\r\n <router-link\r\n class=\"page-link prev\"\r\n :to=\"{ query: { page: 1, search: $route.query.search, ...paginationProps } }\"\r\n >\r\n <span>\r\n <i class=\"icon-angle-double-left\" />\r\n </span>\r\n </router-link>\r\n </li>\r\n <li class=\"page-item\" :class=\"{ disabled: prevDisabled }\">\r\n <router-link\r\n class=\"page-link prev\"\r\n :to=\"{\r\n query: {\r\n page: +currentRoute.query.page - 1,\r\n search: $route.query.search,\r\n ...paginationProps,\r\n },\r\n }\"\r\n >\r\n <span>\r\n <i class=\"icon-angle-left\"></i>\r\n </span>\r\n </router-link>\r\n </li>\r\n <li\r\n class=\"page-item\"\r\n :class=\"{\r\n active: index == currentRoute.query.page || (index === 1 && !currentRoute.query.page),\r\n }\"\r\n v-for=\"index in pages\"\r\n :key=\"index\"\r\n >\r\n <router-link\r\n exact\r\n class=\"page-link\"\r\n :to=\"{ query: { page: index, search: $route.query.search, ...paginationProps } }\"\r\n >\r\n {{ index }}\r\n </router-link>\r\n </li>\r\n\r\n <li class=\"page-item\" :class=\"{ disabled: nextDisabled }\">\r\n <router-link\r\n class=\"page-link next\"\r\n :to=\"{\r\n query: {\r\n page: parseInt(currentRoute.query.page || 1, 10) + 1,\r\n search: $route.query.search,\r\n ...paginationProps,\r\n },\r\n }\"\r\n >\r\n <span>\r\n <a class=\"page-link page-link-btn\" href=\"#\"><i class=\"icon-angle-right\"></i></a>\r\n </span>\r\n </router-link>\r\n </li>\r\n\r\n <li class=\"page-item\" :class=\"{ disabled: nextDisabled }\">\r\n <router-link\r\n class=\"page-link next\"\r\n :to=\"{\r\n query: { page: pager.totalPages, search: $route.query.search, ...paginationProps },\r\n }\"\r\n >\r\n <span>\r\n <i class=\"icon-angle-double-right\" />\r\n </span>\r\n </router-link>\r\n </li>\r\n </ul>\r\n </nav>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { pager, translations } from '@/mixins';\r\n\r\nexport default {\r\n name: 'Pagination',\r\n mixins: [pager, translations],\r\n data() {\r\n return {\r\n actionName: this.action,\r\n };\r\n },\r\n computed: {\r\n currentRoute() {\r\n return this.$route;\r\n },\r\n },\r\n props: {\r\n action: String,\r\n paginationProps: {\r\n type: Object,\r\n default: () => ({}),\r\n },\r\n },\r\n mounted() {\r\n const { query } = this.$route;\r\n\r\n const timerId = setTimeout(() => {\r\n this.$store.dispatch(this.actionName, {\r\n ...this.searchConfig,\r\n ...this.paginationProps,\r\n page: query?.page ? parseInt(query.page, 10) : 1,\r\n });\r\n clearTimeout(timerId);\r\n }, 0);\r\n },\r\n watch: {\r\n '$route.query.page': function redirect(page = 1) {\r\n this.goToPage(parseInt(page, 10));\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.page-item:not(.disabled) {\r\n cursor: pointer;\r\n}\r\n\r\n.page-item.disabled {\r\n cursor: not-allowed;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Pagination.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Pagination.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Pagination.vue?vue&type=template&id=0b66d8b6&scoped=true\"\nimport script from \"./Pagination.vue?vue&type=script&lang=js\"\nexport * from \"./Pagination.vue?vue&type=script&lang=js\"\nimport style0 from \"./Pagination.vue?vue&type=style&index=0&id=0b66d8b6&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0b66d8b6\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/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/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Pagination.vue?vue&type=style&index=0&id=0b66d8b6&prod&lang=scss&scoped=true\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/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/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchView.vue?vue&type=style&index=0&id=15dbd9f0&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.selectedArticle)?_c('modal',{attrs:{\"id\":\"addCartModal\"}},[_c('div',{staticClass:\"modal-body add-cart-box text-center\",attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.translations.addToCartSuccessMessage)}}),_c('h4',{attrs:{\"id\":\"productTitle\"}},[_vm._v(\" \"+_vm._s(_vm.selectedArticle.title)+\" \")]),(_vm.selectedArticle.highlightedImageUrl)?_c('img',{attrs:{\"src\":`${_vm.baseUrl}${_vm.selectedArticle.highlightedImageUrl}`,\"id\":\"productImage\",\"width\":\"100\",\"height\":\"100\",\"alt\":\"adding cart image\"}}):_c('img',{attrs:{\"src\":\"assets/images/no-image.jpg\",\"id\":\"productImage\",\"width\":\"100\",\"height\":\"100\",\"alt\":\"adding cart image\"}}),_c('div',{staticClass:\"btn-actions\"},[_c('router-link',{attrs:{\"to\":{ name: 'ShoppingCart' },\"data-dismiss\":\"modal\"}},[_c('button',{staticClass:\"btn-primary\"},[_vm._v(_vm._s(_vm.translations.goToShoppingCart))])]),_c('button',{staticClass:\"btn-primary\",attrs:{\"data-dismiss\":\"modal\"}},[_vm._v(\" \"+_vm._s(_vm.translations.continueShopping)+\" \")])],1)])]):_vm._e(),(_vm.quickArticle)?_c('modal',{attrs:{\"id\":\"quick-preview-article\"}},[_c('div',{staticClass:\"modal-body\",attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('quick-preview',{key:_vm.quickArticle.id})],1)]):_vm._e(),_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-lg-9 col-xl-5col-4\"},[_c('nav',{staticClass:\"toolbox mb-4 row\"},[_c('div',{staticClass:\"col-12 col-sm-6 d-flex\"},[_c('div',{staticClass:\"toolbox-item toolbox-sort\"},[_c('div',{staticClass:\"select-custom\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.sortField),expression:\"sortField\"}],staticClass:\"form-control\",attrs:{\"name\":\"orderby\"},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.sortField=$event.target.multiple ? $$selectedVal : $$selectedVal[0]},_vm.handleSortChange]}},_vm._l((_vm.sortFields),function(item){return _c('option',{key:item.id,domProps:{\"value\":item.id}},[_vm._v(\" \"+_vm._s(_vm.translations[item.label])+\" \")])}),0)])]),_c('div',{staticClass:\"toolbox-item toolbox-sort\"},[_c('div',{staticClass:\"select-custom\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.searchConfig.pageSize),expression:\"searchConfig.pageSize\"}],staticClass:\"form-control\",attrs:{\"name\":\"results-per-page\"},on:{\"change\":[function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.$set(_vm.searchConfig, \"pageSize\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])},function($event){return _vm.changePageSize(_vm.searchConfig.pageSize)}]}},_vm._l((_vm.pageSizeList),function(page){return _c('option',{key:page,domProps:{\"value\":page}},[_vm._v(\" \"+_vm._s(page)+\" \")])}),0)])])]),_c('div',{class:[\n 'col-12 col-sm-6',\n 'justify-content-between justify-content-md-end',\n 'align-items-center',\n 'd-flex',\n ].join(' ')},[_c('label',{staticClass:\"d-flex d-sm-none d-md-flex\"},[_vm._v(_vm._s(_vm.paginationResultsTitle))]),_c('div',{staticClass:\"layout-modes d-none d-md-flex justify-content-end\"},[_c('div',{staticClass:\"layout-btn btn-grid\",class:{ active: _vm.layout === 'grid' },attrs:{\"title\":\"Grid\"},on:{\"click\":function($event){_vm.layout = 'grid'}}},[_c('i',{staticClass:\"fa fa-th\"})]),_c('div',{staticClass:\"layout-btn btn-list\",class:{ active: _vm.layout === 'list' },attrs:{\"title\":\"List\"},on:{\"click\":function($event){_vm.layout = 'list'}}},[_c('i',{staticClass:\"fa fa-th-list\"})]),_c('div',{staticClass:\"layout-btn btn-bars\",class:{ active: _vm.layout === 'bars' },attrs:{\"title\":\"Bars\"},on:{\"click\":function($event){_vm.layout = 'bars'}}},[_c('i',{staticClass:\"fas fa-bars\"})])])])]),(_vm.articles && _vm.articles.length > 0 && _vm.layout === 'grid')?_c('div',{staticClass:\"row row-sm\"},_vm._l((_vm.articles),function(item){return _c('div',{key:item.articleId,staticClass:\"col-6 col-md-4 col-lg-3 mb-2\"},[_c('div',{staticClass:\"product-default inner-quickview inner-icon bg-white h-100 mb-0\"},[_c('figure',[_c('router-link',{attrs:{\"to\":{\n name: 'Article',\n params: { id: item.id, slug: _vm.slugify(item.title) }\n }}},[(item.highlightedImageUrl)?_c('Photo',{attrs:{\"src\":`${_vm.baseUrl}${item.highlightedImageUrl}`}}):_c('Photo',{attrs:{\"src\":\"assets/images/no-image.jpg\"}})],1),(_vm.profile.discountDataVisible && _vm.getCurrentDiscount(item) > 0.1)?_c('div',{staticClass:\"label-group\"},[_c('span',{staticClass:\"product-label label-cut\"},[_vm._v(\" \"+_vm._s(_vm._f(\"percentage\")(_vm.getCurrentDiscount(item)))+\"% \"+_vm._s(_vm.translations.sale)+\" \")])]):_vm._e(),(!item.disableSelling || _vm.canPassRestrictions)?_c('div',{staticClass:\"btn-icon-group\"},[_c('button',{staticClass:\"btn-icon btn-add-cart\",on:{\"click\":function($event){return _vm.addToCart(item)}}},[(item.hasAttributes)?_c('i',{staticClass:\"sicon-equalizer\"}):_c('i',{staticClass:\"icon-bag\"})])]):_vm._e(),_c('button',{staticClass:\"btn btn-sm btn-quickview\",attrs:{\"data-toggle\":\"modal\"},on:{\"click\":function($event){return _vm.getQuickArticle(item.id)}}},[_vm._v(\" \"+_vm._s(_vm.translations.quickPreview)+\" \")])],1),_c('div',{staticClass:\"product-details\"},[_c('div',{staticClass:\"category-wrap\"},[_c('div',{staticClass:\"category-list\"},[(item.brandId)?_c('router-link',{staticClass:\"product-category\",attrs:{\"to\":{ name: 'Brand',\n params: { id: item.brandId, title: item.brand.replace(/\\s+/g, '-') } }}},[_vm._v(\" \"+_vm._s(item.brand)+\" \")]):_c('span',{staticClass:\"product-category\"},[_vm._v(\" \"+_vm._s(item.brand)+\" \")])],1),_c('a',{staticClass:\"btn-icon-wish\",class:{ active: item.isOnWishlist },attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.toggleWishlistItem(item.articleId)}}},[_c('i',{staticClass:\"icon-heart\",class:{ 'icon-heart-1': item.isOnWishList }})])]),_c('h2',{staticClass:\"product-title\"},[_c('router-link',{attrs:{\"to\":{\n name: 'Article',\n params: { id: item.id, slug: _vm.slugify(item.title) }\n }}},[_vm._v(\" \"+_vm._s(item.title)+\" \")]),(\n item.oldPrice &&\n item.oldPrice !== item.price &&\n (!item.salePrice || (item.salePrice || 0) === 0)\n )?_c('div',{staticClass:\"label-group\"},[_c('span',{staticClass:\"product-label label-cut\"},[_vm._v(\" \"+_vm._s(_vm._f(\"percentage\")((100 * (1 - item.price / item.oldPrice))))+\"% \")])]):_vm._e(),(item.salePrice || (item.salePrice || 0) > 0)?_c('div',{staticClass:\"label-group\"},[_c('span',{staticClass:\"product-label label-cut\"},[_vm._v(\" \"+_vm._s(_vm._f(\"percentage\")(item.saleDiscountPercentage))+\"% \"+_vm._s(_vm.translations.sale)+\" \")])]):_vm._e()],1),_c('div',{staticClass:\"ratings-container\"},[_vm._v(\" \"+_vm._s(_vm.translations.forms.labels.code)+\": \"+_vm._s(item.code)+\" \")]),(_vm.canViewPrices && !item.disableSelling)?_c('div',{staticClass:\"price-box\"},[_c('span',{staticClass:\"product-price\"},[_vm._v(_vm._s(_vm._f(\"money\")(_vm.getCurrentPrice(item))))]),(_vm.getOldPrice(item) > 0)?_c('span',{staticClass:\"old-price\"},[_vm._v(\" \"+_vm._s(_vm._f(\"money2\")(_vm.getOldPrice(item)))+\" KM \")]):_vm._e()]):_vm._e(),(\n (item.disableSelling || (!item.stockAmount && !_vm.allowOrderingStockZero)) &&\n !_vm.canPassRestrictions\n )?_c('button',{staticClass:\"btn btn-primary btn-sm py-2 px-0 text-center btn-block\",on:{\"click\":function($event){return _vm.showOutOfStockModal(item)}}},[_vm._v(\" \"+_vm._s(_vm.translations.availableOnRequest)+\" \")]):_vm._e()])])])}),0):_vm._e(),(_vm.articles && _vm.articles.length === 0)?_c('div',{staticClass:\"row row-sm\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"alert alert-info\"},[_vm._v(\" \"+_vm._s(_vm.translations.noResultsAccordingToTheGivenParameters)+\". \")])])]):_vm._e(),(_vm.layout === 'list' && _vm.articles && _vm.articles.length > 0)?_c('div',{staticClass:\"row row-sm\"},_vm._l((_vm.articles),function(item){return _c('div',{key:item.id,staticClass:\"col-6 col-sm-12 product-default left-details product-list\"},[_c('figure',[_c('router-link',{attrs:{\"to\":{\n name: 'Article',\n params: { id: item.id, slug: _vm.slugify(item.title) }\n }}},[(item.highlightedImageUrl)?_c('img',{attrs:{\"src\":`${_vm.baseUrl}${item.highlightedImageUrl}`}}):_c('img',{attrs:{\"src\":\"assets/images/no-image.jpg\"}}),_c('div',{staticClass:\"label-group\",staticStyle:{\"position\":\"absolute\",\"top\":\"5px\",\"left\":\"5px\"}},[(\n item.oldPrice &&\n item.oldPrice !== item.price &&\n (!item.salePrice || (item.salePrice || 0) === 0)\n )?_c('span',{staticClass:\"product-label label-cut\"},[_vm._v(_vm._s(_vm._f(\"percentage\")((100 * (1 - item.price / item.oldPrice))))+\"%\")]):_vm._e(),(item.salePrice || (item.salePrice || 0) > 0)?_c('span',{staticClass:\"product-label label-cut\"},[_vm._v(_vm._s(_vm._f(\"percentage\")(item.saleDiscountPercentage))+\"% \"+_vm._s(_vm.translations.sale))]):_vm._e()])]),(_vm.getCurrentDiscount(item) > 0.1)?_c('div',{staticClass:\"label-group\",staticStyle:{\"position\":\"absolute\",\"top\":\"5px\",\"left\":\"5px\"}},[_c('span',{staticClass:\"product-label label-cut\"},[_vm._v(\" \"+_vm._s(_vm._f(\"percentage\")(_vm.getCurrentDiscount(item)))+\"% \"+_vm._s(_vm.translations.sale)+\" \")])]):_vm._e()],1),_c('div',{staticClass:\"product-details product-details-list\"},[_c('div',{staticClass:\"category-list\"},[_c('a',{staticClass:\"product-category\"},[_vm._v(_vm._s(item.brand))])]),_c('h2',{staticClass:\"product-title\"},[_c('router-link',{attrs:{\"to\":{\n name: 'Article',\n params: { id: item.id, slug: _vm.slugify(item.title) }\n }}},[_vm._v(\" \"+_vm._s(item.title)+\" \")])],1),_c('div',{staticClass:\"ratings-container\"},[_vm._v(\" \"+_vm._s(_vm.translations.forms.labels.code)+\": \"+_vm._s(item.code)+\" \")]),_c('p',{staticClass:\"product-description\",domProps:{\"innerHTML\":_vm._s(item.shortDescription)}}),(_vm.canViewPrices && !item.disableSelling)?_c('div',{staticClass:\"price-box\"},[_c('span',{staticClass:\"product-price\"},[_vm._v(_vm._s(_vm._f(\"money\")(_vm.getCurrentPrice(item))))]),(_vm.getOldPrice(item))?_c('span',{staticClass:\"old-price\"},[_vm._v(\" \"+_vm._s(_vm._f(\"money2\")(_vm.getOldPrice(item)))+\" KM \")]):_vm._e()]):_vm._e(),_c('div',{staticClass:\"product-action\"},[(!item.disableSelling)?_c('div',{staticClass:\"product-single-qty product-list-quantity\"},[_c('div',{staticClass:\"input-group\"},[_c('span',{staticClass:\"input-group-btn input-group-prepend\",on:{\"click\":function($event){return _vm.setQuantity(item, -1)}}},[_c('button',{staticClass:\"btn btn-outline btn-down-icon\",attrs:{\"type\":\"button\"}})]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(item.quantity),expression:\"item.quantity\",modifiers:{\"number\":true}}],staticClass:\"horizontal-quantity form-control\",domProps:{\"value\":(item.quantity)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(item, \"quantity\", _vm._n($event.target.value))},\"blur\":function($event){return _vm.$forceUpdate()}}}),_c('span',{staticClass:\"input-group-btn input-group-append\",on:{\"click\":function($event){return _vm.setQuantity(item, 1)}}},[_c('button',{staticClass:\"btn btn-outline btn-up-icon\",attrs:{\"type\":\"button\"}})])])]):_vm._e(),(!item.disableSelling || _vm.canPassRestrictions)?_c('button',{staticClass:\"btn-icon btn-add-cart\",on:{\"click\":function($event){return _vm.addToCart(item)}}},[(item.hasAttributes)?_c('i',{staticClass:\"sicon-equalizer\"}):_c('i',{staticClass:\"icon-bag\"}),_vm._v(\" \"+_vm._s(item.hasAttributes ? _vm.translations.chooseOptions : _vm.translations.addToCart)+\" \")]):_vm._e(),(\n (item.disableSelling || (!item.stockAmount && !_vm.allowOrderingStockZero)) &&\n !_vm.canPassRestrictions\n )?_c('button',{staticClass:\"btn-icon btn-add-cart\",on:{\"click\":function($event){return _vm.showOutOfStockModal(item)}}},[_vm._v(\" \"+_vm._s(_vm.translations.availableOnRequest)+\" \")]):_vm._e(),_c('a',{staticClass:\"btn-icon-wish\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.toggleWishlistItem(item.id)}}},[_c('i',{staticClass:\"icon-heart\"})]),_c('button',{staticClass:\"btn-quickview\",on:{\"click\":function($event){return _vm.getQuickArticle(item.id)}}},[_c('i',{staticClass:\"fas fa-external-link-alt\"})])])])])}),0):_vm._e(),(_vm.layout === 'bars' && _vm.articles && _vm.articles.length > 0)?_c('div',{staticClass:\"table-product-list\"},[_c('table',{staticClass:\"table text-left\"},[_c('thead',[_c('tr',[_c('th',[_vm._v(_vm._s(_vm.translations.manufacturer))]),_c('th',[_vm._v(_vm._s(_vm.translations.forms.labels.code))]),_c('th',[_vm._v(_vm._s(_vm.translations.productName))]),_c('th',[_vm._v(_vm._s(_vm.translations.preview))]),(_vm.canViewPrices)?_c('th',[_vm._v(\"VP Cijena\")]):_vm._e(),_c('th',[_vm._v(_vm._s(_vm.translations.discount))]),_c('th')])]),_c('tbody',_vm._l((_vm.articles),function(item){return _c('tr',{key:item.id},[_c('td',[_vm._v(\" \"+_vm._s(item.brand)+\" \")]),_c('td',[_vm._v(\" \"+_vm._s(item.code)+\" \")]),_c('td',[_c('router-link',{attrs:{\"to\":{ name: 'Article', params: { id: item.id, slug: _vm.slugify(item.title) } }}},[_vm._v(\" \"+_vm._s(item.title)+\" \")])],1),_c('td',[(item.highlightedImageUrl)?_c('img',{staticClass:\"small-product-list-img\",attrs:{\"src\":`${_vm.baseUrl}${item.highlightedImageUrl}`}}):_c('img',{staticClass:\"small-product-list-img\",attrs:{\"src\":\"assets/images/no-image.jpg\"}})]),(_vm.canViewPrices)?_c('td',[(item.disableSelling)?_c('span',[_vm._v(\"N/A\")]):_c('span',[_vm._v(_vm._s(_vm._f(\"money\")(_vm.getCurrentPrice(item))))])]):_vm._e(),_c('td',[_vm._v(_vm._s((item.salePrice > 0 && item.price > item.salePrice) ? item.saleDiscountPercentage.toFixed(2).replace('.', ',') + '%' : '-'))]),_c('td',{staticClass:\"order-actions justify-content-end\"},[(!item.disableSelling)?_c('div',{staticClass:\"product-single-qty\"},[_c('div',{staticClass:\"input-group bootstrap-touchspin\"},[_c('span',{staticClass:\"input-group-btn input-group-prepend\",on:{\"click\":function($event){return _vm.setQuantity(item, -1)}}},[_c('button',{staticClass:\"btn btn-outline btn-down-icon\",attrs:{\"type\":\"button\"}})]),_c('input',{directives:[{name:\"model\",rawName:\"v-model.number\",value:(item.quantity),expression:\"item.quantity\",modifiers:{\"number\":true}}],staticClass:\"horizontal-quantity form-control\",domProps:{\"value\":(item.quantity)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(item, \"quantity\", _vm._n($event.target.value))},\"blur\":function($event){return _vm.$forceUpdate()}}}),_c('span',{staticClass:\"input-group-btn input-group-append\",on:{\"click\":function($event){return _vm.setQuantity(item, 1)}}},[_c('button',{staticClass:\"btn btn-outline btn-up-icon\",attrs:{\"type\":\"button\"}})])])]):_vm._e(),(!item.disableSelling || _vm.canPassRestrictions)?_c('div',{staticClass:\"btn-icon btn-add-cart\",on:{\"click\":function($event){return _vm.addToCart(item)}}},[(item.hasAttributes)?_c('i',{staticClass:\"sicon-equalizer\"}):_c('i',{staticClass:\"fas fa-shopping-bag\"})]):_vm._e(),(\n (item.disableSelling || (!item.stockAmount && !_vm.allowOrderingStockZero)) &&\n !_vm.canPassRestrictions\n )?_c('div',{staticClass:\"btn-icon\",attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.showOutOfStockModal(item)}}},[_c('button',{staticClass:\"paction add-cart\"},[_vm._v(_vm._s(_vm.translations.availableOnRequest))])]):_vm._e()])])}),0)])]):_vm._e(),_c('pagination',{attrs:{\"action\":_vm.actionName,\"pagination-props\":_vm.paginationProps}})],1),_c('aside',{staticClass:\"sidebar-shop col-lg-3 col-xl-5col-1 order-lg-first\"},[_c('div',{staticClass:\"sidebar-wrapper\"},[_c('div',{staticClass:\"widget\"},[_c('h3',{staticClass:\"widget-title\"},[_c('a',{attrs:{\"data-toggle\":\"collapse\",\"href\":\"#widget-categories\",\"role\":\"button\",\"aria-expanded\":\"true\",\"aria-controls\":\"widget-categories\"}},[_vm._v(\" \"+_vm._s(_vm.translations.categories)+\" \")])]),(_vm.searchFilters && _vm.searchFilters.categories)?_c('div',{staticClass:\"collapse show\",attrs:{\"id\":\"widget-categories\"}},[_c('div',{staticClass:\"widget-body\"},_vm._l((_vm.searchFilters.categories),function(item){return _c('div',{key:item.categoryId,staticClass:\"custom-control custom-checkbox category-checkbox\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.categoryIds),expression:\"categoryIds\"}],staticClass:\"custom-control-input\",attrs:{\"type\":\"checkbox\",\"id\":`checkbox-${item.categoryId}`},domProps:{\"value\":item.categoryId,\"checked\":Array.isArray(_vm.categoryIds)?_vm._i(_vm.categoryIds,item.categoryId)>-1:(_vm.categoryIds)},on:{\"change\":function($event){var $$a=_vm.categoryIds,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=item.categoryId,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.categoryIds=$$a.concat([$$v]))}else{$$i>-1&&(_vm.categoryIds=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.categoryIds=$$c}}}}),_c('label',{staticClass:\"custom-control-label\",attrs:{\"for\":`checkbox-${item.categoryId}`}},[_vm._v(\" \"+_vm._s(item.title)+\" \")])])}),0)]):_vm._e()]),_c('div',{staticClass:\"widget\"},[_c('h3',{staticClass:\"widget-title\"},[_c('a',{attrs:{\"data-toggle\":\"collapse\",\"href\":\"#widget-on-stock\",\"role\":\"button\",\"aria-expanded\":\"true\",\"aria-controls\":\"widget-on-stock\"}},[_vm._v(\" \"+_vm._s(_vm.translations.stock)+\" \")])]),_c('div',{staticClass:\"collapse show\",attrs:{\"id\":\"widget-on-stock\"}},[_c('div',{staticClass:\"widget-body\"},[_c('div',{staticClass:\"custom-control custom-checkbox category-checkbox\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.onStock),expression:\"onStock\"}],staticClass:\"custom-control-input\",attrs:{\"type\":\"checkbox\",\"id\":'checkbox-on-stock'},domProps:{\"checked\":Array.isArray(_vm.onStock)?_vm._i(_vm.onStock,null)>-1:(_vm.onStock)},on:{\"change\":function($event){var $$a=_vm.onStock,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.onStock=$$a.concat([$$v]))}else{$$i>-1&&(_vm.onStock=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.onStock=$$c}}}}),_c('label',{staticClass:\"custom-control-label\",attrs:{\"for\":'checkbox-on-stock'}},[_vm._v(\" \"+_vm._s(_vm.translations.isInStock)+\" \")])])])])]),_c('div',{staticClass:\"widget\"},[_c('h3',{staticClass:\"widget-title\"},[_c('a',{attrs:{\"data-toggle\":\"collapse\",\"href\":\"#widget-brands\",\"role\":\"button\",\"aria-expanded\":\"true\",\"aria-controls\":\"widget-brands\"}},[_vm._v(_vm._s(_vm.translations.brands))])]),(_vm.searchFilters && _vm.searchFilters.brands)?_c('div',{staticClass:\"collapse show\",attrs:{\"id\":\"widget-brands\"}},[_c('div',{staticClass:\"widget-body\"},_vm._l((_vm.searchFilters.brands),function(item){return _c('div',{key:item.brandId,staticClass:\"custom-control custom-checkbox category-checkbox\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.brandIds),expression:\"brandIds\"}],staticClass:\"custom-control-input\",attrs:{\"type\":\"checkbox\",\"id\":`checkbox-${item.brandId}`},domProps:{\"value\":item.brandId,\"checked\":Array.isArray(_vm.brandIds)?_vm._i(_vm.brandIds,item.brandId)>-1:(_vm.brandIds)},on:{\"change\":function($event){var $$a=_vm.brandIds,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=item.brandId,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.brandIds=$$a.concat([$$v]))}else{$$i>-1&&(_vm.brandIds=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.brandIds=$$c}}}}),_c('label',{staticClass:\"custom-control-label\",attrs:{\"for\":`checkbox-${item.brandId}`}},[_vm._v(\" \"+_vm._s(item.title)+\" \")])])}),0)]):_vm._e()]),(_vm.searchFilters && _vm.searchFilters.maxPriceInThisCategory)?_c('div',{staticClass:\"widget\"},[_c('h3',{staticClass:\"widget-title\"},[_c('a',{attrs:{\"data-toggle\":\"collapse\",\"href\":\"#widget-body-3\",\"role\":\"button\",\"aria-expanded\":\"true\",\"aria-controls\":\"widget-body-3\"}},[_vm._v(\" \"+_vm._s(_vm.translations.priceRange)+\" \")])]),_c('div',{staticClass:\"collapse show\",attrs:{\"id\":\"widget-body-3\"}},[_c('div',[_c('div',{staticClass:\"filter-price-action\"},[_c('div',{staticClass:\"filter-price-text\"},[_vm._v(\" VPC: \"+_vm._s(parseFloat(_vm.searchFilters.minPriceInThisCategory).toFixed(2))+\" KM - VPC: \"+_vm._s(parseFloat(_vm.searchFilters.maxPriceInThisCategory).toFixed(2))+\" KM \")])]),_c('div',{staticClass:\"d-flex\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.priceRange[0]),expression:\"priceRange[0]\"}],ref:\"priceInput0\",staticClass:\"form-control form-control-sm price-range-min\",attrs:{\"type\":\"number\"},domProps:{\"value\":(_vm.priceRange[0])},on:{\"keyup\":_vm.handlePriceChangeOnEnter,\"blur\":_vm.roundPrice,\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.priceRange, 0, $event.target.value)}}}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.priceRange[1]),expression:\"priceRange[1]\"}],ref:\"priceInput1\",staticClass:\"form-control form-control-sm price-range-max\",attrs:{\"type\":\"number\"},domProps:{\"value\":(_vm.priceRange[1])},on:{\"keyup\":_vm.handlePriceChangeOnEnter,\"blur\":_vm.roundPrice,\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.priceRange, 1, $event.target.value)}}})]),_c('div',{staticClass:\"d-flex flex-row-reverse\"},[_c('button',{staticClass:\"btn btn-primary btn-sm\",on:{\"click\":_vm.handlePriceChange}},[_vm._v(\" \"+_vm._s(_vm.translations.apply))])])])])]):_vm._e(),(_vm.searchFilters && _vm.searchFilters.tags && _vm.searchFilters.tags.length)?_c('div',{staticClass:\"widget\"},[_c('h3',{staticClass:\"widget-title\"},[_c('a',{attrs:{\"data-toggle\":\"collapse\",\"href\":\"#widget-tags\",\"role\":\"button\",\"aria-expanded\":\"true\",\"aria-controls\":\"widget-tags\"}},[_vm._v(\" \"+_vm._s(_vm.translations.tags)+\" \")])]),_c('div',{staticClass:\"collapse show\",attrs:{\"id\":\"widget-tags\"}},[_c('div',{staticClass:\"widget-body\"},_vm._l((_vm.searchFilters.tags),function(item){return _c('div',{key:item.id,staticClass:\"custom-control custom-checkbox category-checkbox\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.tagIds),expression:\"tagIds\"}],staticClass:\"custom-control-input\",attrs:{\"type\":\"checkbox\",\"id\":`checkbox-tag-${item.id}`},domProps:{\"value\":item.id,\"checked\":Array.isArray(_vm.tagIds)?_vm._i(_vm.tagIds,item.id)>-1:(_vm.tagIds)},on:{\"change\":function($event){var $$a=_vm.tagIds,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=item.id,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.tagIds=$$a.concat([$$v]))}else{$$i>-1&&(_vm.tagIds=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.tagIds=$$c}}}}),_c('label',{staticClass:\"custom-control-label\",attrs:{\"for\":`checkbox-tag-${item.id}`}},[_vm._v(\" #\"+_vm._s(item.tagTitle)+\" \")])])}),0)])]):_vm._e()])])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!-- eslint-disable max-len -->\r\n<!-- eslint-disable vue/no-use-v-if-with-v-for -->\r\n<template>\r\n <div>\r\n <!-- Add Cart Modal -->\r\n <modal id=\"addCartModal\" v-if=\"selectedArticle\">\r\n <div slot=\"body\" class=\"modal-body add-cart-box text-center\">\r\n <p v-html=\"translations.addToCartSuccessMessage\"></p>\r\n <h4 id=\"productTitle\">\r\n {{ selectedArticle.title }}\r\n </h4>\r\n <img\r\n :src=\"`${baseUrl}${selectedArticle.highlightedImageUrl}`\"\r\n id=\"productImage\"\r\n width=\"100\"\r\n height=\"100\"\r\n alt=\"adding cart image\"\r\n v-if=\"selectedArticle.highlightedImageUrl\"\r\n />\r\n <img\r\n src=\"assets/images/no-image.jpg\"\r\n id=\"productImage\"\r\n width=\"100\"\r\n height=\"100\"\r\n alt=\"adding cart image\"\r\n v-else\r\n />\r\n <div class=\"btn-actions\">\r\n <router-link :to=\"{ name: 'ShoppingCart' }\" data-dismiss=\"modal\">\r\n <button class=\"btn-primary\">{{translations.goToShoppingCart}}</button>\r\n </router-link>\r\n <button class=\"btn-primary\" data-dismiss=\"modal\">\r\n {{translations.continueShopping}}\r\n </button>\r\n </div>\r\n </div>\r\n </modal>\r\n <modal id=\"quick-preview-article\" v-if=\"quickArticle\">\r\n <div class=\"modal-body\" slot=\"body\">\r\n <quick-preview :key=\"quickArticle.id\" />\r\n </div>\r\n </modal>\r\n <div class=\"container\">\r\n <div class=\"row\">\r\n <div class=\"col-lg-9 col-xl-5col-4\">\r\n <nav class=\"toolbox mb-4 row\">\r\n <div class=\"col-12 col-sm-6 d-flex\">\r\n <div class=\"toolbox-item toolbox-sort\">\r\n <div class=\"select-custom\">\r\n <select\r\n name=\"orderby\"\r\n class=\"form-control\"\r\n v-model=\"sortField\"\r\n @change=\"handleSortChange\"\r\n >\r\n <option :value=\"item.id\" v-for=\"item in sortFields\" :key=\"item.id\">\r\n {{ translations[item.label] }}\r\n </option>\r\n </select>\r\n </div>\r\n <!-- End .select-custom -->\r\n </div>\r\n <div class=\"toolbox-item toolbox-sort\">\r\n <div class=\"select-custom\">\r\n <select\r\n class=\"form-control\"\r\n name=\"results-per-page\"\r\n v-model=\"searchConfig.pageSize\"\r\n @change=\"changePageSize(searchConfig.pageSize)\"\r\n >\r\n <option :value=\"page\" v-for=\"page in pageSizeList\" :key=\"page\">\r\n {{ page }}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n <!-- End .toolbox-item -->\r\n </div>\r\n <!-- End .toolbox-left -->\r\n <div\r\n :class=\"\r\n [\r\n 'col-12 col-sm-6',\r\n 'justify-content-between justify-content-md-end',\r\n 'align-items-center',\r\n 'd-flex',\r\n ].join(' ')\r\n \"\r\n >\r\n <label class=\"d-flex d-sm-none d-md-flex\">{{ paginationResultsTitle }}</label>\r\n <div class=\"layout-modes d-none d-md-flex justify-content-end\">\r\n <div\r\n class=\"layout-btn btn-grid\"\r\n title=\"Grid\"\r\n :class=\"{ active: layout === 'grid' }\"\r\n @click=\"layout = 'grid'\"\r\n >\r\n <i class=\"fa fa-th\"></i>\r\n </div>\r\n <div\r\n class=\"layout-btn btn-list\"\r\n title=\"List\"\r\n :class=\"{ active: layout === 'list' }\"\r\n @click=\"layout = 'list'\"\r\n >\r\n <i class=\"fa fa-th-list\"></i>\r\n </div>\r\n <div\r\n class=\"layout-btn btn-bars\"\r\n title=\"Bars\"\r\n :class=\"{ active: layout === 'bars' }\"\r\n @click=\"layout = 'bars'\"\r\n >\r\n <i class=\"fas fa-bars\"></i>\r\n </div>\r\n </div>\r\n <!-- End .layout-modes -->\r\n </div>\r\n <!-- End .toolbox-item -->\r\n </nav>\r\n <div class=\"row row-sm\" v-if=\"articles && articles.length > 0 && layout === 'grid'\">\r\n <div\r\n class=\"col-6 col-md-4 col-lg-3 mb-2\"\r\n v-for=\"item in articles\"\r\n :key=\"item.articleId\"\r\n >\r\n <div class=\"product-default inner-quickview inner-icon bg-white h-100 mb-0\">\r\n <figure>\r\n <router-link\r\n :to=\"{\r\n name: 'Article',\r\n params: { id: item.id, slug: slugify(item.title) }\r\n }\"\r\n >\r\n <Photo :src=\"`${baseUrl}${item.highlightedImageUrl}`\"\r\n v-if=\"item.highlightedImageUrl\" />\r\n <Photo src=\"assets/images/no-image.jpg\" v-else />\r\n </router-link>\r\n <div\r\n v-if=\"profile.discountDataVisible && getCurrentDiscount(item) > 0.1\"\r\n class=\"label-group\"\r\n >\r\n <span class=\"product-label label-cut\">\r\n {{ getCurrentDiscount(item) | percentage }}% {{ translations.sale }}\r\n </span>\r\n </div>\r\n <div v-if=\"!item.disableSelling || canPassRestrictions\" class=\"btn-icon-group\">\r\n <button class=\"btn-icon btn-add-cart\" @click=\"addToCart(item)\">\r\n <i class=\"sicon-equalizer\" v-if=\"item.hasAttributes\" />\r\n <i class=\"icon-bag\" v-else />\r\n </button>\r\n </div>\r\n <button\r\n class=\"btn btn-sm btn-quickview\"\r\n data-toggle=\"modal\"\r\n @click=\"getQuickArticle(item.id)\"\r\n >\r\n {{ translations.quickPreview }}\r\n </button>\r\n </figure>\r\n <div class=\"product-details\">\r\n <div class=\"category-wrap\">\r\n <div class=\"category-list\">\r\n <router-link\r\n v-if=\"item.brandId\"\r\n class=\"product-category\"\r\n :to=\"{ name: 'Brand',\r\n params: { id: item.brandId, title: item.brand.replace(/\\s+/g, '-') } }\"\r\n >\r\n {{ item.brand }}\r\n </router-link>\r\n <span v-else class=\"product-category\">\r\n {{ item.brand }}\r\n </span>\r\n </div>\r\n <a\r\n href=\"#\"\r\n @click.stop.prevent=\"toggleWishlistItem(item.articleId)\"\r\n class=\"btn-icon-wish\"\r\n :class=\"{ active: item.isOnWishlist }\"\r\n >\r\n <i class=\"icon-heart\" :class=\"{ 'icon-heart-1': item.isOnWishList }\"></i>\r\n </a>\r\n </div>\r\n <h2 class=\"product-title\">\r\n <router-link\r\n :to=\"{\r\n name: 'Article',\r\n params: { id: item.id, slug: slugify(item.title) }\r\n }\"\r\n >\r\n {{ item.title }}\r\n </router-link>\r\n <div\r\n v-if=\"\r\n item.oldPrice &&\r\n item.oldPrice !== item.price &&\r\n (!item.salePrice || (item.salePrice || 0) === 0)\r\n \"\r\n class=\"label-group\"\r\n >\r\n <span class=\"product-label label-cut\">\r\n {{ (100 * (1 - item.price / item.oldPrice)) | percentage }}%\r\n </span>\r\n </div>\r\n <div v-if=\"item.salePrice || (item.salePrice || 0) > 0\" class=\"label-group\">\r\n <span class=\"product-label label-cut\">\r\n {{ item.saleDiscountPercentage | percentage }}% {{ translations.sale }}\r\n </span>\r\n </div>\r\n </h2>\r\n <div class=\"ratings-container\">\r\n {{ translations.forms.labels.code }}: {{ item.code }}\r\n <!-- End .product-ratings -->\r\n </div>\r\n <!-- End .product-container -->\r\n <div class=\"price-box\" v-if=\"canViewPrices && !item.disableSelling\">\r\n <span class=\"product-price\">{{\r\n getCurrentPrice(item) | money\r\n }}</span>\r\n <span class=\"old-price\" v-if=\"getOldPrice(item) > 0\">\r\n {{ getOldPrice(item) | money2 }} KM\r\n </span>\r\n </div>\r\n <!-- End .price-box -->\r\n <button\r\n v-if=\"\r\n (item.disableSelling || (!item.stockAmount && !allowOrderingStockZero)) &&\r\n !canPassRestrictions\r\n \"\r\n class=\"btn btn-primary btn-sm py-2 px-0 text-center btn-block\"\r\n @click=\"showOutOfStockModal(item)\"\r\n >\r\n {{ translations.availableOnRequest }}\r\n </button>\r\n </div>\r\n <!-- End .product-details -->\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row row-sm\" v-if=\"articles && articles.length === 0\">\r\n <div class=\"col-12\">\r\n <div class=\"alert alert-info\">\r\n {{ translations.noResultsAccordingToTheGivenParameters }}.\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row row-sm\" v-if=\"layout === 'list' && articles && articles.length > 0\">\r\n <div\r\n class=\"col-6 col-sm-12 product-default left-details product-list\"\r\n v-for=\"item in articles\"\r\n :key=\"item.id\"\r\n >\r\n <figure>\r\n <router-link\r\n :to=\"{\r\n name: 'Article',\r\n params: { id: item.id, slug: slugify(item.title) }\r\n }\"\r\n >\r\n <img\r\n :src=\"`${baseUrl}${item.highlightedImageUrl}`\"\r\n v-if=\"item.highlightedImageUrl\"\r\n />\r\n <img src=\"assets/images/no-image.jpg\" v-else />\r\n <div class=\"label-group\" style=\"position: absolute; top: 5px; left: 5px\">\r\n <span\r\n v-if=\"\r\n item.oldPrice &&\r\n item.oldPrice !== item.price &&\r\n (!item.salePrice || (item.salePrice || 0) === 0)\r\n \"\r\n class=\"product-label label-cut\"\r\n >{{ (100 * (1 - item.price / item.oldPrice)) | percentage }}%</span\r\n >\r\n <span\r\n v-if=\"item.salePrice || (item.salePrice || 0) > 0\"\r\n class=\"product-label label-cut\"\r\n >{{ item.saleDiscountPercentage | percentage }}% {{ translations.sale }}</span\r\n >\r\n </div>\r\n </router-link>\r\n <div\r\n class=\"label-group\"\r\n v-if=\"getCurrentDiscount(item) > 0.1\"\r\n style=\"position: absolute; top: 5px; left: 5px\"\r\n >\r\n <span class=\"product-label label-cut\">\r\n {{ getCurrentDiscount(item) | percentage }}% {{ translations.sale }}\r\n </span>\r\n </div>\r\n </figure>\r\n <div class=\"product-details product-details-list\">\r\n <div class=\"category-list\">\r\n <a class=\"product-category\">{{ item.brand }}</a>\r\n </div>\r\n <h2 class=\"product-title\">\r\n <router-link\r\n :to=\"{\r\n name: 'Article',\r\n params: { id: item.id, slug: slugify(item.title) }\r\n }\"\r\n >\r\n {{ item.title }}\r\n </router-link>\r\n </h2>\r\n <div class=\"ratings-container\">\r\n {{ translations.forms.labels.code }}: {{ item.code }}\r\n <!-- End .product-ratings -->\r\n </div>\r\n <!-- End .product-container -->\r\n <p class=\"product-description\" v-html=\"item.shortDescription\">\r\n </p>\r\n <div class=\"price-box\" v-if=\"canViewPrices && !item.disableSelling\">\r\n <span class=\"product-price\">{{ getCurrentPrice(item) | money }}</span>\r\n <span class=\"old-price\" v-if=\"getOldPrice(item)\">\r\n {{ getOldPrice(item) | money2 }} KM\r\n </span>\r\n </div>\r\n <!-- End .price-box -->\r\n <div class=\"product-action\">\r\n <div class=\"product-single-qty product-list-quantity\" v-if=\"!item.disableSelling\">\r\n <div class=\"input-group\">\r\n <span\r\n class=\"input-group-btn input-group-prepend\"\r\n @click=\"setQuantity(item, -1)\"\r\n >\r\n <button class=\"btn btn-outline btn-down-icon\" type=\"button\" />\r\n </span>\r\n <input\r\n class=\"horizontal-quantity form-control\"\r\n v-model.number=\"item.quantity\"\r\n />\r\n <span\r\n class=\"input-group-btn input-group-append\"\r\n @click=\"setQuantity(item, 1)\"\r\n >\r\n <button class=\"btn btn-outline btn-up-icon\" type=\"button\" />\r\n </span>\r\n </div>\r\n </div>\r\n <button\r\n v-if=\"!item.disableSelling || canPassRestrictions\"\r\n class=\"btn-icon btn-add-cart\"\r\n @click=\"addToCart(item)\"\r\n >\r\n <i class=\"sicon-equalizer\" v-if=\"item.hasAttributes\" />\r\n <i class=\"icon-bag\" v-else />\r\n {{ item.hasAttributes ? translations.chooseOptions : translations.addToCart }}\r\n </button>\r\n <button\r\n v-if=\"\r\n (item.disableSelling || (!item.stockAmount && !allowOrderingStockZero)) &&\r\n !canPassRestrictions\r\n \"\r\n class=\"btn-icon btn-add-cart\"\r\n @click=\"showOutOfStockModal(item)\"\r\n >\r\n {{ translations.availableOnRequest }}\r\n </button>\r\n <a\r\n href=\"#\"\r\n @click.stop.prevent=\"toggleWishlistItem(item.id)\"\r\n class=\"btn-icon-wish\"\r\n >\r\n <i class=\"icon-heart\"></i>\r\n </a>\r\n <button class=\"btn-quickview\" @click=\"getQuickArticle(item.id)\">\r\n <i class=\"fas fa-external-link-alt\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <!-- End .product-details -->\r\n </div>\r\n </div>\r\n\r\n <div\r\n class=\"table-product-list\"\r\n v-if=\"layout === 'bars' && articles && articles.length > 0\"\r\n >\r\n <table class=\"table text-left\">\r\n <thead>\r\n <tr>\r\n <th>{{ translations.manufacturer }}</th>\r\n <th>{{ translations.forms.labels.code }}</th>\r\n <th>{{ translations.productName }}</th>\r\n <th>{{ translations.preview }}</th>\r\n <th v-if=\"canViewPrices\">VP Cijena</th>\r\n <th>{{ translations.discount }}</th>\r\n <th></th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr v-for=\"item in articles\" :key=\"item.id\">\r\n <td>\r\n {{ item.brand }}\r\n </td>\r\n <td>\r\n {{ item.code }}\r\n </td>\r\n <td>\r\n <router-link\r\n :to=\"{ name: 'Article', params: { id: item.id, slug: slugify(item.title) } }\"\r\n >\r\n {{ item.title }}\r\n </router-link>\r\n </td>\r\n <td>\r\n <img\r\n class=\"small-product-list-img\"\r\n :src=\"`${baseUrl}${item.highlightedImageUrl}`\"\r\n v-if=\"item.highlightedImageUrl\"\r\n />\r\n <img class=\"small-product-list-img\" src=\"assets/images/no-image.jpg\" v-else />\r\n </td>\r\n <td v-if=\"canViewPrices\">\r\n <span v-if=\"item.disableSelling\">N/A</span>\r\n <span v-else>{{ getCurrentPrice(item) | money }}</span>\r\n </td>\r\n <td>{{ (item.salePrice > 0 && item.price > item.salePrice) ? item.saleDiscountPercentage.toFixed(2).replace('.', ',') + '%' : '-' }}</td>\r\n <td class=\"order-actions justify-content-end\">\r\n <div class=\"product-single-qty\" v-if=\"!item.disableSelling\">\r\n <div class=\"input-group bootstrap-touchspin\">\r\n <span\r\n class=\"input-group-btn input-group-prepend\"\r\n @click=\"setQuantity(item, -1)\"\r\n >\r\n <button class=\"btn btn-outline btn-down-icon\" type=\"button\" />\r\n </span>\r\n <input\r\n class=\"horizontal-quantity form-control\"\r\n v-model.number=\"item.quantity\"\r\n />\r\n <span\r\n class=\"input-group-btn input-group-append\"\r\n @click=\"setQuantity(item, 1)\"\r\n >\r\n <button class=\"btn btn-outline btn-up-icon\" type=\"button\" />\r\n </span>\r\n </div>\r\n </div>\r\n <div\r\n v-if=\"!item.disableSelling || canPassRestrictions\"\r\n class=\"btn-icon btn-add-cart\"\r\n @click=\"addToCart(item)\"\r\n >\r\n <i class=\"sicon-equalizer\" v-if=\"item.hasAttributes\" />\r\n <i class=\"fas fa-shopping-bag\" v-else />\r\n </div>\r\n <div\r\n v-if=\"\r\n (item.disableSelling || (!item.stockAmount && !allowOrderingStockZero)) &&\r\n !canPassRestrictions\r\n \"\r\n class=\"btn-icon\"\r\n role=\"button\"\r\n @click=\"showOutOfStockModal(item)\"\r\n >\r\n <button class=\"paction add-cart\">{{ translations.availableOnRequest }}</button>\r\n </div>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n <pagination :action=\"actionName\" :pagination-props=\"paginationProps\" />\r\n </div>\r\n <!-- End .col-lg-9 -->\r\n <aside class=\"sidebar-shop col-lg-3 col-xl-5col-1 order-lg-first\">\r\n <div class=\"sidebar-wrapper\">\r\n <div class=\"widget\">\r\n <h3 class=\"widget-title\">\r\n <a\r\n data-toggle=\"collapse\"\r\n href=\"#widget-categories\"\r\n role=\"button\"\r\n aria-expanded=\"true\"\r\n aria-controls=\"widget-categories\"\r\n >\r\n {{ translations.categories }}\r\n </a>\r\n </h3>\r\n <div\r\n class=\"collapse show\"\r\n id=\"widget-categories\"\r\n v-if=\"searchFilters && searchFilters.categories\"\r\n >\r\n <div class=\"widget-body\">\r\n <div\r\n class=\"custom-control custom-checkbox category-checkbox\"\r\n v-for=\"item in searchFilters.categories\"\r\n :key=\"item.categoryId\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n class=\"custom-control-input\"\r\n :value=\"item.categoryId\"\r\n v-model=\"categoryIds\"\r\n :id=\"`checkbox-${item.categoryId}`\"\r\n />\r\n <label class=\"custom-control-label\" :for=\"`checkbox-${item.categoryId}`\">\r\n {{ item.title }}\r\n </label>\r\n </div>\r\n </div>\r\n <!-- End .widget-body -->\r\n </div>\r\n <!-- End .collapse -->\r\n </div>\r\n\r\n <div class=\"widget\">\r\n <h3 class=\"widget-title\">\r\n <a\r\n data-toggle=\"collapse\"\r\n href=\"#widget-on-stock\"\r\n role=\"button\"\r\n aria-expanded=\"true\"\r\n aria-controls=\"widget-on-stock\"\r\n >\r\n {{ translations.stock }}\r\n </a>\r\n </h3>\r\n <div class=\"collapse show\" id=\"widget-on-stock\">\r\n <div class=\"widget-body\">\r\n <div\r\n class=\"custom-control custom-checkbox category-checkbox\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n class=\"custom-control-input\"\r\n v-model=\"onStock\"\r\n :id=\"'checkbox-on-stock'\"\r\n />\r\n <label class=\"custom-control-label\" :for=\"'checkbox-on-stock'\">\r\n {{ translations.isInStock }}\r\n </label>\r\n </div>\r\n </div>\r\n <!-- End .widget-body -->\r\n </div>\r\n <!-- End .collapse -->\r\n </div>\r\n\r\n <div class=\"widget\">\r\n <h3 class=\"widget-title\">\r\n <a\r\n data-toggle=\"collapse\"\r\n href=\"#widget-brands\"\r\n role=\"button\"\r\n aria-expanded=\"true\"\r\n aria-controls=\"widget-brands\"\r\n >{{ translations.brands }}</a\r\n >\r\n </h3>\r\n <div\r\n class=\"collapse show\"\r\n id=\"widget-brands\"\r\n v-if=\"searchFilters && searchFilters.brands\"\r\n >\r\n <div class=\"widget-body\">\r\n <div\r\n class=\"custom-control custom-checkbox category-checkbox\"\r\n v-for=\"item in searchFilters.brands\"\r\n :key=\"item.brandId\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n class=\"custom-control-input\"\r\n :value=\"item.brandId\"\r\n v-model=\"brandIds\"\r\n :id=\"`checkbox-${item.brandId}`\"\r\n />\r\n <label class=\"custom-control-label\" :for=\"`checkbox-${item.brandId}`\">\r\n {{ item.title }}\r\n </label>\r\n </div>\r\n </div>\r\n <!-- End .widget-body -->\r\n </div>\r\n <!-- End .collapse -->\r\n </div>\r\n <!-- End .widget -->\r\n <div class=\"widget\" v-if=\"searchFilters && searchFilters.maxPriceInThisCategory\">\r\n <h3 class=\"widget-title\">\r\n <a\r\n data-toggle=\"collapse\"\r\n href=\"#widget-body-3\"\r\n role=\"button\"\r\n aria-expanded=\"true\"\r\n aria-controls=\"widget-body-3\"\r\n >\r\n {{ translations.priceRange }}\r\n </a>\r\n </h3>\r\n <div class=\"collapse show\" id=\"widget-body-3\">\r\n <div>\r\n <div class=\"filter-price-action\">\r\n <div class=\"filter-price-text\">\r\n VPC: {{ parseFloat(searchFilters.minPriceInThisCategory).toFixed(2) }} KM - VPC:\r\n {{ parseFloat(searchFilters.maxPriceInThisCategory).toFixed(2) }} KM\r\n </div>\r\n <!-- End .filter-price-text -->\r\n </div>\r\n <div class=\"d-flex\">\r\n <input\r\n ref=\"priceInput0\"\r\n type=\"number\"\r\n class=\"form-control form-control-sm price-range-min\"\r\n v-model=\"priceRange[0]\"\r\n @keyup=\"handlePriceChangeOnEnter\"\r\n @blur=\"roundPrice\"\r\n />\r\n <input\r\n ref=\"priceInput1\"\r\n type=\"number\"\r\n class=\"form-control form-control-sm price-range-max\"\r\n v-model=\"priceRange[1]\"\r\n @keyup=\"handlePriceChangeOnEnter\"\r\n @blur=\"roundPrice\"\r\n />\r\n </div>\r\n <div class=\"d-flex flex-row-reverse\">\r\n <button class=\"btn btn-primary btn-sm\" @click=\"handlePriceChange\">\r\n {{ translations.apply }}</button>\r\n </div>\r\n </div>\r\n <!-- End .widget-body -->\r\n </div>\r\n <!-- End .collapse -->\r\n </div>\r\n <!-- End .widget -->\r\n <div\r\n class=\"widget\"\r\n v-if=\"searchFilters && searchFilters.tags && searchFilters.tags.length\"\r\n >\r\n <h3 class=\"widget-title\">\r\n <a\r\n data-toggle=\"collapse\"\r\n href=\"#widget-tags\"\r\n role=\"button\"\r\n aria-expanded=\"true\"\r\n aria-controls=\"widget-tags\"\r\n >\r\n {{ translations.tags }}\r\n </a>\r\n </h3>\r\n <div class=\"collapse show\" id=\"widget-tags\">\r\n <div class=\"widget-body\">\r\n <div\r\n class=\"custom-control custom-checkbox category-checkbox\"\r\n v-for=\"item in searchFilters.tags\"\r\n :key=\"item.id\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n class=\"custom-control-input\"\r\n :value=\"item.id\"\r\n v-model=\"tagIds\"\r\n :id=\"`checkbox-tag-${item.id}`\"\r\n />\r\n <label class=\"custom-control-label\" :for=\"`checkbox-tag-${item.id}`\">\r\n #{{ item.tagTitle }}\r\n </label>\r\n </div>\r\n </div>\r\n <!-- End .widget-body -->\r\n </div>\r\n <!-- End .collapse -->\r\n </div>\r\n\r\n <!-- End .widget -->\r\n </div>\r\n <!-- End .sidebar-wrapper -->\r\n </aside>\r\n <!-- End .col-lg-3 -->\r\n </div>\r\n <!-- End .row -->\r\n </div>\r\n <!-- End .container -->\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport 'vue-range-component/dist/vue-range-slider.css';\r\n\r\nimport config from '@/config';\r\nimport api from '@/services/api';\r\nimport slugify from '@/filters/slugify';\r\n\r\nimport Photo from '@/components/shared/Image.vue';\r\nimport Modal from '@/components/shared/modal/Modal.vue';\r\nimport QuickPreview from '@/components/shared/article/QuickPreview.vue';\r\n\r\nimport { translations, pager } from '@/mixins';\r\nimport Pagination from '../components/shared/Pagination.vue';\r\n\r\nexport default {\r\n name: 'Search',\r\n mixins: [translations, pager],\r\n components: {\r\n QuickPreview,\r\n Pagination,\r\n Photo,\r\n Modal,\r\n },\r\n data() {\r\n return {\r\n actionName: 'getQuickSearchArticles',\r\n layout: 'grid', // Can be list or grid\r\n layouts: ['grid', 'list'],\r\n priceRange: [],\r\n categoryIds: [],\r\n brandIds: [],\r\n attributeValuesIds: [],\r\n tagIds: [],\r\n selectedArticle: null,\r\n sortField: 1,\r\n onStock: false,\r\n };\r\n },\r\n computed: {\r\n canPassRestrictions() {\r\n return this.profile?.userData?.articleAlwaysVisibleOnWeb;\r\n },\r\n paginationProps() {\r\n return {\r\n quickSearch: this.$route.params.search.trim(),\r\n attributeValuesIds: [],\r\n categoryIds: this.categoryIds,\r\n brandIds: this.brandIds,\r\n pageSize: this.searchConfig.pageSize,\r\n tagIds: this.tagIds,\r\n minPrice: parseFloat(this.priceRange[0], 10),\r\n maxPrice: parseFloat(this.priceRange[1], 10),\r\n onStock: this.onStock === false ? null : true,\r\n };\r\n },\r\n articles() {\r\n return (this.$store.getters.getSearchViewArticles || {}).articles || [];\r\n },\r\n baseUrl() {\r\n return config.baseUrl;\r\n },\r\n searchFilters() {\r\n return this.$store.getters.getSearchFilters;\r\n },\r\n category() {\r\n return this.$store.getters.getCategoryById(this.$route.params.id);\r\n },\r\n prices() {\r\n return [\r\n this.searchFilters?.minPriceInThisCategory.toFixed(2),\r\n this.searchFilters?.maxPriceInThisCategory.toFixed(2),\r\n ];\r\n },\r\n quickArticle() {\r\n return this.$store.getters.getQuickArticle;\r\n },\r\n allowOrderingStockZero() {\r\n return this.$store.getters.getAllowOrderingStockZero;\r\n },\r\n tags() {\r\n return this.$store.getters.getMostPopularTags;\r\n },\r\n profile() {\r\n return this.$store.getters.getProfile;\r\n },\r\n canViewPrices() {\r\n return this.profile.userData.canViewPrices;\r\n },\r\n },\r\n methods: {\r\n slugify,\r\n getCurrentPrice(item) {\r\n const salePrice = item.salePrice || 0;\r\n const price = item.price || 0;\r\n\r\n if (salePrice > 0 && salePrice < price) {\r\n return salePrice;\r\n }\r\n return price;\r\n },\r\n getCurrentDiscount(item) {\r\n const salePrice = item.salePrice || 0;\r\n const price = item.price || 0;\r\n const matchedPP = item.matchedPP || false;\r\n if (salePrice > 0 && salePrice < price) {\r\n return item.saleDiscountPercentage;\r\n }\r\n if (matchedPP) {\r\n return (100 * (1 - item.price / item.baseArticlePrice)) || 0;\r\n }\r\n return 0;\r\n },\r\n handlePriceChangeOnEnter(event) {\r\n if (event.key === 'Enter') {\r\n if (parseFloat(this.priceRange[0], 10) > parseFloat(this.priceRange[1], 10)) {\r\n this.priceRange[0] = this.searchFilters.minPriceInThisCategory;\r\n }\r\n this.$refs.priceInput0.blur();\r\n this.$refs.priceInput1.blur();\r\n this.paginationProps.minPrice = parseFloat(this.priceRange[0], 10);\r\n this.paginationProps.maxPrice = parseFloat(this.priceRange[1], 10);\r\n this.getArticles();\r\n }\r\n },\r\n roundPrice() {\r\n this.priceRange[0] = parseFloat(this.priceRange[0]).toFixed(2);\r\n this.priceRange[1] = parseFloat(this.priceRange[1]).toFixed(2);\r\n },\r\n getOldPrice(item) {\r\n const salePrice = item.salePrice || 0;\r\n const price = item.price || 0;\r\n const matchedPP = item.matchedPP || false;\r\n\r\n if (salePrice > 0 && salePrice < price) {\r\n return (item.baseArticlePrice === 0 || item.baseArticlePrice === null)\r\n ? item.price : item.baseArticlePrice;\r\n }\r\n if (matchedPP) {\r\n return item.baseArticlePrice;\r\n }\r\n return 0;\r\n },\r\n showOutOfStockModal(item) {\r\n this.$store.dispatch('showOutOfStockModal', { articleId: item.id });\r\n },\r\n setQuantity(item, num) {\r\n if (item.quantity === 1 && num === -1) return;\r\n // eslint-disable-next-line no-param-reassign\r\n item.quantity += num;\r\n },\r\n getArticles() {\r\n this.$store.dispatch('getQuickSearchArticles', this.paginationProps);\r\n },\r\n getFilters() {\r\n const quickSearch = this.$route.params.search;\r\n this.$store.dispatch('getQuickSearchFilters', {\r\n sortBy: 'title',\r\n isSortAscending: false,\r\n quickSearch,\r\n attributeValuesIds: [],\r\n categoryIds: [],\r\n brandIds: [],\r\n tagIds: [],\r\n });\r\n },\r\n handlePriceChange() {\r\n if (parseFloat(this.priceRange[0], 10) > parseFloat(this.priceRange[1], 10)) {\r\n this.priceRange[0] = this.searchFilters.minPriceInThisCategory;\r\n }\r\n this.paginationProps.minPrice = parseFloat(this.priceRange[0], 10);\r\n this.paginationProps.maxPrice = parseFloat(this.priceRange[1], 10);\r\n this.getArticles();\r\n },\r\n toggleWishlistItem(articleId) {\r\n api.toggleWishlistItem(articleId).then((response) => {\r\n this.$toast.info(response.data.info);\r\n this.getArticles();\r\n this.$store.dispatch('getWishList');\r\n });\r\n },\r\n addToCart(item) {\r\n if (item.hasAttributes || (!item.stockAmount && !this.allowOrderingStockZero)) {\r\n this.$router.push({ name: 'Article', params: { id: item.id, slug: slugify(item.title) } });\r\n return;\r\n }\r\n this.selectedArticle = item;\r\n api\r\n .addToShoppingCart({\r\n articleId: item.id,\r\n quantity: item.quantity || 1,\r\n })\r\n .then(() => {\r\n if (this.layout !== 'bars') {\r\n $('#addCartModal').modal('show');\r\n } else {\r\n this.$toast.info(this.translations.itemAddedToCart);\r\n }\r\n this.$store.dispatch('getShoppingCart');\r\n })\r\n .catch((err) => {\r\n this.$toast.error(err.response.data.info);\r\n this.$store.dispatch('getShoppingCart');\r\n $('#addCartModal').modal('hide');\r\n });\r\n },\r\n getQuickArticle(articleId) {\r\n this.$store.dispatch('getQuickViewArticle', articleId).then(() => {\r\n $('#quick-preview-article').modal('show');\r\n });\r\n },\r\n handleSortChange() {\r\n const field = this.sortFields.find((i) => i.id === this.sortField);\r\n this.handleSort(field);\r\n },\r\n handleScroll() {\r\n localStorage.setItem('searchScrollPosition', window.scrollY);\r\n },\r\n },\r\n mounted() {\r\n window.addEventListener('scroll', this.handleScroll);\r\n const scrollPosition = localStorage.getItem('searchScrollPosition');\r\n if (scrollPosition) {\r\n window.scrollTo({ top: parseInt(scrollPosition, 10), behavior: 'smooth' });\r\n }\r\n this.getArticles();\r\n this.getFilters();\r\n this.roundPrice();\r\n },\r\n destroyed() {\r\n window.removeEventListener('scroll', this.handleScroll);\r\n },\r\n watch: {\r\n brandIds() {\r\n this.getArticles();\r\n },\r\n // attributeValuesIds() {\r\n // this.getArticles();\r\n // },\r\n categoryIds() {\r\n this.getArticles();\r\n },\r\n prices() {\r\n this.priceRange = this.prices;\r\n },\r\n tagIds() {\r\n this.getArticles();\r\n },\r\n onStock() {\r\n this.paginationProps.onStock = this.onStock === false ? null : true;\r\n this.getArticles();\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.product-default .product-title {\r\n display: block;\r\n width: 100%;\r\n}\r\n\r\n.product-list .product-details {\r\n width: calc(100% - 270px);\r\n}\r\n\r\n.category-checkbox {\r\n margin-top: 0;\r\n margin-bottom: 1rem;\r\n}\r\n\r\n.custom-color-label {\r\n width: 20px;\r\n height: 20px;\r\n background: black;\r\n}\r\n\r\n.custom-color-label {\r\n width: 6rem;\r\n height: 2rem;\r\n}\r\n\r\n.layout-btn {\r\n cursor: pointer;\r\n}\r\n\r\n.order-actions {\r\n i {\r\n color: #1e84bc;\r\n font-size: 1.7rem;\r\n margin-right: 1.5rem;\r\n }\r\n}\r\n\r\n.order-actions {\r\n display: flex;\r\n border-top: none !important;\r\n margin-top: 10px;\r\n\r\n .product-single-qty {\r\n max-width: unset;\r\n max-height: unset;\r\n }\r\n\r\n .product-single-qty .bootstrap-touchspin.input-group {\r\n max-height: 30px;\r\n }\r\n\r\n .product-single-qty .bootstrap-touchspin .form-control {\r\n max-height: 30px;\r\n }\r\n\r\n i {\r\n color: #1e84bc;\r\n font-size: 1.7rem;\r\n margin-right: 1.5rem;\r\n padding-left: 5px;\r\n }\r\n\r\n .btn-icon.btn-add-cart {\r\n display: inline-block;\r\n padding-top: 5px;\r\n line-height: 1;\r\n height: 20px;\r\n margin-left: 10px;\r\n }\r\n}\r\n\r\n.btn-add-cart {\r\n cursor: pointer;\r\n}\r\n\r\n.product-list-quantity {\r\n height: 37px;\r\n margin-bottom: 5px;\r\n margin-right: 5px;\r\n\r\n .horizontal-quantity {\r\n height: 37px;\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchView.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./SearchView.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SearchView.vue?vue&type=template&id=15dbd9f0&scoped=true\"\nimport script from \"./SearchView.vue?vue&type=script&lang=js\"\nexport * from \"./SearchView.vue?vue&type=script&lang=js\"\nimport style0 from \"./SearchView.vue?vue&type=style&index=0&id=15dbd9f0&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"15dbd9f0\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}