{"version":3,"sources":["webpack:///./src/views/WishList.vue","webpack:///src/views/WishList.vue","webpack:///./src/views/WishList.vue?e5d1","webpack:///./src/views/WishList.vue?220f","webpack:///./src/views/WishList.vue?ed1d"],"names":["render","_vm","this","_c","_self","quickArticle","attrs","staticClass","slot","key","id","_e","wishlist","length","_v","_s","translations","forms","labels","code","canViewPrices","price","_l","item","name","params","articleId","slug","slugify","title","imageUrl","baseUrl","on","$event","preventDefault","toggleWishlistItem","profile","discountDataVisible","salePrice","_f","saleDiscountPercentage","baseArticlePrice","toFixed","stopPropagation","getQuickArticle","quickPreview","addToCart","continueShopping","staticRenderFns","mixins","components","QuickPreview","Photo","Modal","computed","$store","getters","getWishlist","config","getProfile","userData","methods","api","then","response","$toast","info","data","dispatch","addToShoppingCart","quantity","catch","err","error","$","modal","mounted","window","scrollTo","top","behavior","component"],"mappings":"mHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAAEF,EAAII,aAAcF,EAAG,QAAQ,CAACG,MAAM,CAAC,GAAK,0BAA0B,CAACH,EAAG,MAAM,CAACI,YAAY,aAAaD,MAAM,CAAC,KAAO,QAAQE,KAAK,QAAQ,CAACL,EAAG,gBAAgB,CAACM,IAAIR,EAAII,aAAaK,MAAM,KAAKT,EAAIU,KAAKR,EAAG,MAAM,CAACI,YAAY,aAAa,CAAEN,EAAIW,SAASC,OAAQV,EAAG,MAAM,CAACI,YAAY,iDAAiD,CAACJ,EAAG,QAAQ,CAACI,YAAY,oBAAoB,CAACJ,EAAG,QAAQ,CAACA,EAAG,KAAK,CAACA,EAAG,KAAK,CAACI,YAAY,eAAe,CAACN,EAAIa,GAAG,cAAcX,EAAG,KAAK,CAACF,EAAIa,GAAGb,EAAIc,GAAGd,EAAIe,aAAaC,MAAMC,OAAOC,SAAUlB,EAAImB,cAAejB,EAAG,KAAK,CAACI,YAAY,aAAa,CAACN,EAAIa,GAAGb,EAA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D,MACA,KAAAX,OAAAa,SAAA,qBACAG,MAAAC,IACA,KAAAP,OAAAQ,MAAAD,EAAAR,SAAAG,KAAAD,MACA,KAAAX,OAAAa,SAAA,mBACAM,EAAA,iBAAAC,MAAA,WAGA/B,gBAAAlB,GACA,KAAA6B,OAAAa,SAAA,sBAAA1C,GAAAqC,KAAA,KACAW,EAAA,0BAAAC,MAAA,YAIAC,UACAC,OAAAC,SAAA,CAAAC,IAAA,EAAAC,SAAA,aCxN+W,I,wBCQ3WC,EAAY,eACd,EACAjF,EACAgD,GACA,EACA,KACA,WACA,MAIa,aAAAiC,E,oECnBf","file":"js/wishlist.bb91a8c5.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_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\"},[(_vm.wishlist.length)?_c('div',{staticClass:\"cart-table-container wishlist-table-container\"},[_c('table',{staticClass:\"table table-cart\"},[_c('thead',[_c('tr',[_c('th',{staticClass:\"product-col\"},[_vm._v(\"Proizvod\")]),_c('th',[_vm._v(_vm._s(_vm.translations.forms.labels.code))]),(_vm.canViewPrices)?_c('th',{staticClass:\"price-col\"},[_vm._v(_vm._s(_vm.translations.price))]):_vm._e(),_c('th',{staticClass:\"qty-col\"},[_vm._v(\"Akcije\")])])]),_c('tbody',_vm._l((_vm.wishlist),function(item){return _c('tr',{key:item.id,staticClass:\"product-row\"},[_c('td',{staticClass:\"product-col\"},[_c('figure',{staticClass:\"product-image-container\"},[_c('router-link',{staticClass:\"product-image\",attrs:{\"to\":{\n name: 'Article', params: { id: item.articleId, slug: _vm.slugify(item.title) }\n }}},[(item.imageUrl)?_c('Photo',{attrs:{\"src\":`${_vm.baseUrl}${item.imageUrl}`}}):_c('Photo',{attrs:{\"src\":\"assets/images/no-image.jpg\"}})],1),_c('a',{staticClass:\"btn-remove icon-cancel\",attrs:{\"title\":\"Ukloni proizvod\"},on:{\"click\":function($event){$event.preventDefault();return _vm.toggleWishlistItem(item.articleId)}}})],1),_c('div',{staticClass:\"title-attributes\"},[_c('h2',{staticClass:\"product-title\"},[_c('router-link',{attrs:{\"to\":{\n name: 'Article',\n params: { id: item.articleId, slug: _vm.slugify(item.title) }\n }}},[_vm._v(\" \"+_vm._s(item.title)+\" \")])],1)])]),_c('td',[_vm._v(_vm._s(item.code))]),(_vm.canViewPrices)?_c('td',[_c('div',[(_vm.profile.discountDataVisible && item.salePrice)?_c('span',{staticClass:\"text-primary price-discount\"},[_vm._v(\" (\"+_vm._s(_vm._f(\"percentage\")(item.saleDiscountPercentage))+\"%) \")]):_vm._e(),(\n // eslint-disable-next-line max-len\n _vm.profile.discountDataVisible && !item.salePrice && item.price < item.baseArticlePrice\n )?_c('span',{staticClass:\"text-primary price-discount\"},[_vm._v(\" \"+_vm._s((100 - item.price / item.baseArticlePrice * 100).toFixed(2))+\" \")]):_vm._e(),(item.salePrice)?_c('span',{staticClass:\"product-price\"},[_vm._v(\" \"+_vm._s(_vm._f(\"money\")(item.salePrice))+\" \")]):_vm._e(),(!item.salePrice)?_c('span',{staticClass:\"product-price\"},[_vm._v(\" \"+_vm._s(_vm._f(\"money\")(item.price))+\" \")]):_vm._e(),(item.salePrice && item.salePrice < item.price)?_c('span',{staticClass:\"old-price\"},[_c('del',[_vm._v(\" \"+_vm._s(_vm._f(\"money2\")(item.price))+\" KM\")])]):_vm._e(),(!item.salePrice && item.price < item.baseArticlePrice)?_c('span',{staticClass:\"old-price\"},[_c('del',[_vm._v(\" \"+_vm._s(_vm._f(\"money2\")(item.baseArticlePrice))+\" KM\")])]):_vm._e()])]):_vm._e(),_c('td',{staticClass:\"action\"},[_c('button',{staticClass:\"btn btn-quickview mt-1 mt-md-0\",on:{\"click\":function($event){$event.stopPropagation();return _vm.getQuickArticle(item.articleId)}}},[_vm._v(\" \"+_vm._s(_vm.translations.quickPreview)+\" \")]),_c('button',{staticClass:\"btn btn-primary btn-add-cart product-type-simple btn-shop\",on:{\"click\":function($event){return _vm.addToCart(item.articleId)}}},[_vm._v(\" \"+_vm._s(_vm.translations.addToCart)+\" \")])])])}),0),_c('tfoot',[_c('tr',[_c('td',{staticClass:\"clearfix\",attrs:{\"colspan\":\"4\"}},[_c('div',{staticClass:\"float-left\"},[_c('router-link',{staticClass:\"btn btn-outline-secondary\",attrs:{\"exact\":\"\",\"to\":{ name: 'Home' }}},[_vm._v(\" \"+_vm._s(_vm.translations.continueShopping)+\" \")])],1)])])])])]):_c('div',{staticClass:\"cart-table wishlist-table-container\"},[_c('div',{staticClass:\"alert alert-info\"},[_vm._v(\" Vaša lista želja je prazna \")])])])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\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!./WishList.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!./WishList.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./WishList.vue?vue&type=template&id=701ddeca&scoped=true\"\nimport script from \"./WishList.vue?vue&type=script&lang=js\"\nexport * from \"./WishList.vue?vue&type=script&lang=js\"\nimport style0 from \"./WishList.vue?vue&type=style&index=0&id=701ddeca&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 \"701ddeca\",\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!./WishList.vue?vue&type=style&index=0&id=701ddeca&prod&lang=scss&scoped=true\""],"sourceRoot":""}