diff --git a/public/productslist.bundle.js b/public/productslist.bundle.js index d0abdbc4..4f55a77f 100644 --- a/public/productslist.bundle.js +++ b/public/productslist.bundle.js @@ -52,7 +52,7 @@ window.productslist=function(t){function e(e){for(var n,a,s=e[0],u=e[1],c=e[2],d * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 - */e.a={addToCart:{Accept:"application/json, text/javascript"},products:{"Content-Type":"application/json",Accept:"application/json, text/javascript, */*; q=0.01"}}},24:function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,c=[],l=!1,d=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var t=s(p);l=!0;for(var e=c.length;e;){for(u=c,c=[];++d1)for(var r=1;r>>((3&e)<<3)&255;return i}}},28:function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,i=r;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},29:function(t,e,r){t.exports=r(53).Observable},30:function(t,e,r){"use strict";function n(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}r.d(e,"a",(function(){return n}))},33:function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var i=(a=n,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),o=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(o).concat([i]).join("\n")}var a,s,u;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(n)for(var o=0;or.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(i=0;i=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;I(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},384:function(t,e,r){"use strict";r.r(e);r(32);var n=r(9),i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"wishlist-products-container"},[r("div",{staticClass:"wishlist-products-container-header"},[r("h1",[t._v("\n "+t._s(t.title)+"\n\n "),t.products.datas&&t.products.datas.products?r("span",{staticClass:"wishlist-products-count"},[t._v("\n ("+t._s(t.products.datas.pagination.total_items)+")\n ")]):t._e()]),t._v(" "),t.products.datas?r("div",{staticClass:"sort-by-row"},[r("span",{staticClass:"hidden-sm-down col-sm-3 col-md-3 sort-by"},[t._v(t._s(t.filter))]),t._v(" "),r("div",{staticClass:"col-xs-12 col-sm-9 col-md-9 products-sort-order dropdown"},[r("button",{staticClass:"btn-unstyle select-title",attrs:{rel:"nofollow","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v("\n "+t._s(t.currentSort)+"\n "),r("i",{staticClass:"material-icons float-xs-right"},[t._v("arrow_drop_down")])]),t._v(" "),r("div",{staticClass:"dropdown-menu"},t._l(t.productList,(function(e,n){return r("a",{key:n,staticClass:"select-list",attrs:{rel:"nofollow"},on:{click:function(r){return t.changeSelectedSort(e)}}},[t._v("\n "+t._s(e.label)+"\n ")])})),0)])]):t._e()]),t._v(" "),r("section",{staticClass:"page-content card card-block",attrs:{id:"content"}},[t.products.datas&&t.products.datas.products.length>0?r("ul",{staticClass:"wishlist-products-list"},t._l(t.products.datas.products,(function(e,n){return r("li",{key:n,staticClass:"wishlist-products-item"},[r("Product",{attrs:{product:e,"add-to-cart":t.addToCart,"customize-text":t.customizeText,"quantity-text":t.quantityText,"list-name":t.title,"list-id":t.listId?t.listId:parseInt(t.currentWishlist.id_wishlist,10),"is-share":t.share}})],1)})),0):t._e(),t._v(" "),t.products.datas?t._e():r("ContentLoader",{staticClass:"wishlist-list-loader",attrs:{height:"105"}},[r("rect",{attrs:{x:"0",y:"12",rx:"3",ry:"0",width:"100%",height:"11"}}),t._v(" "),r("rect",{attrs:{x:"0",y:"36",rx:"3",ry:"0",width:"100%",height:"11"}}),t._v(" "),r("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"0",width:"100%",height:"11"}}),t._v(" "),r("rect",{attrs:{x:"0",y:"84",rx:"3",ry:"0",width:"100%",height:"11"}})]),t._v(" "),t.products.datas&&t.products.datas.products.length<=0?r("p",{staticClass:"wishlist-list-empty"},[t._v("\n "+t._s(t.noProductsMessage)+"\n ")]):t._e()],1)])};i._withStripped=!0;var o=r(4),a=r.n(o),s=r(0),u=r.n(s),c=(r(58),function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"wishlist-product"},[r("a",{staticClass:"wishlist-product-link",attrs:{href:t.product.canonical_url}},[r("div",{staticClass:"wishlist-product-image"},[t.product.default_image?r("img",{class:{"wishlist-product-unavailable":!t.product.add_to_cart_url},attrs:{src:t.product.default_image.large.url,alt:t.product.default_image.legend,title:t.product.default_image.legend}}):t.product.cover?r("img",{class:{"wishlist-product-unavailable":!t.product.add_to_cart_url},attrs:{src:t.product.cover.large.url,alt:t.product.cover.legend,title:t.product.cover.legend}}):r("img",{attrs:{src:t.prestashop.urls.no_picture_image.bySize.home_default.url}}),t._v(" "),t.product.show_availability?r("p",{staticClass:"wishlist-product-availability"},["unavailable"===t.product.availability?r("i",{staticClass:"material-icons"},[t._v("\n block\n ")]):t._e(),t._v(" "),"last_remaining_items"===t.product.availability?r("i",{staticClass:"material-icons"},[t._v("\n warning\n ")]):t._e(),t._v("\n "+t._s(t.product.availability_message)+"\n ")]):t._e()]),t._v(" "),r("div",{staticClass:"wishlist-product-right"},[r("p",{staticClass:"wishlist-product-title"},[t._v(t._s(t.product.name))]),t._v(" "),r("p",{staticClass:"wishlist-product-price"},[t.product.has_discount?r("span",{staticClass:"wishlist-product-price-promo"},[t._v("\n "+t._s(t.product.regular_price)+"\n ")]):t._e(),t._v("\n "+t._s(t.product.price)+"\n ")]),t._v(" "),r("div",{staticClass:"wishlist-product-combinations"},[r("p",{staticClass:"wishlist-product-combinations-text"},[t._l(t.product.attributes,(function(e,n,i){return[t._v("\n "+t._s(e.group)+" : "+t._s(e.name)+"\n "),i<=Object.keys(t.product.attributes).length-1?r("span",{key:n},[t._v("\n -\n ")]):t._e(),t._v(" "),i==Object.keys(t.product.attributes).length-1?r("span",{key:n+"end"},[t._v("\n "+t._s(t.quantityText)+" : "+t._s(t.product.wishlist_quantity)+"\n ")]):t._e()]})),t._v(" "),0===Object.keys(t.product.attributes).length?r("span",[t._v("\n "+t._s(t.quantityText)+" : "+t._s(t.product.wishlist_quantity)+"\n ")]):t._e()],2),t._v(" "),t.isShare?t._e():r("a",{attrs:{href:t.product.canonical_url}},[r("i",{staticClass:"material-icons"},[t._v("create")])])])])]),t._v(" "),r("div",{staticClass:"wishlist-product-bottom"},[r("button",{staticClass:"btn wishlist-product-addtocart",class:{"btn-secondary":"1"===t.product.customizable,"btn-primary":"0"===t.product.customizable},attrs:{disabled:t.isDisabled||t.forceDisable},on:{click:function(e){(t.product.add_to_cart_url||"1"===t.product.customizable)&&t.addToCartAction()}}},["0"===t.product.customizable?r("i",{staticClass:"material-icons shopping-cart"},[t._v("\n shopping_cart\n ")]):t._e(),t._v("\n "+t._s("1"===t.product.customizable?t.customizeText:t.addToCart)+"\n ")]),t._v(" "),t.isShare?t._e():r("button",{staticClass:"wishlist-button-add",on:{click:t.removeFromWishlist}},[r("i",{staticClass:"material-icons"},[t._v("delete")])])]),t._v(" "),t.product.show_availability?r("p",{staticClass:"wishlist-product-availability wishlist-product-availability-responsive"},["unavailable"===t.product.availability?r("i",{staticClass:"material-icons"},[t._v("\n block\n ")]):t._e(),t._v(" "),"last_remaining_items"===t.product.availability?r("i",{staticClass:"material-icons"},[t._v("\n warning\n ")]):t._e(),t._v("\n "+t._s(t.product.availability_message)+"\n ")]):t._e()])});c._withStripped=!0;var l=r(151).a,d=(r(358),r(7)),p=Object(d.a)(l,c,[],!1,null,null,null);p.options.__file="_dev/front/js/components/Product/Product.vue";var f,h=p.exports,m=r(11),y=r.n(m),v=r(14),g=Object(v.a)(f||(f=y()(["\n query getProducts($listId: Int!, $url: String!) {\n products(listId: $listId, url: $url) {\n datas\n }\n }\n"]))),b=r(60),w=r(2),_={name:"ProductsListContainer",components:{Product:h,ContentLoader:b.a},apollo:{products:{query:g,variables:function(){return{listId:this.listId,url:this.apiUrl}},skip:function(){return!0},fetchPolicy:"network-only"}},props:{url:{type:String,required:!1,default:"#"},title:{type:String,required:!0},filter:{type:String,required:!0},noProductsMessage:{type:String,required:!0},listId:{type:Number,required:!1,default:0},addToCart:{type:String,required:!0},share:{type:Boolean,required:!0},customizeText:{type:String,required:!0},quantityText:{type:String,required:!0}},data:function(){return{products:[],currentWishlist:{},apiUrl:window.location.href,selectedSort:""}},methods:{changeSelectedSort:function(t){var e=this;return a()(u.a.mark((function r(){return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.selectedSort=t.label,e.apiUrl=t.url;case 2:case"end":return r.stop()}}),r)})))()}},computed:{productList:function(){var t=this,e=this.products.datas.sort_orders.filter((function(e){return e.label!==t.products.datas.sort_selected}));return e},currentSort:function(){return""!==this.selectedSort?this.selectedSort:this.products.datas.sort_selected}},mounted:function(){var t=this;this.listId&&(this.$apollo.queries.products.skip=!1),w.a.$on("refetchList",(function(){t.$apollo.queries.products.refetch()})),w.a.$on("updatePagination",(function(e){t.products=!1,t.apiUrl=e.page.url}))}},x=(r(360),Object(d.a)(_,i,[],!1,null,null,null));x.options.__file="_dev/front/js/container/ProductsListContainer/ProductsListContainer.vue";var S=x.exports,k=[{name:"url",type:String},{name:"title",type:String},{name:"noProductsMessage",type:String},{name:"addToCart",type:String},{name:"customizeText",type:String},{name:"wishlistProducts",type:String},{name:"wishlist",type:String},{name:"share",type:Boolean},{name:"quantityText",type:String},{name:"filter",type:String},{name:"listId",type:Number}]; + */e.a={addToCart:{Accept:"application/json, text/javascript"},products:{"Content-Type":"application/json",Accept:"application/json, text/javascript, */*; q=0.01"}}},24:function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var u,c=[],l=!1,d=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var t=s(p);l=!0;for(var e=c.length;e;){for(u=c,c=[];++d1)for(var r=1;r>>((3&e)<<3)&255;return i}}},28:function(t,e){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,i=r;return[i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],"-",i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]],i[t[n++]]].join("")}},29:function(t,e,r){t.exports=r(53).Observable},30:function(t,e,r){"use strict";function n(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}r.d(e,"a",(function(){return n}))},33:function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var i=(a=n,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),o=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(o).concat([i]).join("\n")}var a,s,u;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(n)for(var o=0;or.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(i=0;i=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;I(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},384:function(t,e,r){"use strict";r.r(e);r(32);var n=r(9),i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"wishlist-products-container"},[r("div",{staticClass:"wishlist-products-container-header"},[r("h1",[t._v("\n "+t._s(t.title)+"\n\n "),t.products.datas&&t.products.datas.products?r("span",{staticClass:"wishlist-products-count"},[t._v("\n ("+t._s(t.products.datas.pagination.total_items)+")\n ")]):t._e()]),t._v(" "),t.products.datas?r("div",{staticClass:"sort-by-row"},[r("span",{staticClass:"hidden-sm-down col-sm-3 col-md-3 sort-by"},[t._v(t._s(t.filter))]),t._v(" "),r("div",{staticClass:"col-xs-12 col-sm-9 col-md-9 products-sort-order dropdown"},[r("button",{staticClass:"btn-unstyle select-title",attrs:{rel:"nofollow","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v("\n "+t._s(t.currentSort)+"\n "),r("i",{staticClass:"material-icons float-xs-right"},[t._v("arrow_drop_down")])]),t._v(" "),r("div",{staticClass:"dropdown-menu"},t._l(t.productList,(function(e,n){return r("a",{key:n,staticClass:"select-list",attrs:{rel:"nofollow"},on:{click:function(r){return t.changeSelectedSort(e)}}},[t._v("\n "+t._s(e.label)+"\n ")])})),0)])]):t._e()]),t._v(" "),r("section",{staticClass:"page-content card card-block",attrs:{id:"content"}},[t.products.datas&&t.products.datas.products.length>0?r("ul",{staticClass:"wishlist-products-list"},t._l(t.products.datas.products,(function(e,n){return r("li",{key:n,staticClass:"wishlist-products-item"},[r("Product",{attrs:{product:e,"add-to-cart":t.addToCart,"customize-text":t.customizeText,"quantity-text":t.quantityText,"list-name":t.title,"list-id":t.listId?t.listId:parseInt(t.currentWishlist.id_wishlist,10),"is-share":t.share}})],1)})),0):t._e(),t._v(" "),t.products.datas?t._e():r("ContentLoader",{staticClass:"wishlist-list-loader",attrs:{height:"105"}},[r("rect",{attrs:{x:"0",y:"12",rx:"3",ry:"0",width:"100%",height:"11"}}),t._v(" "),r("rect",{attrs:{x:"0",y:"36",rx:"3",ry:"0",width:"100%",height:"11"}}),t._v(" "),r("rect",{attrs:{x:"0",y:"60",rx:"3",ry:"0",width:"100%",height:"11"}}),t._v(" "),r("rect",{attrs:{x:"0",y:"84",rx:"3",ry:"0",width:"100%",height:"11"}})]),t._v(" "),t.products.datas&&t.products.datas.products.length<=0?r("p",{staticClass:"wishlist-list-empty"},[t._v("\n "+t._s(t.noProductsMessage)+"\n ")]):t._e()],1)])};i._withStripped=!0;var o=r(4),a=r.n(o),s=r(0),u=r.n(s),c=(r(58),function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"wishlist-product"},[r("a",{staticClass:"wishlist-product-link",attrs:{href:t.product.canonical_url}},[r("div",{staticClass:"wishlist-product-image"},[t.product.default_image?r("img",{class:{"wishlist-product-unavailable":!t.product.add_to_cart_url},attrs:{src:t.product.default_image.large.url,alt:t.product.default_image.legend,title:t.product.default_image.legend}}):t.product.cover?r("img",{class:{"wishlist-product-unavailable":!t.product.add_to_cart_url},attrs:{src:t.product.cover.large.url,alt:t.product.cover.legend,title:t.product.cover.legend}}):r("img",{attrs:{src:t.prestashop.urls.no_picture_image.bySize.home_default.url}}),t._v(" "),t.product.show_availability?r("p",{staticClass:"wishlist-product-availability"},["unavailable"===t.product.availability?r("i",{staticClass:"material-icons"},[t._v("\n block\n ")]):t._e(),t._v(" "),"last_remaining_items"===t.product.availability?r("i",{staticClass:"material-icons"},[t._v("\n warning\n ")]):t._e(),t._v("\n "+t._s(t.product.availability_message)+"\n ")]):t._e()]),t._v(" "),r("div",{staticClass:"wishlist-product-right"},[r("p",{staticClass:"wishlist-product-title"},[t._v(t._s(t.product.name))]),t._v(" "),r("p",{staticClass:"wishlist-product-price"},[t.product.has_discount?r("span",{staticClass:"wishlist-product-price-promo"},[t._v("\n "+t._s(t.product.regular_price)+"\n ")]):t._e(),t._v("\n "+t._s(t.product.price)+"\n ")]),t._v(" "),r("div",{staticClass:"wishlist-product-combinations"},[r("p",{staticClass:"wishlist-product-combinations-text"},[t._l(t.product.attributes,(function(e,n,i){return[t._v("\n "+t._s(e.group)+" : "+t._s(e.name)+"\n "),i<=Object.keys(t.product.attributes).length-1?r("span",{key:n},[t._v("\n -\n ")]):t._e(),t._v(" "),i==Object.keys(t.product.attributes).length-1?r("span",{key:n+"end"},[t._v("\n "+t._s(t.quantityText)+" : "+t._s(t.product.wishlist_quantity)+"\n ")]):t._e()]})),t._v(" "),0===Object.keys(t.product.attributes).length?r("span",[t._v("\n "+t._s(t.quantityText)+" : "+t._s(t.product.wishlist_quantity)+"\n ")]):t._e()],2),t._v(" "),t.isShare?t._e():r("a",{attrs:{href:t.product.canonical_url}},[r("i",{staticClass:"material-icons"},[t._v("create")])])])])]),t._v(" "),r("div",{staticClass:"wishlist-product-bottom"},[r("button",{staticClass:"btn wishlist-product-addtocart",class:{"btn-secondary":t.product.customizable,"btn-primary":!t.product.customizable},attrs:{disabled:!t.product.customizable&&(t.isDisabled||t.forceDisable)},on:{click:function(e){(t.product.add_to_cart_url||t.product.customizable)&&t.addToCartAction()}}},[t.product.customizable?t._e():r("i",{staticClass:"material-icons shopping-cart"},[t._v("\n shopping_cart\n ")]),t._v("\n "+t._s(t.product.customizable?t.customizeText:t.addToCart)+"\n ")]),t._v(" "),t.isShare?t._e():r("button",{staticClass:"wishlist-button-add",on:{click:t.removeFromWishlist}},[r("i",{staticClass:"material-icons"},[t._v("delete")])])]),t._v(" "),t.product.show_availability?r("p",{staticClass:"wishlist-product-availability wishlist-product-availability-responsive"},["unavailable"===t.product.availability?r("i",{staticClass:"material-icons"},[t._v("\n block\n ")]):t._e(),t._v(" "),"last_remaining_items"===t.product.availability?r("i",{staticClass:"material-icons"},[t._v("\n warning\n ")]):t._e(),t._v("\n "+t._s(t.product.availability_message)+"\n ")]):t._e()])});c._withStripped=!0;var l=r(151).a,d=(r(358),r(7)),p=Object(d.a)(l,c,[],!1,null,null,null);p.options.__file="_dev/front/js/components/Product/Product.vue";var f,h=p.exports,m=r(11),y=r.n(m),v=r(14),g=Object(v.a)(f||(f=y()(["\n query getProducts($listId: Int!, $url: String!) {\n products(listId: $listId, url: $url) {\n datas\n }\n }\n"]))),b=r(60),w=r(2),_={name:"ProductsListContainer",components:{Product:h,ContentLoader:b.a},apollo:{products:{query:g,variables:function(){return{listId:this.listId,url:this.apiUrl}},skip:function(){return!0},fetchPolicy:"network-only"}},props:{url:{type:String,required:!1,default:"#"},title:{type:String,required:!0},filter:{type:String,required:!0},noProductsMessage:{type:String,required:!0},listId:{type:Number,required:!1,default:0},addToCart:{type:String,required:!0},share:{type:Boolean,required:!0},customizeText:{type:String,required:!0},quantityText:{type:String,required:!0}},data:function(){return{products:[],currentWishlist:{},apiUrl:window.location.href,selectedSort:""}},methods:{changeSelectedSort:function(t){var e=this;return a()(u.a.mark((function r(){return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.selectedSort=t.label,e.apiUrl=t.url;case 2:case"end":return r.stop()}}),r)})))()}},computed:{productList:function(){var t=this,e=this.products.datas.sort_orders.filter((function(e){return e.label!==t.products.datas.sort_selected}));return e},currentSort:function(){return""!==this.selectedSort?this.selectedSort:this.products.datas.sort_selected}},mounted:function(){var t=this;this.listId&&(this.$apollo.queries.products.skip=!1),w.a.$on("refetchList",(function(){t.$apollo.queries.products.refetch()})),w.a.$on("updatePagination",(function(e){t.products=!1,t.apiUrl=e.page.url}))}},x=(r(360),Object(d.a)(_,i,[],!1,null,null,null));x.options.__file="_dev/front/js/container/ProductsListContainer/ProductsListContainer.vue";var S=x.exports,k=[{name:"url",type:String},{name:"title",type:String},{name:"noProductsMessage",type:String},{name:"addToCart",type:String},{name:"customizeText",type:String},{name:"wishlistProducts",type:String},{name:"wishlist",type:String},{name:"share",type:Boolean},{name:"quantityText",type:String},{name:"filter",type:String},{name:"listId",type:Number}]; /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA