1(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{576:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return n})),r.d(e,"d",(function(){return c})),r.d(e,"c",(function(){return l}));var o=4,n=2;function c(t,e){return t<e?"eager":"lazy"}function l(t,e){return t<e?"high":void 0}},581:function(t,e,r){"use strict";function o(t){var e=t&&t.core_deposit;return e&&Number(e.price)>0?e:null}function n(t){return null!==o(t)}r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return n}))},639:function(t,e,r){},774:function(t,e,r){"use strict";r(9),r(10);var o=new Set,n=null;function c(){var t=Date.now();o.forEach((e=>e(t)))}var l={name:"PromotionCountdown",props:{expiresAt:{type:String,required:!0}},data:()=>({now:Date.now()}),computed:{formattedTime(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),r=new Date(t).getTime(),o=r-e;if(!Number.isFinite(r)||o<=0)return"";var n=Math.floor(o/1e3),c=Math.floor(n/86400),l=Math.floor(n/3600),d=Math.floor(n%86400/3600),_=Math.floor(n%3600/60),m=n%60;return c>0?"".concat(c,"d ").concat(String(d).padStart(2,"0"),":").concat(String(_).padStart(2,"0"),":").concat(String(m).padStart(2,"0")):"".concat(String(l).padStart(2,"0"),":").concat(String(_).padStart(2,"0"),":").concat(String(m).padStart(2,"0"))}(this.expiresAt,this.now)}},mounted(){var t;this.unsubscribe=(t=t=>{this.now=t},"undefined"==typeof window||"function"!=typeof t?()=>{}:(o.add(t),t(Date.now()),n||(n=window.setInterval(c,1e3)),()=>{o.delete(t),!o.size&&n&&(window.clearInterval(n),n=null)}))},beforeDestroy(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)}},d=l,_=r(0),component=Object(_.a)(d,(function(){var t=this;return(0,t._self._c)("span",[t._v(t._s(t.formattedTime))])}),[],!1,null,null,null);e.a=component.exports},775:function(t,e,r){"use strict";r(5);var o=r(1),n=r(2),c=(r(12),r(182)),l=r(7),d=r(581),_=r(72),m=r(774),h=r(181),f=r(185),v=r(177),y=r(178),P=r(6),C=r(49),w=r(41),O=r(576);function I(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?I(Object(r),!0).forEach((function(e){Object(n.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var j={name:"Grid",components:{ClassificationBadges:c.a,PromotionCountdown:m.a,NotifyMeModal:v.a,PreOrderContactModal:y.a,LowestPrice30Days:h.a,PromotionBadge:f.a},props:{items:{type:Array,default:()=>[]},compactLayout:{type:Boolean,default:!1},joined:{type:Boolean,default:!1},searchLogId:{type:Number,default:null}},data:()=>({notifyProduct:null,contactProduct:null,copiedSKU:null,cartLoadingIds:[]}),created(){this._cartLoadingTimers={}},beforeDestroy(){Object.values(this._cartLoadingTimers||{}).forEach(clearTimeout)},watch:{cartItemsRaw(){this.cartLoadingIds.slice().forEach((t=>{this.cartItemsRaw.some((e=>e.product_id==t))&&this.stopCartLoading(t)}))}},computed:L(L({},Object(l.e)("cart",{cartItemsRaw:"items"})),{},{isAuth(){return Boolean(this.$store.state.user.id)}}),methods:L(L({sellableCount:t=>Object(_.a)(t),supplierCount:t=>Object(_.b)(t)},Object(l.b)("shop",["PREFETCH_PRODUCT"])),{},{openNotify(t){this.notifyProduct=t,this.$nextTick((()=>{this.$refs.notifyModal.openDialog()}))},openPreOrder(t){this.contactProduct=t,this.$nextTick((()=>{this.$refs.preOrderModal.openDialog()}))},prefetchProduct(t){null!=t&&t.slug&&this.PREFETCH_PRODUCT({slug:t.slug,searchLogId:this.searchLogId}).catch((()=>{}))},getImageLoading:t=>Object(O.d)(t,O.a),getImageFetchPriority:t=>Object(O.c)(t,O.a),getProductImage(t){return Object(C.e)(t,{config:this.$config,fallback:this.noPhotoImg(),useDevProductFallback:!0})},getProductImageSrcSet(t){return Object(C.f)(t,{config:this.$config})},noPhotoImg:()=>C.a,isInCart(t){return this.cartItemsRaw.some((e=>e.product_id==t.id))},hasDeposit:t=>Object(d.a)(t),isNew:t=>
1Boolean(t&&(1==t.is_new||"true"==t.is_new)),isHasPromotion:t=>Boolean(t&&(1==t.has_promotion||"true"==t.has_promotion)),oldNetPrice:t=>Object(w.d)(t),isPricePromo:t=>Object(w.f)(t),displayNetPrice:t=>Object(w.e)(t),isSaleOrChance:t=>["sale","chance"].includes(t.promotion_type),getPromoLabel(t){var p=t&&t.promotion;if(!p)return null;var e=p.name||p.discount_name,r=p.label_color||p.discount_label_color,o=p.text_color||p.discount_text_color;return e&&r&&o?{name:e,bg:r,color:o}:null},elipsis:t=>t.length>80?t.substring(0,80)+"...":t,isInactive:t=>void 0!==t.is_shown&&!t.is_shown,toggleFavoriteHandler(t){this.isInactive(t)||this.$emit("favorite-toggle",t)},onCartToggle(t){this.$emit("cart-toggle",t)},handleCartToggle(t){this.isCartLoading(t)||(this.isInCart(t)?this.$router.push(this.localePath({name:"cart"})):(this.startCartLoading(t),this.$emit("cart-toggle",t)))},isCartLoading(t){return this.cartLoadingIds.includes(t.id)},startCartLoading(t){this.cartLoadingIds.includes(t.id)||this.cartLoadingIds.push(t.id),clearTimeout(this._cartLoadingTimers[t.id]),this._cartLoadingTimers[t.id]=setTimeout((()=>this.stopCartLoading(t.id)),1e4)},stopCartLoading(t){var e=this.cartLoadingIds.indexOf(t);-1!==e&&this.cartLoadingIds.splice(e,1),clearTimeout(this._cartLoadingTimers[t]),delete this._cartLoadingTimers[t]},copySKU(t){var e=this;return Object(o.a)((function*(){try{yield navigator.clipboard.writeText(t),e.copiedSKU=t,setTimeout((()=>e.copiedSKU=null),2e3)}catch(t){console.error("error copied: ",t)}}))()},hasCountdownTimer(t){var p=t&&t.promotion;return!(!p||!p.expires_at)&&["sale","chance"].includes(t.promotion_type)},hasDateTimer(t){var p=t&&t.promotion;return!(!p||!p.expires_at)&&["hit","price"].includes(t.promotion_type)},formatPromoDate(t){var e;if(!t)return"";var r=new Date(t),o=Object(P.c)(null===(e=this.$i18n)||void 0===e?void 0:e.locale);return r.toLocaleDateString(o,{year:"numeric",month:"2-digit",day:"2-digit"})}})},$=(r(793),r(0)),component=Object($.a)(j,(function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"fade"}},[e("div",{staticClass:"grid",class:{"grid--compact":t.compactLayout,"grid--joined":t.joined}},[e("el-row",{staticClass:"flex-wrap w-100 cards-row",attrs:{type:"flex"}},t._l(t.items,(function(r,o){return e("el-col",{key:r.id,staticClass:"card-col",class:{inactive:t.isInactive(r)},attrs:{md:8,lg:8,xs:12,sm:8}},[e("div",{class:{grid__item:!0,grid__item__empty:!r.available_for_pre_purchase,grid__item__pre_purshase:r.available_for_pre_purchase,"has-badges":t.isHasPromotion(r)||t.isNew(r),"has-two-badges":t.isHasPromotion(r)&&t.isNew(r),"has-deposit":t.hasDeposit(r)}},[t.isNew(r)?e("div",{staticClass:"new-badge new-label"},[t._v("\n NEW\n ")]):t._e(),t._v(" "),t.getPromoLabel(r)?e("PromotionBadge",{staticClass:"sale-badge",attrs:{promotion:r.promotion,compact:""}}):t._e(),t._v(" "),t.hasDeposit(r)?e("div",{staticClass:"deposit-badge"},[t._v("\n "+t._s(t.$t("DEPOSIT"))+"\n ")]):t._e(),t._v(" "),t.hasCountdownTimer(r)?e("div",{staticClass:"promo-timer"},[e("PromotionCountdown",{attrs:{"expires-at":r.promotion.expires_at}})],1):t.hasDateTimer(r)?e("div",{staticClass:"promo-date"},[t._v("\n "+t._s(t.$t("till"))+":\n "+t._s(t.formatPromoDate(r.promotion.expires_at))+"\n ")]):t._e(),t._v(" "),e("button",{staticClass:"favourite_icon",class:{active:r.is_favorite},attrs:{type:"button","aria-label":r.is_favorite?t.$t("Favorite remove action"):t.$t("Favorite add action")},on:{click:function(e){return t.toggleFavoriteHandler(r)}}},[e("svg",{attrs:{viewBox:"0 0 24 24","aria-hidden":"true"}},[e("path",{attrs:{d:"M5.4 4.6A2.1 2.1 0 0 1 7.5 2.5h9a2.1 2.1 0 0 1 2.1 2.1v14.9a.6.6 0 0 1-.94.5L12 15.9l-5.66 4.1a.6.6 0 0 1-.94-.5V4.6Z"}})])]),t._v(" "),e("nuxt-link",{attrs:{to:t.localePath({name:"shop-product-slug",params:{slug:r.slug}})},nativeOn:{mouseenter:function(e){return t.prefetchProduct(r)},focus:function(e){return t.prefetchProduct(r)},touchstart:function(e){return t.prefetchProduct(r)},click:function(e){return t.$emit("product-open",{item:r,index:o})}}},[e("img",{directives:[{name:"product-image-fallback",rawName:"v-product-image-fallback"}],staticClass:"product-img",attrs:{src:t.getProductImage(r),srcset:t.getProductImageSrcSet(r),sizes:"(max-width: 767px) 50vw, (max-width: 1279px) 25vw, 240px",alt:r.name,loading:t.getImageLoading(o),fetchpriority:t.getImageFetchPriority(o),decoding:"async"}}),t._v(" "),e("h3",{staticClass:"grid__item__name"},[t._v(t._s(t.elipsis(r.name)))])]),t._v(" "),e("ClassificationBadges",{attrs:{classification:r.classification}}),t._v(" "),e("div",{staticClass:"grid__item__info"},[e("span",{staticClass:"grid__item__info__value"},[t._v("\n "+t._s(t.$t("Manufacturer"))+":\n "+t._s(r.manufacturer||"â")+"\n ")])]),t._v(" "),e("div",{staticClass:"grid__item__info",on:{click:function(e){return t.copySKU(r.sku)}}},[t.copiedSKU===r.sku?e("span",{staticClass:"copied-label"},[t._v(t._s(t.$t("Copied!")))]):e("span",{staticClass:"grid__item__info__value"},[t._v("\n "+t._s(t.$t("SKU"))+": "+t._s(r.sku)+"\n ")])]),t._v(" "),e("div",{staticClass:"grid__item__availability"},[r.count>0?e("div",{staticClass:"grid__item__availability__yes"},[t._v("\n "+t._s(t.$t("In stock"))+"\n ")]):r.available_for_pre_purchase?e("div",{staticClass:"grid__item__availability__pre-order"},[t._v("\n "+t._s(t.$t("Pre-order"))+"\n "),r.supplier_delivery_label?e("span",[t._v(" · "+t._s(t.$t("Delivery {days}
1 working days",{days:r.supplier_delivery_label})))]):t._e(),t._v(" "),t.sellableCount(r)<1?e("span",[t._v(" | "+t._s(t.$t("Contact the manager")))]):t._e()]):e("div",{staticClass:"grid__item__availability__no"},[t._v("\n "+t._s(t.$t("Out of stock"))+"\n ")])]),t._v(" "),e("div",{staticClass:"grid__item__price",class:{"grid__item__price--promo":t.isPricePromo(r)}},[e("div",{staticClass:"grid__item__price__text"},[t.isPricePromo(r)?e("span",{staticClass:"price-old-abs"},[t._v("\n "+t._s(t.oldNetPrice(r))+" "+t._s(r.price_retail.symbol)+"\n ")]):t._e(),t._v(" "),t.isPricePromo(r)?e("span",{staticClass:"price-new"},[t._v("\n "+t._s(t.displayNetPrice(r))+" "+t._s(r.price_retail.symbol)+"\n ")]):[t._v("\n "+t._s(t.displayNetPrice(r))+" "+t._s(r.price_retail.symbol)+"\n ")],t._v(" "),e("span",{staticClass:"grid__item__price__text__no_vat"},[t._v("\n "+t._s(t.$t("without VAT"))+"\n ")]),t._v(" "),t.isPricePromo(r)?e("LowestPrice30Days",{attrs:{promotion:r.promotion,symbol:r.price_retail.symbol,compact:""}}):t._e()],2),t._v(" "),e("transition",{attrs:{mode:"out-in",name:"fade"}},[t.sellableCount(r)>0?[e("el-button",{staticClass:"grid__actions-cart grid__item__price__button",class:{"grid__actions-cart--active":t.isInCart(r)},attrs:{"aria-label":t.isInCart(r)?t.$t("In cart"):t.$t("Add to cart")},on:{click:function(e){return t.handleCartToggle(r)}}},[t.isCartLoading(r)?e("span",{staticClass:"el-icon-loading"}):t.isInCart(r)?e("span",{staticClass:"el-icon-shopping-cart-full"}):e("span",{staticClass:"el-icon-shopping-cart-2"})])]:t._e()],2),t._v(" "),t.sellableCount(r)<1&&!r.available_for_pre_purchase?e("el-button",{staticClass:"grid__actions-cart grid__actions-cart--notify grid__item__price__button",attrs:{"aria-label":t.$t("Notify when available"),title:t.$t("Notify when available")},on:{click:function(e){return t.openNotify(r)}}},[e("span",{staticClass:"el-icon-bell"})]):t._e(),t._v(" "),t.sellableCount(r)<1&&r.available_for_pre_purchase?e("el-button",{staticClass:"grid__actions-cart grid__actions-cart--contact grid__item__price__button",attrs:{"aria-label":t.$t("Contact the manager"),title:t.$t("Contact the manager")},on:{click:function(e){return t.openPreOrder(r)}}},[e("svg-icon",{attrs:{name:"phone_women_icon",width:"20",height:"19"}})],1):t._e()],1)],1)])})),1),t._v(" "),e("NotifyMeModal",{ref:"notifyModal",attrs:{"product-id":t.notifyProduct?t.notifyProduct.id:null,"product-name":t.notifyProduct?t.notifyProduct.name:"",image:t.notifyProduct?t.getProductImage(t.notifyProduct):"","sync-route-query":!1}}),t._v(" "),e("PreOrderContactModal",{ref:"preOrderModal",attrs:{"product-name":t.contactProduct?t.contactProduct.name:"",image:t.contactProduct?t.getProductImage(t.contactProduct):""}})],1)])}),[],!1,null,"6a752376",null);e.a=component.exports},793:function(t,e,r){"use strict";r(639)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.