(window.webpackJsonp=window.webpackJsonp||[]).push([[41,4,8,68,70,98,103,104,105,107,109,125,127,130,133,134,135,137,139,142,147,158,182],{1017:function(t,e,r){},1219:function(t,e,r){"use strict";r(1017)},1268:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(6),c=r(7),l=r(3),d=r(1),f=r(0);function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(l.a)(t);if(e){var o=Object(l.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(c.a)(this,r)}}var h=function(t){Object(o.a)(r,t);var e=v(r);function r(){return Object(n.a)(this,r),e.apply(this,arguments)}return r}(f.Vue);Object(d.a)([Object(f.Prop)(Array)],h.prototype,"data",void 0);var m=h=Object(d.a)([f.Component],h),y=(r(1219),r(10)),component=Object(y.a)(m,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"row pt-5"},[r("div",{staticClass:"container d-flex flex-column mb-8"},[r("KsCategoryProductFilter"),t._v(" "),r("KsProductList",{staticClass:"pt-5",attrs:{products:t.data}})],1)])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{KsCategoryProductFilter:r(730).default,KsProductList:r(746).default})},526:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(6),c=r(7),l=r(3),d=r(1),f=r(0);function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(l.a)(t);if(e){var o=Object(l.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(c.a)(this,r)}}var h=function(t){Object(o.a)(r,t);var e=v(r);function r(){return Object(n.a)(this,r),e.apply(this,arguments)}return r}(f.Vue);Object(d.a)([Object(f.Prop)({default:"Spar"})],h.prototype,"text",void 0),Object(d.a)([Object(f.Prop)()],h.prototype,"htmlText",void 0),Object(d.a)([Object(f.Prop)({default:0})],h.prototype,"amount",void 0),Object(d.a)([Object(f.Prop)(Boolean)],h.prototype,"right",void 0);var m=h=Object(d.a)([f.Component],h),y=(r(555),r(10)),component=Object(y.a)(m,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"p-relative"},[r("div",{staticClass:"discount-badge",class:{"discount-badge--right":t.right}},[r("KsIcon",{staticClass:"discount-badge__icon",attrs:{alias:"badge"}}),t._v(" "),t.htmlText?r("div",{staticClass:"discount-badge-text discount-badge-text--html"},[r("span",{staticClass:"discount-badge-text__text",domProps:{innerHTML:t._s(t.htmlText)}})]):r("div",{staticClass:"discount-badge-text"},[r("span",{staticClass:"discount-badge-text__text"},[t._v(t._s(t.text))]),t._v(" "),r("span",{staticClass:"discount-badge-text__amount"},[t._v(t._s(t.amount))])])],1)])}),[],!1,null,"3ea42d92",null);e.default=component.exports;installComponents(component,{KsIcon:r(39).default})},528:function(t,e,r){},530:function(t,e,r){},533:function(t,e,r){},534:function(t,e,r){"use strict";r.r(e);r(14);var n=r(35),o=r(4),c=r(5),l=r(6),d=r(7),f=r(3),v=(r(48),r(47),r(19),r(117),r(1)),h=r(0),m=r(161);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(f.a)(t);if(e){var o=Object(f.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(d.a)(this,r)}}var O=function(t){Object(l.a)(r,t);var e=y(r);function r(){return Object(o.a)(this,r),e.apply(this,arguments)}return Object(c.a)(r,[{key:"handleInput",value:function(){var t=this;if(this.$refs.validator&&this.$refs.validator.reset(),"boolean"==typeof this.selected)this.$emit("change",!this.selected);else{var e=Object(n.a)(this.selected);e.includes(this.value)?e=e.filter((function(e){return e!==t.value})):e.push(this.value),this.$emit("change",e)}}},{key:"isChecked",get:function(){return"boolean"==typeof this.selected?this.selected:this.selected.includes(this.value)}}]),r}(h.Vue);Object(v.a)([Object(h.Model)("change",{default:function(){return[]}})],O.prototype,"selected",void 0),Object(v.a)([Object(h.Prop)(String)],O.prototype,"name",void 0),Object(v.a)([Object(h.Prop)(String)],O.prototype,"label",void 0),Object(v.a)([Object(h.Prop)(Boolean)],O.prototype,"disabled",void 0),Object(v.a)([Object(h.Prop)([String,Boolean])],O.prototype,"value",void 0),Object(v.a)([Object(h.Prop)(Number)],O.prototype,"validationDelay",void 0),Object(v.a)([Object(h.Prop)([Object,String])],O.prototype,"validationRules",void 0),Object(v.a)([Object(h.Prop)(Boolean)],O.prototype,"hideErrorText",void 0),Object(v.a)([Object(h.Prop)(String)],O.prototype,"modifier",void 0),Object(v.a)([Object(h.Prop)(String)],O.prototype,"id",void 0);var _=O=Object(v.a)([Object(h.Component)({setup:function(t){var e=Object(m.a)(t);return{rules:e.rules,uid:e.uid,ValidationProviderComponent:e.ValidationProviderComponent}}})],O),j=(r(540),r(10)),component=Object(j.a)(_,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ValidationProvider",{ref:"validator",staticClass:"ks-checkbox",attrs:{mode:"passive",name:t.uid,rules:t.rules,debounce:t.validationDelay},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.errors;return[r("input",{staticClass:"checkbox__input",class:{"checkbox__input--error":n.length},attrs:{id:t.uid,type:"checkbox",name:t.name,disabled:t.disabled},domProps:{value:t.isChecked,checked:t.isChecked},on:{change:function(e){return t.handleInput()}}}),t._v(" "),r("label",{staticClass:"checkbox__label",class:"checkbox__label--"+t.modifier,attrs:{for:t.uid},domProps:{innerHTML:t._s(t.label)}}),t._v(" "),n.length&&!t.hideErrorText?r("span",{staticClass:"checkbox__error text-danger"},[t._v(t._s(n[0]))]):t._e()]}}])})}),[],!1,null,"5065e74c",null);e.default=component.exports},538:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=r(1),v=r(0),h=r(26),m=r(160);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var O=function(t){Object(c.a)(r,t);var e=y(r);function r(){return Object(n.a)(this,r),e.apply(this,arguments)}return Object(o.a)(r,[{key:"emitProductClick",value:function(){this.$emit("product-click")}},{key:"url",get:function(){var t=this.product.url;return this.campaignCode?"".concat(t,"?campaignCode=").concat(this.campaignCode):t}},{key:"shouldShowReadMoreLink",get:function(){var t;return!!this.product.description&&(null===(t=this.product.description)||void 0===t?void 0:t.length)>112}},{key:"haveReviews",get:function(){var t,e;return!!(null===(e=null===(t=this.product)||void 0===t?void 0:t.reviews)||void 0===e?void 0:e.length)}},{key:"isEvent",get:function(){var t;return(null===(t=this.product.attributes)||void 0===t?void 0:t.productType)===m.b.TASTING_EVENT}}]),r}(v.Vue);Object(f.a)([Object(v.Prop)()],O.prototype,"product",void 0),Object(f.a)([Object(v.Prop)(Boolean)],O.prototype,"compact",void 0),Object(f.a)([Object(v.Inject)({from:"campaignCode",default:""})],O.prototype,"campaignCode",void 0);var _=O=Object(f.a)([Object(v.Component)({components:{NcLink:h.a}})],O),j=(r(559),r(10)),component=Object(j.a)(_,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"product-description",class:{"product-description--no-description":!t.product.description,"product-description--compact":t.compact}},[t.product.attributes&&t.product.attributes.brand?r("div",{staticClass:"product-description__product-brand"},[t._v("\n "+t._s(t.product.attributes.brand)+"\n ")]):t._e(),t._v(" "),t.url?[r("NcLink",{staticClass:"product-link",attrs:{to:t.url}},[r("h3",{staticClass:"product-link__name",on:{click:function(e){return t.emitProductClick()}}},[t._v("\n "+t._s(t.product.name)+"\n ")])])]:[r("h3",{staticClass:"product-link__name",on:{click:function(e){return t.emitProductClick()}}},[t._v("\n "+t._s(t.product.name)+"\n ")])],t._v(" "),t.product.attributes&&t.product.attributes.originCountryIso&&!t.isEvent?r("KsProductRegion",{staticClass:"product-description__region",attrs:{"has-small-text":!0,"product-attributes":t.product.attributes}}):t._e(),t._v(" "),t.isEvent?r("KsProductEventMetaDisplay",{attrs:{attributes:t.product.attributes}}):t._e(),t._v(" "),t.product.description?r("div",{staticClass:"description-wrapper d-none d-md-block"},[t.product.description?r("p",{staticClass:"product-description__description"},[t._v("\n "+t._s(t.product.description)+"\n ")]):t._e(),t._v(" "),t.shouldShowReadMoreLink&&t.url?r("NcLink",{staticClass:"product-description__read-more",attrs:{to:t.url},nativeOn:{click:function(e){return t.emitProductClick()}}},[t._v("\n "+t._s(t.$t("Product.ReadMore"))+"\n ")]):t._e()],1):t._e(),t._v(" "),t.haveReviews?r("div",{staticClass:"review-wrapper"},[r("KsProductReview",{attrs:{product:t.product,compact:t.compact}})],1):t._e()],2)}),[],!1,null,"3fa15669",null);e.default=component.exports;installComponents(component,{KsProductRegion:r(266).default,KsProductEventMetaDisplay:r(549).default,KsProductReview:r(548).default})},540:function(t,e,r){"use strict";r(528)},541:function(t,e,r){"use strict";r.r(e);r(14);var n=r(2),o=r(4),c=r(5),l=r(6),d=r(7),f=r(3),v=(r(20),r(11),r(119),r(67),r(1)),h=r(0),m=r(22);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(f.a)(t);if(e){var o=Object(f.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(d.a)(this,r)}}var O=function(t){Object(l.a)(d,t);var e,r=y(d);function d(){return Object(o.a)(this,d),r.apply(this,arguments)}return Object(c.a)(d,[{key:"badgeTypes",get:function(){var t,e,r;return null===(r=null===(e=null===(t=this.settings)||void 0===t?void 0:t.content)||void 0===e?void 0:e.content)||void 0===r?void 0:r.productBadges}},{key:"ecologicalBadges",get:function(){var t=this;return(this.badges||[]).map((function(e){return{name:e,image:t.getBadgeImage(e)}}))}},{key:"getBadgeImage",value:function(t){return Object(m.j)(t)}},{key:"hasType",value:function(t){return!!this.badgeTypes.find((function(e){return t.toLowerCase()===e.type.toLowerCase()}))}},{key:"openModal",value:(e=Object(n.a)(regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.badgeTypes.find((function(t){return e.toLowerCase()===t.type.toLowerCase()})),t.next=3,this.$store.dispatch("general/SET_MODAL_COMPONENT",{template:"KsBadgeModal",props:{content:null==r?void 0:r.text,type:null==r?void 0:r.type,link:null==r?void 0:r.link,size:"small"}});case 3:this.$store.commit("general/setModalState",!0);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),d}(h.Vue);Object(v.a)([Object(h.Prop)()],O.prototype,"badges",void 0),Object(v.a)([Object(h.Getter)("getSettings")],O.prototype,"settings",void 0),Object(v.a)([Object(h.Prop)({default:!1})],O.prototype,"showModalContent",void 0);var _=O=Object(v.a)([h.Component],O),j=(r(611),r(10)),component=Object(j.a)(_,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.ecologicalBadges?r("div",{staticClass:"ecological-badges"},[r("ul",t._l(t.ecologicalBadges,(function(e,n){return r("li",{key:n},[t.hasType(e.name)&&t.showModalContent?[r("img",{staticClass:"badge badge-modal-open",attrs:{src:e.image,alt:e.name,title:e.name},on:{click:function(r){return t.openModal(e.name)}}})]:[r("img",{staticClass:"badge",attrs:{src:e.image,alt:e.name}})]],2)})),0)]):t._e()}),[],!1,null,"381f1483",null);e.default=component.exports},542:function(t,e,r){},545:function(t,e,r){},546:function(t,e,r){},548:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=(r(40),r(1)),v=r(0),h=r(22);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var y=function(t){Object(c.a)(r,t);var e=m(r);function r(){return Object(n.a)(this,r),e.apply(this,arguments)}return Object(o.a)(r,[{key:"reviews",get:function(){return this.product.reviews?this.product.reviews.slice(0,this.noOfReviews):[]}},{key:"containsGraphicStars",value:function(t){return Object(h.d)(t)}},{key:"countStars",value:function(t){return Object(h.e)(t)}}]),r}(v.Vue);Object(f.a)([Object(v.Prop)()],y.prototype,"product",void 0),Object(f.a)([Object(v.Prop)({default:!1})],y.prototype,"compact",void 0),Object(f.a)([Object(v.Prop)({default:2})],y.prototype,"noOfReviews",void 0),Object(f.a)([Object(v.Prop)({default:!1})],y.prototype,"borderLess",void 0);var O=y=Object(f.a)([v.Component],y),_=(r(565),r(10)),component=Object(_.a)(O,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"product-review__wrapper",class:{"product-review__wrapper--expanded":!t.compact,"product-review__wrapper--border-less":t.borderLess}},[r("ul",{staticClass:"product-review__list",class:{"product-review__list--expanded":!t.compact}},[t._l(t.reviews,(function(e,n){return r("li",{key:n,staticClass:"review-list__item"},[r("div",{staticClass:"review-list-item__title"},[t._v("\n "+t._s(e.authorName)+"\n\n "),t.compact?t._e():r("div",{staticClass:"review-list-item__year--mobile"},[0!==e.year?r("span",[t._v(t._s(e.year))]):t._e()])]),t._v(" "),t.compact?t._e():r("div",{staticClass:"review-list-item__year"},[0!==e.year?r("span",[t._v(t._s(e.year))]):t._e()]),t._v(" "),r("div",{staticClass:"review-list-item__score"},[t.containsGraphicStars(String(e.score))?r("span",t._l(t.countStars(String(e.score)),(function(t,e){return r("KsIcon",{key:e,staticClass:"review-star",attrs:{alias:"star-review"}})})),1):r("span",[t._v(t._s(e.score))])])])})),t._v(" "),t._t("more-reviews")],2)])}),[],!1,null,"0d5415ce",null);e.default=component.exports;installComponents(component,{KsIcon:r(39).default})},549:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=r(1),v=r(0),h=r(22);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var y=function(t){Object(c.a)(r,t);var e=m(r);function r(){return Object(n.a)(this,r),e.apply(this,arguments)}return Object(o.a)(r,[{key:"eventAddress",get:function(){var t=this.attributes,e=t.tastingEventAddress,r=t.tastingEventCity;return r&&!e?r:!r&&e?e:"".concat(e,", ").concat(r)}},{key:"eventTime",get:function(){var t,e,r,n,o,c,l,d;return(null===(t=this.attributes)||void 0===t?void 0:t.tastingEventStartTime)&&(null===(e=this.attributes)||void 0===e?void 0:e.tastingEventEndTime)?"".concat(this.$t("Global.TimePrefix")," ").concat(null===(r=this.attributes)||void 0===r?void 0:r.tastingEventStartTime," - ").concat(null===(n=this.attributes)||void 0===n?void 0:n.tastingEventEndTime):(null===(o=this.attributes)||void 0===o?void 0:o.tastingEventStartTime)?"".concat(this.$t("Global.TimePrefix")," ").concat(null===(c=this.attributes)||void 0===c?void 0:c.tastingEventStartTime):null!==(null===(l=this.attributes)||void 0===l?void 0:l.tastingEventTime)?"".concat(null===(d=this.attributes)||void 0===d?void 0:d.tastingEventTime):void 0}},{key:"eventDate",get:function(){var t,e,r;if(!(null===(t=this.attributes)||void 0===t?void 0:t.tastingEventDate))return"";var n=new Date(null===(e=this.attributes)||void 0===e?void 0:e.tastingEventDate);return Object(h.E)(n)?"".concat(Object(h.k)(n.getDay()-1),", ").concat(n.getDate(),". ").concat(Object(h.n)(n.getMonth())," ").concat(n.getFullYear()):String(null===(r=this.attributes)||void 0===r?void 0:r.tastingEventDate)}},{key:"modifiers",get:function(){return{"product-event-meta__display--compact":this.compact}}}]),r}(v.Vue);Object(f.a)([Object(v.Prop)()],y.prototype,"attributes",void 0),Object(f.a)([Object(v.Prop)(Boolean)],y.prototype,"compact",void 0);var O=y=Object(f.a)([v.Component],y),_=(r(574),r(10)),component=Object(_.a)(O,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"product-event-meta__display",class:t.modifiers},[t.eventAddress?r("div",{staticClass:"d-flex"},[r("div",{staticClass:"product-event-meta__icon-wrapper"},[r("KsIcon",{staticClass:"product-event-meta__icon product-event-meta__icon--larger",attrs:{alias:"map-marker-small"}})],1),t._v(" "),r("p",{staticClass:"product-event-meta__text"},[t._v(t._s(t.eventAddress))])]):t._e(),t._v(" "),t.attributes.tastingEventDate?r("div",{staticClass:"d-flex"},[r("div",{staticClass:"product-event-meta__icon-wrapper"},[r("KsIcon",{staticClass:"product-event-meta__icon",attrs:{alias:"calendar"}})],1),t._v(" "),r("p",{staticClass:"product-event-meta__text"},[t._v(t._s(t.eventDate))])]):t._e(),t._v(" "),t.eventTime?r("div",{staticClass:"d-flex"},[r("div",{staticClass:"product-event-meta__icon-wrapper"},[r("KsIcon",{staticClass:"product-event-meta__icon",attrs:{alias:"watch"}})],1),t._v(" "),r("p",{staticClass:"product-event-meta__text"},[t._v(t._s(t.eventTime))])]):t._e()])}),[],!1,null,"37cab860",null);e.default=component.exports;installComponents(component,{KsIcon:r(39).default})},551:function(t,e,r){},553:function(t,e,r){},555:function(t,e,r){"use strict";r(530)},559:function(t,e,r){"use strict";r(533)},565:function(t,e,r){"use strict";r(542)},568:function(t,e,r){"use strict";r(545)},569:function(t,e,r){"use strict";r(546)},572:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=(r(48),r(47),r(11),r(117),r(1)),v=r(0),h=r(26),m=r(160),y=r(22);function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var _=function(t){Object(c.a)(r,t);var e=O(r);function r(){var t;return Object(n.a)(this,r),(t=e.apply(this,arguments)).ecoBadges=[],t}return Object(o.a)(r,[{key:"getBadgeImage",value:function(t){return Object(y.j)(t)}},{key:"ecologicalBadges",get:function(){var t,e=this;this.ecoBadges=[];for(var r=(null===(t=this.product)||void 0===t?void 0:t.ecologicalBadges)||[],i=0;i<r.length;i++)"EcologicalNaturwine"===r[i]&&r.includes("Ecological")||this.ecoBadges.push(r[i]);return this.ecoBadges.map((function(t){return{name:t,image:e.getBadgeImage(t)}}))}},{key:"url",get:function(){var t=this.product.url;return this.campaignCode?"".concat(t,"?campaignCode=").concat(this.campaignCode):t}},{key:"trackProductClick",value:function(){this.$trackingService.trackProductClick(this.product,this.$route.path,this.index)}},{key:"discountDisplayValue",get:function(){var t,e;return null===(e=null===(t=this.product.price)||void 0===t?void 0:t.unitDiscount)||void 0===e?void 0:e.displayValue}},{key:"isEvent",get:function(){var t;return(null===(t=this.product.attributes)||void 0===t?void 0:t.productType)===m.b.TASTING_EVENT}},{key:"imageUrl",get:function(){return this.product&&this.product.image?this.product.image.url?this.product.image.url:this.product.image.imageUrl?this.product.image.imageUrl:"":""}},{key:"imageAltText",get:function(){return this.product&&this.product.image&&(this.product.image.label||this.product.image.label)?this.product.image.label:""}},{key:"hasPriceTier",get:function(){var t,e;return!!(null===(e=null===(t=this.product.price)||void 0===t?void 0:t.tiers)||void 0===e?void 0:e.length)}}]),r}(v.Vue);Object(f.a)([Object(v.Prop)()],_.prototype,"product",void 0),Object(f.a)([Object(v.Prop)(Boolean)],_.prototype,"compact",void 0),Object(f.a)([Object(v.Prop)(Number)],_.prototype,"index",void 0),Object(f.a)([Object(v.Inject)({from:"campaignCode",default:""})],_.prototype,"campaignCode",void 0);var j=_=Object(f.a)([Object(v.Component)({components:{NcLink:h.a}})],_),C=(r(568),r(10)),component=Object(C.a)(j,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.product?r("div",{staticClass:"product-card__inner",class:{"product-card--event":t.isEvent,"product-card--compact":t.compact}},[t.product.ecologicalBadges?r("KsProductBadges",{attrs:{badges:t.product.ecologicalBadges,"show-modal-content":!t.compact}}):t._e(),t._v(" "),r("div",{staticClass:"image-wrapper"},[r("div",{staticClass:"discount-badge__wrapper"},[t.hasPriceTier?r("KsDiscountBadge",{staticClass:"badge",attrs:{"html-text":t.$t("Product.VolumeDiscount")}}):t.product.price&&t.product.price.unitDiscount?r("KsDiscountBadge",{attrs:{text:t.$t("Product.DiscountSaveText"),amount:t.discountDisplayValue}}):t._e()],1),t._v(" "),r("NcLink",{staticClass:"product-link",attrs:{to:t.url},nativeOn:{click:function(e){return t.trackProductClick()}}},[t.product.image&&t.imageUrl?r("KsImage",{staticClass:"image-wrapper__image",attrs:{image:{url:t.imageUrl,altText:t.imageAltText},sizes:"238px md: 267px"}}):t._e()],1)],1),t._v(" "),r("div",{staticClass:"content-wrapper"},[r("KsProductCardTop",{attrs:{product:t.product,compact:t.compact},on:{"product-click":t.trackProductClick}}),t._v(" "),r("div",{staticClass:"spacer"}),t._v(" "),r("KsProductCardBottom",{attrs:{product:t.product,compact:t.compact},on:{addToBasket:function(e){return t.$emit("addToBasket")}}})],1)],1):t._e()}),[],!1,null,"0b6356de",null);e.default=component.exports;installComponents(component,{KsProductBadges:r(541).default,KsDiscountBadge:r(526).default,KsImage:r(66).default,KsProductCardTop:r(538).default,KsProductCardBottom:r(564).default})},573:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=(r(117),r(1)),v=r(0),h=r(26),m=r(160);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var O=function(t){Object(c.a)(r,t);var e=y(r);function r(){var t;return Object(n.a)(this,r),(t=e.apply(this,arguments)).ecoBadges=[],t}return Object(o.a)(r,[{key:"url",get:function(){var t=this.product.url;return this.campaignCode?"".concat(t,"?campaignCode=").concat(this.campaignCode):t}},{key:"trackProductClick",value:function(){this.$trackingService.trackProductClick(this.product,this.$route.path,this.index)}},{key:"discountDisplayValue",get:function(){var t,e;return null===(e=null===(t=this.product.price)||void 0===t?void 0:t.unitDiscount)||void 0===e?void 0:e.displayValue}},{key:"isEvent",get:function(){var t;return(null===(t=this.product.attributes)||void 0===t?void 0:t.productType)===m.b.TASTING_EVENT}},{key:"imageUrl",get:function(){return this.product&&this.product.image?this.product.image.url?this.product.image.url:this.product.image.imageUrl?this.product.image.imageUrl:"":""}},{key:"imageAltText",get:function(){return this.product&&this.product.image&&(this.product.image.label||this.product.image.label)?this.product.image.label:""}},{key:"hasPriceTier",get:function(){var t,e;return!!(null===(e=null===(t=this.product.price)||void 0===t?void 0:t.tiers)||void 0===e?void 0:e.length)}}]),r}(v.Vue);Object(f.a)([Object(v.Prop)()],O.prototype,"product",void 0),Object(f.a)([Object(v.Prop)(Boolean)],O.prototype,"compact",void 0),Object(f.a)([Object(v.Prop)(Number)],O.prototype,"index",void 0),Object(f.a)([Object(v.Inject)({from:"campaignCode",default:""})],O.prototype,"campaignCode",void 0);var _=O=Object(f.a)([Object(v.Component)({components:{NcLink:h.a}})],O),j=(r(569),r(10)),component=Object(j.a)(_,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.product?r("div",{staticClass:"product-card__inner",class:{"product-card--event":t.isEvent,"product-card--compact":t.compact}},[t.product.ecologicalBadges?r("KsProductBadges",{attrs:{badges:t.product.ecologicalBadges,"show-modal-content":!t.compact}}):t._e(),t._v(" "),r("div",{staticClass:"image-wrapper"},[r("div",{staticClass:"discount-badge__wrapper"},[t.hasPriceTier?r("KsDiscountBadge",{staticClass:"badge",attrs:{"html-text":t.$t("Product.VolumeDiscount")}}):t.product.price&&t.product.price.unitDiscount?r("KsDiscountBadge",{attrs:{text:t.$t("Product.DiscountSaveText"),amount:t.discountDisplayValue}}):t._e()],1),t._v(" "),t.url?[r("NcLink",{staticClass:"product-link",attrs:{to:t.url},nativeOn:{click:function(e){return t.trackProductClick()}}},[t.product.image&&t.imageUrl?r("KsImage",{staticClass:"image-wrapper__image",attrs:{image:{url:t.imageUrl,altText:t.imageAltText},sizes:"70px md: 140px"}}):t._e()],1)]:[t.product.image&&t.imageUrl?r("KsImage",{staticClass:"image-wrapper__image",attrs:{image:{url:t.imageUrl,altText:t.imageAltText},sizes:"70px md: 140px"}}):t._e()]],2),t._v(" "),r("div",{staticClass:"content-wrapper"},[r("KsProductCardTop",{attrs:{product:t.product,compact:t.compact},on:{"product-click":t.trackProductClick}}),t._v(" "),r("div",{staticClass:"spacer"}),t._v(" "),r("KsProductCardBottom",{attrs:{product:t.product,compact:t.compact},on:{addToBasket:function(e){return t.$emit("addToBasket")}}})],1)],1):t._e()}),[],!1,null,"64d998d5",null);e.default=component.exports;installComponents(component,{KsProductBadges:r(541).default,KsDiscountBadge:r(526).default,KsImage:r(66).default,KsProductCardTop:r(538).default,KsProductCardBottom:r(564).default})},574:function(t,e,r){"use strict";r(551)},575:function(t,e,r){},578:function(t,e,r){"use strict";r(553)},579:function(t,e,r){},580:function(t,e,r){},584:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=r(1),v=r(0),h=r(26);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var y=function(t){Object(c.a)(r,t);var e=m(r);function r(){return Object(n.a)(this,r),e.apply(this,arguments)}return Object(o.a)(r,[{key:"isFullWidth",get:function(){var t;return"Full-width"===(null===(t=this.product.attributes)||void 0===t?void 0:t.imageForm)}},{key:"isHalfWidth",get:function(){var t;return"Half-width"===(null===(t=this.product.attributes)||void 0===t?void 0:t.imageForm)}},{key:"isNarrow",get:function(){return!this.isHalfWidth&&!this.isFullWidth}},{key:"onAddedToBasket",value:function(){this.$emit("onAddedToBasket")}}]),r}(v.Vue);Object(f.a)([Object(v.Prop)()],y.prototype,"product",void 0),Object(f.a)([Object(v.Prop)(Boolean)],y.prototype,"compact",void 0);var O=y=Object(f.a)([Object(v.Component)({components:{NcLink:h.a}})],y),_=(r(578),r(10)),component=Object(_.a)(O,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"product-card-wrapper"},[t.isFullWidth?r("div",{staticClass:"product-card"},[r("KsProductCardFull",{attrs:{product:t.product,compact:t.compact},on:{addToBasket:t.onAddedToBasket}})],1):t.isHalfWidth?r("div",{staticClass:"product-card"},[r("KsProductCardHalf",{attrs:{product:t.product,compact:t.compact},on:{addToBasket:t.onAddedToBasket}})],1):t.isNarrow?r("div",{staticClass:"product-card"},[r("KsProductCardNarrow",{attrs:{product:t.product,compact:t.compact},on:{addToBasket:t.onAddedToBasket}})],1):t._e()])}),[],!1,null,"43eb2094",null);e.default=component.exports;installComponents(component,{KsProductCardFull:r(610).default,KsProductCardHalf:r(572).default,KsProductCardNarrow:r(573).default})},589:function(t,e,r){},590:function(t,e,r){},596:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=(r(19),r(1)),v=r(0),h=r(118);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var y=function(t){Object(c.a)(r,t);var e=m(r);function r(){var t;return Object(n.a)(this,r),(t=e.apply(this,arguments)).checkbox=!1,t}return Object(o.a)(r,[{key:"toggleCheckbox",value:function(){this.checkbox=!this.checkbox;var t=Object(h.cloneDeep)(this.filter);t.selected=this.checkbox,this.$emit("mutate",t)}},{key:"getLabel",get:function(){return this.label?this.$t("Category.Filters.".concat(this.label)):null}},{key:"mounted",value:function(){this.onFilterUpdateFromParent()}},{key:"onFilterUpdateFromParent",value:function(){this.checkbox=!!this.filter.selected}}]),r}(v.Vue);Object(f.a)([Object(v.Prop)()],y.prototype,"filter",void 0),Object(f.a)([Object(v.Prop)()],y.prototype,"label",void 0),Object(f.a)([Object(v.Watch)("filter")],y.prototype,"onFilterUpdateFromParent",null);var O=y=Object(f.a)([v.Component],y),_=r(10),component=Object(_.a)(O,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("KsCheckbox",{attrs:{selected:t.checkbox,name:t.filter.filterKey,label:t.getLabel},on:{change:t.toggleCheckbox}})],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{KsCheckbox:r(534).default})},600:function(t,e,r){},601:function(t,e,r){},602:function(t,e,r){},603:function(t,e,r){},604:function(t,e,r){},610:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=(r(48),r(47),r(11),r(117),r(1)),v=r(0),h=r(26),m=r(160),y=r(22);function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var _=function(t){Object(c.a)(r,t);var e=O(r);function r(){var t;return Object(n.a)(this,r),(t=e.apply(this,arguments)).ecoBadges=[],t}return Object(o.a)(r,[{key:"getBadgeImage",value:function(t){return Object(y.j)(t)}},{key:"ecologicalBadges",get:function(){var t,e=this;this.ecoBadges=[];for(var r=(null===(t=this.product)||void 0===t?void 0:t.ecologicalBadges)||[],i=0;i<r.length;i++)"EcologicalNaturwine"===r[i]&&r.includes("Ecological")||this.ecoBadges.push(r[i]);return this.ecoBadges.map((function(t){return{name:t,image:e.getBadgeImage(t)}}))}},{key:"url",get:function(){var t=this.product.url;return this.campaignCode?"".concat(t,"?campaignCode=").concat(this.campaignCode):t}},{key:"trackProductClick",value:function(){this.$trackingService.trackProductClick(this.product,this.$route.path,this.index)}},{key:"discountDisplayValue",get:function(){var t,e;return null===(e=null===(t=this.product.price)||void 0===t?void 0:t.unitDiscount)||void 0===e?void 0:e.displayValue}},{key:"isEvent",get:function(){var t;return(null===(t=this.product.attributes)||void 0===t?void 0:t.productType)===m.b.TASTING_EVENT}},{key:"imageUrl",get:function(){return this.product&&this.product.image?this.product.image.url?this.product.image.url:this.product.image.imageUrl?this.product.image.imageUrl:"":""}},{key:"imageAltText",get:function(){return this.product&&this.product.image&&(this.product.image.label||this.product.image.label)?this.product.image.label:""}},{key:"hasPriceTier",get:function(){var t,e;return!!(null===(e=null===(t=this.product.price)||void 0===t?void 0:t.tiers)||void 0===e?void 0:e.length)}}]),r}(v.Vue);Object(f.a)([Object(v.Prop)()],_.prototype,"product",void 0),Object(f.a)([Object(v.Prop)(Boolean)],_.prototype,"compact",void 0),Object(f.a)([Object(v.Prop)(Number)],_.prototype,"index",void 0),Object(f.a)([Object(v.Inject)({from:"campaignCode",default:""})],_.prototype,"campaignCode",void 0);var j=_=Object(f.a)([Object(v.Component)({components:{NcLink:h.a}})],_),C=(r(681),r(10)),component=Object(C.a)(j,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.product?r("div",{staticClass:"product-card__inner",class:{"product-card--event":t.isEvent,"product-card--compact":t.compact}},[t.product.ecologicalBadges?r("KsProductBadges",{attrs:{badges:t.product.ecologicalBadges,"show-modal-content":!t.compact}}):t._e(),t._v(" "),r("div",{staticClass:"image-wrapper"},[r("div",{staticClass:"discount-badge__wrapper"},[t.hasPriceTier?r("KsDiscountBadge",{staticClass:"badge",attrs:{"html-text":t.$t("Product.VolumeDiscount")}}):t.product.price&&t.product.price.unitDiscount?r("KsDiscountBadge",{attrs:{text:t.$t("Product.DiscountSaveText"),amount:t.discountDisplayValue}}):t._e()],1),t._v(" "),r("NcLink",{staticClass:"product-link",attrs:{to:t.url},nativeOn:{click:function(e){return t.trackProductClick()}}},[t.product.image&&t.imageUrl?r("KsImage",{staticClass:"image-wrapper__image",attrs:{image:{url:t.imageUrl,altText:t.imageAltText},sizes:"280px md: 450px"}}):t._e()],1)],1),t._v(" "),r("div",{staticClass:"content-wrapper"},[r("KsProductCardFullTop",{attrs:{product:t.product,compact:t.compact},on:{"product-click":t.trackProductClick}}),t._v(" "),r("div",{staticClass:"spacer"}),t._v(" "),r("KsProductCardFullBottom",{attrs:{product:t.product,compact:t.compact},on:{addToBasket:function(e){return t.$emit("addToBasket")}}})],1)],1):t._e()}),[],!1,null,"678d1ec7",null);e.default=component.exports;installComponents(component,{KsProductBadges:r(541).default,KsDiscountBadge:r(526).default,KsImage:r(66).default,KsProductCardFullTop:r(668).default,KsProductCardFullBottom:r(669).default})},611:function(t,e,r){"use strict";r(575)},612:function(t,e,r){"use strict";r(579)},613:function(t,e,r){"use strict";r(580)},622:function(t,e,r){},623:function(t,e,r){},628:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(6),c=r(7),l=r(3),d=r(1),f=r(0),v=r(707);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(l.a)(t);if(e){var o=Object(l.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(c.a)(this,r)}}var m=function(t){Object(o.a)(r,t);var e=h(r);function r(){return Object(n.a)(this,r),e.apply(this,arguments)}return r}(f.Vue);Object(d.a)([Object(f.ModelSync)("value","change")],m.prototype,"sliderValue",void 0),Object(d.a)([Object(f.Prop)({default:0})],m.prototype,"min",void 0),Object(d.a)([Object(f.Prop)({default:1})],m.prototype,"max",void 0),Object(d.a)([Object(f.Prop)({default:1})],m.prototype,"step",void 0),Object(d.a)([Object(f.Prop)({default:""})],m.prototype,"suffix",void 0);var y=m=Object(d.a)([Object(f.Component)({components:{Slider:v.a}})],m),O=(r(708),r(612),r(10)),component=Object(O.a)(y,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"range-slider"},[r("Slider",{attrs:{format:{suffix:t.suffix},tooltips:!1,min:t.min,max:t.max,step:t.step},model:{value:t.sliderValue,callback:function(e){t.sliderValue=e},expression:"sliderValue"}})],1)}),[],!1,null,"572d9ca8",null);e.default=component.exports},629:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=(r(117),r(1)),v=r(0),h=r(22);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var y=function(t){Object(c.a)(r,t);var e=m(r);function r(){return Object(n.a)(this,r),e.apply(this,arguments)}return Object(o.a)(r,[{key:"itemCount",get:function(){return this.$t("Global.PaginationItemCount",{currentItems:this.currentItems,totalItems:this.totalItems})}},{key:"loadMore",value:function(){var t=this.page;t&&"NaN"!==String(t)||(t=1),Object(h.I)(this.paramName,t+1),this.$emit("pageChange",Number(t+1))}}]),r}(v.Vue);Object(f.a)([Object(v.Prop)(String)],y.prototype,"paramName",void 0),Object(f.a)([Object(v.Prop)(Boolean)],y.prototype,"hasNextPage",void 0),Object(f.a)([Object(v.Prop)(Number)],y.prototype,"page",void 0),Object(f.a)([Object(v.Prop)(Number)],y.prototype,"currentItems",void 0),Object(f.a)([Object(v.Prop)(Number)],y.prototype,"totalItems",void 0),Object(f.a)([Object(v.Prop)(Boolean)],y.prototype,"showCount",void 0);var O=y=Object(f.a)([v.Component],y),_=(r(613),r(10)),component=Object(_.a)(O,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"pagination"},[t.hasNextPage?r("div",{staticClass:"pagination__wrapper"},[r("KsButton",{staticClass:"pagination-button align-self-center",on:{click:t.loadMore}},[t._v("\n "+t._s(t.$t("Global.PaginationButtonText"))+"\n ")])],1):t._e(),t._v(" "),t.currentItems&&t.totalItems?r("div",{staticClass:"pagination__item-count"},[t._v(t._s(t.itemCount))]):t._e()])}),[],!1,null,"f0bb9c4a",null);e.default=component.exports;installComponents(component,{KsButton:r(264).default})},634:function(t,e,r){"use strict";r(589)},635:function(t,e,r){"use strict";r(590)},643:function(t,e,r){"use strict";r.r(e);r(14);var n=r(2),o=r(4),c=r(5),l=r(6),d=r(7),f=r(3),v=(r(20),r(19),r(120),r(1)),h=r(0),m=r(118),y=r(75),O=r.n(y),filter=r(58);function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(f.a)(t);if(e){var o=Object(f.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(d.a)(this,r)}}var j=function(t){Object(l.a)(d,t);var e,r=_(d);function d(){var t;return Object(o.a)(this,d),(t=r.apply(this,arguments)).isFilterContainerOpen=!1,t.isHighlightedOpen=!1,t}return Object(c.a)(d,[{key:"componentName",get:function(){switch(this.filter.filterType){case"Multiple":return"KsFilterTypeMultiple";case"Range":return"KsFilterTypeRange";default:return"div"}}},{key:"haveCombinedFilters",get:function(){var t,e;return(null===(t=this.filter)||void 0===t?void 0:t.bitFilters)&&(null===(e=this.filter)||void 0===e?void 0:e.priceRangeFilter)}},{key:"isSearchPage",get:function(){var t;return"searchPage"===(null===(t=this.route)||void 0===t?void 0:t.contentAlias)}},{key:"isContentListingPage",get:function(){var t;return"contentListingPage"===(null===(t=this.route)||void 0===t?void 0:t.contentAlias)}},{key:"activeFiltersString",get:function(){var filter=this.filter;return(null==filter?void 0:filter.selected)&&filter.selected.length?filter.selected.join(", "):"Range"===(null==filter?void 0:filter.filterType)&&((null==filter?void 0:filter.from)||(null==filter?void 0:filter.to))?"".concat(this.$t("Category.Filters.".concat(filter.filterKey)),": ").concat(this.$t("Category.Filters.from")," ").concat(null==filter?void 0:filter.from," ").concat(this.$t("Category.Filters.to")," ").concat(null==filter?void 0:filter.to):""}},{key:"handleOrderChange",value:function(){this.closeFilterContainer()}},{key:"numSelectedMultiFilters",get:function(){var t,filter=this.filter;return(null===(t=filter.selected)||void 0===t?void 0:t.length)>0?filter.selected.length:0}},{key:"onClickFilterLine",value:function(){if(!this.highlight)return"Multiple"===this.filter.filterType||"Range"===this.filter.filterType?(this.isFilterContainerOpen=!this.isFilterContainerOpen,void(this.isFilterContainerOpen&&this.$emit("open",this.filter))):void("Bit"===this.filter.filterType&&this.$refs.bitFilterCheckboxCompontent.toggleCheckbox());this.isHighlightedOpen=!this.isHighlightedOpen}},{key:"closeFilterContainer",value:function(){this.isFilterContainerOpen=!1}},{key:"handleLocalFilterMutation",value:function(t){var e,r,n,o,c,l,d,f,v=Object(m.cloneDeep)(this.localFilters);if("Multiple"===t.filterType){var h=Object(filter.a)(v.multipleFilters,t.filterKey);if(!v.multipleFilters)return;v.multipleFilters[h]=t}if("Range"===t.filterType){var y=Object(filter.a)(v.rangeFilters,t.filterKey);if(!v.rangeFilters)return;v.rangeFilters[y]=t}if("PriceFilter"===t.filterType&&((null===(e=v.priceFilter)||void 0===e?void 0:e.bitFilters)&&(v.priceFilter.bitFilters=Object(m.cloneDeep)(t.bitFilters)),(null===(r=v.priceFilter)||void 0===r?void 0:r.priceRangeFilter)&&(v.priceFilter.priceRangeFilter=Object(m.cloneDeep)(t.priceRangeFilter),(null===(n=v.priceFilter)||void 0===n?void 0:n.priceRangeFilter.to)&&(null===(o=v.priceFilter)||void 0===o?void 0:o.priceRangeFilter.max)&&(null===(l=null===(c=v.priceFilter)||void 0===c?void 0:c.priceRangeFilter)||void 0===l?void 0:l.to)>(null===(f=null===(d=v.priceFilter)||void 0===d?void 0:d.priceRangeFilter)||void 0===f?void 0:f.max)&&(v.priceFilter.priceRangeFilter.to=v.priceFilter.priceRangeFilter.max))),t.bitFilters){var O=Object(filter.a)(v.bitFilters,t.filterKey);if(!v.bitFilters)return;v.bitFilters[O]=t}if("Bit"===t.filterType){var _=Object(filter.a)(v.bitFilters,t.filterKey);if(!v.bitFilters)return;v.bitFilters[_]=t}this.$store.commit("search/setLocalProductFilters",v)}},{key:"handleFilterMutation",value:(e=Object(n.a)(regeneratorRuntime.mark((function t(e){var r,n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.handleLocalFilterMutation(e),r={},r=Object(filter.f)(window.location.search),this.isContentListingPage?r.page=1:r.productPage=1,this.isContentListingPage||this.$store.commit("search/setProductPageNumber",1),n=Object(filter.e)(this.localFilters,this.$route.path,r),window.history.replaceState(window.history.state,window.document.title,n),o=r.q?r.q:"*",this.isContentListingPage){t.next=12;break}return t.next=10,this.$store.dispatch("search/FETCH_PRODUCTS_FROM_SEARCH",{term:this.isSearchPage?o:"*",url:n,productPage:1,previousPage:0,campaignCode:this.campaignCode,sortBy:this.currentSortOption,isCampaignPage:!!this.campaignCode.length});case 10:t.next=14;break;case 12:return t.next=14,this.$store.dispatch("search/FETCH_CONTENT_FROM_SEARCH",{url:n,page:1,previousPage:0,tags:this.tags});case 14:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),d}(h.Vue);Object(v.a)([Object(h.Prop)({default:""})],j.prototype,"filter",void 0),Object(v.a)([Object(h.Prop)({default:!1})],j.prototype,"highlight",void 0),Object(v.a)([Object(h.Prop)({default:null})],j.prototype,"text",void 0),Object(v.a)([Object(h.Prop)({default:""})],j.prototype,"tags",void 0),Object(v.a)([Object(h.Prop)()],j.prototype,"isParentFilterContainerOpen",void 0),Object(v.a)([Object(h.Prop)()],j.prototype,"totalNumSelectedFilters",void 0),Object(v.a)([Object(h.Getter)("search/localProductFilters")],j.prototype,"localFilters",void 0),Object(v.a)([Object(h.Getter)("route/route")],j.prototype,"route",void 0),Object(v.a)([Object(h.Getter)("search/currentSortOption")],j.prototype,"currentSortOption",void 0),Object(v.a)([Object(h.Inject)({from:"campaignCode",default:""})],j.prototype,"campaignCode",void 0),Object(v.a)([Object(h.Watch)("filter.filterKey")],j.prototype,"handleOrderChange",null);var C=j=Object(v.a)([Object(h.Component)({directives:{ClickOutside:O.a}})],j),F=(r(634),r(10)),component=Object(F.a)(C,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeFilterContainer,expression:"closeFilterContainer"}]},[t.haveCombinedFilters?[r("KsFilterTypePrice",{attrs:{filter:t.filter},on:{localMutate:t.handleLocalFilterMutation,mutate:t.handleFilterMutation}})]:t._e(),t._v(" "),t.haveCombinedFilters?t._e():r("div",{staticClass:"filter-box-wrapper",class:{"filter-box-wrapper--open":t.isFilterContainerOpen,"filter-box-wrapper--highlight":t.highlight}},[r("div",{staticClass:"filter-box-row"},[r("div",{staticClass:"filter-box-col filter-box-left"},[r("div",{staticClass:"filter-box-col__name",on:{click:t.onClickFilterLine}},[t._v("\n "+t._s(t.text||t.$t("Category.Filters."+t.filter.filterKey))+"\n ")]),t._v(" "),t.activeFiltersString.length?r("div",{staticClass:"filter-box-col__active-filters d-md-none"},[t._v(t._s(t.activeFiltersString))]):t._e()]),t._v(" "),r("div",{staticClass:"filter-box-col filter-box-right"},["Bit"===t.filter.filterType?r("div",{staticClass:"checkbox__wrapper"},[r("KsFilterTypeBit",{ref:"bitFilterCheckboxCompontent",attrs:{filter:t.filter},on:{mutate:t.handleFilterMutation}})],1):[!t.isParentFilterContainerOpen&&t.totalNumSelectedFilters&&t.totalNumSelectedFilters>0?r("div",{staticClass:"filter-box-col__filternum-wrapper"},[r("span",[t._v(t._s(t.totalNumSelectedFilters))])]):t._e(),t._v(" "),!t.isParentFilterContainerOpen&&"Multiple"===t.filter.filterType&&t.numSelectedMultiFilters>0?r("div",{staticClass:"filter-box-col__filternum-wrapper"},[r("span",[t._v(t._s(t.numSelectedMultiFilters))])]):t._e(),t._v(" "),r("div",{staticClass:"filter-box-col__icon-wrapper"},[r("button",{staticClass:"filter-box-col__icon-wrapper__button",on:{click:t.onClickFilterLine}},[t.highlight?r("KsIcon",{staticClass:"expand-collapse__icon expand-collapse__icon--plus",class:{"expand-collapse__icon expand-collapse__icon--plus--expanded":t.isHighlightedOpen},attrs:{alias:"close"}}):r("KsIcon",{staticClass:"expand-collapse__icon",class:{"expand-collapse__icon--expanded":t.isFilterContainerOpen},attrs:{alias:"chevron-back"}})],1)])]],2)])]),t._v(" "),"Bit"===t.filter.filterType||t.highlight||t.haveCombinedFilters?t._e():r("div",{staticClass:"filter-box__value-container",class:{"filter-box__value-container--open":t.isFilterContainerOpen}},[r(t.componentName,{tag:"component",attrs:{filter:t.filter,"is-filter-container-open":t.isFilterContainerOpen},on:{localMutate:t.handleLocalFilterMutation,mutate:t.handleFilterMutation}})],1)],2)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{KsFilterTypePrice:r(644).default,KsFilterTypeBit:r(596).default,KsIcon:r(39).default})},644:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=(r(19),r(1)),v=r(118),h=r(0),m=r(75),y=r.n(m),filter=r(58);function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var _=function(t){Object(c.a)(r,t);var e=O(r);function r(){var t;return Object(n.a)(this,r),(t=e.apply(this,arguments)).isFilterContainerOpen=!1,t.isHighlightedOpen=!1,t.originalPriceFilter={},t.hasChangedSinceSubmit=!1,t.isValid=!0,t.temporaryLocalFilter={},t}return Object(o.a)(r,[{key:"created",value:function(){this.temporaryLocalFilter=Object(v.cloneDeep)(this.filter.priceRangeFilter),this.temporaryLocalFilter&&this.temporaryLocalFilter.from&&this.temporaryLocalFilter.min&&(!this.temporaryLocalFilter.from||this.temporaryLocalFilter.from<this.temporaryLocalFilter.min)&&(this.temporaryLocalFilter.from=this.temporaryLocalFilter.min),this.temporaryLocalFilter&&this.temporaryLocalFilter.to&&this.temporaryLocalFilter.max&&(!this.temporaryLocalFilter.to||this.temporaryLocalFilter.to>this.temporaryLocalFilter.max)&&(this.temporaryLocalFilter.to=this.temporaryLocalFilter.min)}},{key:"onOpenChanged",value:function(){this.isFilterContainerOpen&&(this.hasChangedSinceSubmit=!1,this.originalPriceFilter=this.filter.priceRangeFilter)}},{key:"isContentListingPage",get:function(){var t;return"contentListingPage"===(null===(t=this.route)||void 0===t?void 0:t.contentAlias)}},{key:"isSearchPage",get:function(){var t;return"searchPage"===(null===(t=this.route)||void 0===t?void 0:t.contentAlias)}},{key:"filterText",get:function(){var t,e;if(null===(t=this.filter)||void 0===t?void 0:t.priceRangeFilter)return null===(e=this.filter)||void 0===e?void 0:e.priceRangeFilter.filterKey}},{key:"handleValidityChange",value:function(t){this.isValid=t}},{key:"closeFilterContainer",value:function(){if(this.hasChangedSinceSubmit){var t=this.originalPriceFilter;this.handleLocalFilterMutation(t)}this.isFilterContainerOpen=!1}},{key:"onClickFilterLine",value:function(){this.isFilterContainerOpen=!this.isFilterContainerOpen}},{key:"onClickApplyButton",value:function(){var t,e=Object(v.cloneDeep)(null===(t=this.$refs.filterPriceRange)||void 0===t?void 0:t.localCopy);e&&(e.priceRangeFilter=Object(v.cloneDeep)(this.temporaryLocalFilter),this.originalPriceFilter=e,this.handleFilterMutation(e))}},{key:"handleBitMutation",value:function(t){this.handleLocalFilterMutation(t),this.handleFilterMutation(t)}},{key:"handleLocalFilterMutation",value:function(t){var e,r,n,o,c=Object(v.cloneDeep)(this.filter);if("PriceRange"===t.filterType&&(c.priceRangeFilter=t,(null===(e=this.originalPriceFilter)||void 0===e?void 0:e.to)!==(null===(r=c.priceRangeFilter)||void 0===r?void 0:r.to)||(null===(n=this.originalPriceFilter)||void 0===n?void 0:n.from)!==(null===(o=c.priceRangeFilter)||void 0===o?void 0:o.from)?this.hasChangedSinceSubmit=!0:this.hasChangedSinceSubmit=!1),"Bit"===t.filterType){var l=Object(filter.a)(c.bitFilters,t.filterKey);if(!c.bitFilters)return;c.bitFilters[l]=t}this.$emit("localMutate",c)}},{key:"handlePriceRangeLocalFilterMutation",value:function(t){this.temporaryLocalFilter=Object(v.cloneDeep)(t)}},{key:"handleFilterMutation",value:function(t){var e=Object(v.cloneDeep)(this.filter);if("PriceRange"===t.filterType&&(e.priceRangeFilter=t),"Bit"===t.filterType){var r=Object(filter.a)(e.bitFilters,t.filterKey);if(!e.bitFilters)return;e.bitFilters[r]=t}this.$emit("mutate",e)}}]),r}(h.Vue);Object(f.a)([Object(h.Prop)()],_.prototype,"filter",void 0),Object(f.a)([Object(h.Prop)({default:null})],_.prototype,"text",void 0),Object(f.a)([Object(h.Prop)({default:!1})],_.prototype,"highlight",void 0),Object(f.a)([Object(h.Getter)("search/localProductFilters")],_.prototype,"localFilters",void 0),Object(f.a)([Object(h.Getter)("route/route")],_.prototype,"route",void 0),Object(f.a)([Object(h.Watch)("isFilterContainerOpen")],_.prototype,"onOpenChanged",null);var j=_=Object(f.a)([Object(h.Component)({directives:{ClickOutside:y.a}})],_),C=(r(653),r(10)),component=Object(C.a)(j,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeFilterContainer,expression:"closeFilterContainer"}]},[r("div",{staticClass:"filter-box-wrapper",class:{"filter-box-wrapper--open":t.isFilterContainerOpen}},[r("div",{staticClass:"filter-box-row"},[r("div",{staticClass:"filter-box-col filter-box-left",on:{click:t.onClickFilterLine}},[r("div",{staticClass:"filter-box-col__name"},[t._v("\n "+t._s(t.$t("Category.Filters."+t.filter.filterType))+"\n ")])]),t._v(" "),r("div",{staticClass:"filter-box-col filter-box-right"},[r("div",{staticClass:"filter-box-col__icon-wrapper"},[r("button",{staticClass:"filter-box-col__icon-wrapper__button",on:{click:t.onClickFilterLine}},[t.highlight?r("KsIcon",{staticClass:"expand-collapse__icon expand-collapse__icon--plus",attrs:{alias:"close"}}):r("KsIcon",{staticClass:"expand-collapse__icon",class:{"expand-collapse__icon--expanded":t.isFilterContainerOpen},attrs:{alias:"chevron-back"}})],1)])])])]),t._v(" "),r("div",{staticClass:"filter-box__value-container",class:{"filter-box__value-container--open":t.isFilterContainerOpen}},[t.filter.priceRangeFilter?r("div",{staticClass:"filter-checkbox__input-wrapper"},[r("KsFilterTypePriceRange",{ref:"filterPriceRange",attrs:{filter:t.filter.priceRangeFilter,"is-filter-container-open":t.isFilterContainerOpen},on:{localMutate:t.handleLocalFilterMutation,mutate:t.handleFilterMutation,validityChange:t.handleValidityChange}})],1):t._e(),t._v(" "),t.filter.bitFilters?r("div",{staticClass:"filter-checkbox__container"},[r("div",{staticClass:"container"},t._l(t.filter.bitFilters,(function(e,n){return r("div",{key:e.filterKey+"_"+n,staticClass:"filter-checkbox__wrapper"},[r("KsFilterTypeBit",{ref:"bitFilterCheckboxCompontent",refInFor:!0,class:"filter-checkbox__field",attrs:{filter:e,label:e.filterKey},on:{mutate:t.handleBitMutation}}),t._v(" "),r("p",{staticClass:"filter-checkbox__true-hit"},[t._v("("+t._s(e.trueHits)+")")])],1)})),0),t._v(" "),r("div",{staticClass:"container"},[r("div",{staticClass:"filter-price-button"},[r("KsButton",{staticClass:"button",attrs:{disabled:!t.isValid},on:{click:t.onClickApplyButton}},[t._v(t._s(t.$t("Category.Filters.apply")))])],1)])]):t._e()])])}),[],!1,null,"e30d50ca",null);e.default=component.exports;installComponents(component,{KsIcon:r(39).default,KsFilterTypePriceRange:r(645).default,KsFilterTypeBit:r(596).default,KsButton:r(264).default})},645:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=(r(19),r(1)),v=r(0),h=r(118);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var y=function(t){Object(c.a)(r,t);var e=m(r);function r(){var t;return Object(n.a)(this,r),(t=e.apply(this,arguments)).isValid=!0,t.sliderValues=[0,1],t.initialRender=!0,t}return Object(o.a)(r,[{key:"thisFilter",get:function(){var t;return null===(t=this.localFilters.priceFilter)||void 0===t?void 0:t.priceRangeFilter}},{key:"calculatedMinForMin",get:function(){var t;return(null===(t=this.filter)||void 0===t?void 0:t.min)||0}},{key:"sliderMaxforMax",get:function(){return this.calculatedMaxForMax===this.calculatedMinForMin?this.calculatedMaxForMax+1:this.calculatedMaxForMax}},{key:"calculatedMaxForMin",get:function(){var t,e,r,n;return(null===(t=this.thisFilter)||void 0===t?void 0:t.to)&&(null===(e=this.thisFilter)||void 0===e?void 0:e.min)&&(null===(r=this.thisFilter)||void 0===r?void 0:r.to)>=(null===(n=this.thisFilter)||void 0===n?void 0:n.min)?this.thisFilter.to:this.filter.max||0}},{key:"calculatedMinForMax",get:function(){var t;return(null===(t=this.thisFilter)||void 0===t?void 0:t.from)?this.thisFilter.from:this.filter.min||0}},{key:"calculatedMaxForMax",get:function(){var t;return(null===(t=this.filter)||void 0===t?void 0:t.max)||9999}},{key:"calculatedMinValue",get:function(){var t,e,r,n,o;return null!==(null===(t=this.thisFilter)||void 0===t?void 0:t.from)&&void 0!==(null===(e=this.thisFilter)||void 0===e?void 0:e.from)?this.thisFilter.from>0?String(this.thisFilter.from):"":null!==(null===(r=this.thisFilter)||void 0===r?void 0:r.min)&&void 0!==(null===(n=this.thisFilter)||void 0===n?void 0:n.min)?String(null===(o=this.thisFilter)||void 0===o?void 0:o.min):""}},{key:"calculatedMaxValue",get:function(){var t,e,r;return null!==(null===(t=this.thisFilter)||void 0===t?void 0:t.to)&&void 0!==(null===(e=this.thisFilter)||void 0===e?void 0:e.to)?this.thisFilter.to>0?String(this.thisFilter.to):"0":String((null===(r=this.thisFilter)||void 0===r?void 0:r.max)||"0")}},{key:"created",value:function(){this.setSliderValues([this.calculatedMinValue,this.calculatedMaxValue])}},{key:"checkInputValidity",value:function(){var t,e;this.isValid=(null===(t=this.$refs.minField)||void 0===t?void 0:t.isValid)&&(null===(e=this.$refs.maxField)||void 0===e?void 0:e.isValid),this.$emit("validityChange",this.isValid)}},{key:"handleInput",value:function(t,e){var r=this;if(Array.isArray(t)&&Array.isArray(e))for(var i=0;i<t.length;i++)this.setLocalState(t[i],e[i]);else{this.setLocalState(t,e);var n=parseInt(e,10);"max"===t&&n>=this.calculatedMinForMax&&n<=this.calculatedMaxForMax&&this.setSliderValues([this.calculatedMinValue,this.calculatedMaxValue]),"min"===t&&n>=this.calculatedMinForMin&&n<=this.calculatedMaxForMin&&this.setSliderValues([this.calculatedMinValue,this.calculatedMaxValue])}setTimeout((function(){r.checkInputValidity()}))}},{key:"setSliderValues",value:function(t){this.sliderValues=t}},{key:"setLocalState",value:function(t,e){var r=Object(h.cloneDeep)(this.thisFilter),n=parseInt(e,10);isNaN(n)&&(n=null),"min"===t&&(r.from=null!=n?n:0),"max"===t&&(r.to=null!=n?n:0),this.localCopy=r,this.$emit("localMutate",r)}},{key:"triggerMutation",value:function(){this.$emit("mutate",this.localCopy)}},{key:"onSliderValueChange",value:function(){this.initialRender?this.initialRender=!1:this.handleInput(["min","max"],this.sliderValues)}},{key:"onFilterChange",value:function(){null===this.filter.from&&this.sliderValues[0]!==this.filter.min&&(this.sliderValues[0]=this.filter.min),null===this.filter.to&&this.sliderValues[1]!==this.filter.max&&(this.sliderValues[1]=this.filter.max)}},{key:"onIsFilterContainerOpenChanged",value:function(t,e){t&&!e&&this.checkInputValidity()}}]),r}(v.Vue);Object(f.a)([Object(v.Prop)()],y.prototype,"filter",void 0),Object(f.a)([Object(v.Prop)()],y.prototype,"isFilterContainerOpen",void 0),Object(f.a)([Object(v.Getter)("search/localProductFilters")],y.prototype,"localFilters",void 0),Object(f.a)([Object(v.Getter)("search/loading")],y.prototype,"isLoading",void 0),Object(f.a)([Object(v.Watch)("sliderValues")],y.prototype,"onSliderValueChange",null),Object(f.a)([Object(v.Watch)("filter",{deep:!0})],y.prototype,"onFilterChange",null),Object(f.a)([Object(v.Watch)("isFilterContainerOpen")],y.prototype,"onIsFilterContainerOpenChanged",null);var O=y=Object(f.a)([v.Component],y),_=(r(635),r(10)),component=Object(_.a)(O,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"container"},[r("div",{staticClass:"filter-price-range"},[r("p",{staticClass:"filter-price-range__heading"},[t._v("\n "+t._s(t.$t("Category.Filters.RangeHeading"))+"\n ")]),t._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"col-xs-6 p-relative"},[r("div",{staticClass:"filter-price-range__input-wrapper"},[r("KsInput",{ref:"minField",staticClass:"filter-price-range__input",attrs:{readonly:t.isLoading,placeholder:t.calculatedMinForMin,value:t.calculatedMinValue,"validation-rules":"required|numeric|min_value:"+t.calculatedMinForMin+"|max_value:"+t.calculatedMaxForMin,"validation-mode":"aggressive"},on:{input:function(e){return t.handleInput("min",e)},blur:t.checkInputValidity}}),t._v(" "),r("div",{staticClass:"filter-price-range__postfix"},[t._v("\n "+t._s(t.filter.postFix)+"\n ")])],1),t._v(" "),r("div",{staticClass:"filter-dash"})]),t._v(" "),r("div",{staticClass:"col-xs-6"},[r("div",{staticClass:"filter-price-range__input-wrapper"},[r("KsInput",{ref:"maxField",staticClass:"filter-price-range__input",attrs:{readonly:t.isLoading,placeholder:t.calculatedMaxForMax,value:t.calculatedMaxValue,"validation-rules":"required|numeric|min_value:"+t.calculatedMinForMax+"|max_value:"+t.calculatedMaxForMax,"validation-mode":"aggressive"},on:{input:function(e){return t.handleInput("max",e)},blur:t.checkInputValidity}}),t._v(" "),r("div",{staticClass:"filter-price-range__postfix"},[t._v("\n "+t._s(t.filter.postFix)+"\n ")])],1)])])]),t._v(" "),r("div",{staticClass:"slider"},[r("KsRangeSlider",{attrs:{min:t.calculatedMinForMin,max:t.sliderMaxforMax,step:1,suffix:t.filter.postFix},model:{value:t.sliderValues,callback:function(e){t.sliderValues=e},expression:"sliderValues"}})],1)])}),[],!1,null,"0bed2d3a",null);e.default=component.exports;installComponents(component,{KsInput:r(265).default,KsRangeSlider:r(628).default})},650:function(t,e,r){"use strict";r(600)},651:function(t,e,r){"use strict";r(601)},653:function(t,e,r){"use strict";r(602)},654:function(t,e,r){"use strict";r(603)},655:function(t,e,r){"use strict";r(604)},656:function(t,e,r){},668:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=r(1),v=r(0),h=r(26),m=r(160);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var O=function(t){Object(c.a)(r,t);var e=y(r);function r(){return Object(n.a)(this,r),e.apply(this,arguments)}return Object(o.a)(r,[{key:"emitProductClick",value:function(){this.$emit("product-click")}},{key:"url",get:function(){var t=this.product.url;return this.campaignCode?"".concat(t,"?campaignCode=").concat(this.campaignCode):t}},{key:"shouldShowReadMoreLink",get:function(){var t;return!!this.product.description&&(null===(t=this.product.description)||void 0===t?void 0:t.length)>112}},{key:"haveReviews",get:function(){var t,e;return!!(null===(e=null===(t=this.product)||void 0===t?void 0:t.reviews)||void 0===e?void 0:e.length)}},{key:"isEvent",get:function(){var t;return(null===(t=this.product.attributes)||void 0===t?void 0:t.productType)===m.b.TASTING_EVENT}}]),r}(v.Vue);Object(f.a)([Object(v.Prop)()],O.prototype,"product",void 0),Object(f.a)([Object(v.Prop)(Boolean)],O.prototype,"compact",void 0),Object(f.a)([Object(v.Inject)({from:"campaignCode",default:""})],O.prototype,"campaignCode",void 0);var _=O=Object(f.a)([Object(v.Component)({components:{NcLink:h.a}})],O),j=(r(650),r(10)),component=Object(j.a)(_,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"product-description",class:{"product-description--no-description":!t.product.description,"product-description--compact":t.compact}},[r("div",{staticClass:"product-description__content",class:{"product-description__content--has-meta":t.isEvent}},[t.product.attributes&&t.product.attributes.brand?r("div",{staticClass:"product-description__product-brand"},[t._v("\n "+t._s(t.product.attributes.brand)+"\n ")]):t._e(),t._v(" "),r("NcLink",{staticClass:"product-link",attrs:{to:t.url}},[r("h3",{staticClass:"product-link__name",on:{click:function(e){return t.emitProductClick()}}},[t._v("\n "+t._s(t.product.name)+"\n ")])]),t._v(" "),t.product.attributes&&t.product.attributes.originCountryIso&&!t.isEvent?r("KsProductRegion",{staticClass:"product-description__region",attrs:{"has-small-text":!0,"product-attributes":t.product.attributes}}):t._e(),t._v(" "),t.product.description?r("div",{staticClass:"description-wrapper d-none d-md-block"},[t.product.description?r("p",{staticClass:"product-description__description"},[t._v("\n "+t._s(t.product.description)+"\n ")]):t._e(),t._v(" "),t.shouldShowReadMoreLink?r("NcLink",{staticClass:"product-description__read-more",attrs:{to:t.url},nativeOn:{click:function(e){return t.emitProductClick()}}},[t._v("\n "+t._s(t.$t("Product.ReadMore"))+"\n ")]):t._e()],1):t._e(),t._v(" "),t.haveReviews?r("div",{staticClass:"review-wrapper"},[r("KsProductReview",{attrs:{product:t.product,compact:!0}})],1):t._e()],1),t._v(" "),t.isEvent?r("div",{staticClass:"product-description__meta"},[r("KsProductEventMetaDisplay",{attrs:{attributes:t.product.attributes}})],1):t._e()])}),[],!1,null,"1c37d952",null);e.default=component.exports;installComponents(component,{KsProductRegion:r(266).default,KsProductReview:r(548).default,KsProductEventMetaDisplay:r(549).default})},669:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=(r(19),r(1)),v=r(0),h=r(586),m=r.n(h),y=r(160);function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var _=function(t){Object(c.a)(r,t);var e=O(r);function r(){var t;return Object(n.a)(this,r),(t=e.apply(this,arguments)).purchaseAmount=1,t.initialQuantity=0,t}return Object(o.a)(r,[{key:"created",value:function(){var t;if(this.hasPriceTier||this.unitsPerParcel){var e=null===(t=m()(this.productPriceTiers,(function(t){return t.minimumQuantity})))||void 0===t?void 0:t.minimumQuantity,r=this.unitsPerParcel||1;r>1&&(this.initialQuantity=r),this.hasPriceTier&&(this.initialQuantity=e),this.purchaseAmount!==this.initialQuantity&&this.updatePurchaseAmount(this.initialQuantity)}}},{key:"hasPriceTier",get:function(){var t;return!!(null===(t=this.productPriceTiers)||void 0===t?void 0:t.length)}},{key:"unitsPerParcel",get:function(){var t;return null===(t=this.product.attributes)||void 0===t?void 0:t.unitsPerParcel}},{key:"updatePurchaseAmount",value:function(t){this.purchaseAmount=t}},{key:"handlePriceTierChange",value:function(t){this.updatePurchaseAmount(t.minimumQuantity)}},{key:"productPriceTiers",get:function(){var t;return null===(t=this.product.price)||void 0===t?void 0:t.tiers}},{key:"saving",get:function(){return this.priceTier&&this.priceTier.savedAmount&&this.priceTier.savedAmount.displayValue?this.priceTier.savedAmount.displayValue:""}},{key:"originalPrice",get:function(){return this.product.price&&this.product.price.originalUnitPrice&&this.product.price.originalUnitPrice.displayValue?this.product.price.originalUnitPrice.displayValue:""}},{key:"productPrice",get:function(){return this.priceTier&&this.priceTier.unitPrice&&this.priceTier.unitPrice.displayValue?this.priceTier.unitPrice.displayValue:this.product.price&&this.product.price.unitPrice&&this.product.price.unitPrice.displayValue?this.product.price.unitPrice.displayValue:""}},{key:"priceTier",get:function(){var t,e=this,r=null===(t=this.productPriceTiers)||void 0===t?void 0:t.filter((function(t){return t.minimumQuantity<=e.purchaseAmount}));return m()(r,(function(t){return t.minimumQuantity}))}},{key:"isEvent",get:function(){var t;return(null===(t=this.product.attributes)||void 0===t?void 0:t.productType)===y.b.TASTING_EVENT}}]),r}(v.Vue);Object(f.a)([Object(v.Prop)()],_.prototype,"product",void 0),Object(f.a)([Object(v.Prop)(Boolean)],_.prototype,"compact",void 0);var j=_=Object(f.a)([v.Component],_),C=(r(651),r(10)),component=Object(C.a)(j,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"bottom-content",class:{"bottom-content--compact":t.compact}},[r("transition",{attrs:{name:"fade"}},[t.priceTier?r("div",{staticClass:"bulk-amount"},[r("span",{staticClass:"bulk-amount__text"},[t._v(t._s(t.$t("Product.PriceAtDiscount",{productAmount:t.priceTier.minimumQuantity})))]),t._v(" "),r("KsTag",[t._v(t._s(t.$t("Product.BulkDiscount")))])],1):t._e()]),t._v(" "),r("KsProductPrice",{staticClass:"product-price-wrapper",attrs:{"is-card":!0,saving:t.saving,"product-price":t.productPrice,"original-price":t.originalPrice,"is-event":t.isEvent}}),t._v(" "),t.product&&t.productPriceTiers&&t.productPriceTiers.length&&!t.compact?r("KsProductPriceTiers",{staticClass:"price-tiers",attrs:{"price-tiers":t.productPriceTiers,"product-default-price":t.product.price.unitPrice,"is-product-card":!0,"current-price-tier":t.priceTier},on:{changedPriceTier:t.handlePriceTierChange}}):t._e(),t._v(" "),r("KsProductBasketButton",{staticClass:"basket-button",class:{"bakset-button--compact":t.compact},attrs:{"inventory-status":t.product.inventoryStatus,"product-id":t.product.id,"updated-amount":t.purchaseAmount},on:{updateValue:t.updatePurchaseAmount,addToBasket:function(e){return t.$emit("addToBasket")}}})],1)}),[],!1,null,"18c83476",null);e.default=component.exports;installComponents(component,{KsTag:r(638).default,KsProductPrice:r(639).default,KsProductPriceTiers:r(640).default,KsProductBasketButton:r(550).default})},670:function(t,e,r){"use strict";r.r(e);r(14);var n=r(29),o=r(4),c=r(5),l=r(6),d=r(7),f=r(3),v=(r(19),r(18),r(119),r(164),r(1)),h=r(0),m=r(75),y=r.n(m),O=r(22),filter=r(58);function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(f.a)(t);if(e){var o=Object(f.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(d.a)(this,r)}}var j=function(t){Object(l.a)(r,t);var e=_(r);function r(){var t;return Object(o.a)(this,r),(t=e.apply(this,arguments)).sortOptionsOpen=!1,t}return Object(c.a)(r,[{key:"isSearchPage",get:function(){var t;return"searchPage"===(null===(t=this.route)||void 0===t?void 0:t.contentAlias)}},{key:"productPageNumber",get:function(){return this.$store.getters["search/productPageNumber"]}},{key:"filteredOptions",get:function(){var t=this;return Object.keys(this.options).filter((function(e){return e!==t.selectedOption}))}},{key:"selectedOption",get:function(){var t=this;return Object.keys(this.options).find((function(e){return t.options[e]===t.currentSortOption}))}},{key:"toggleOpenContainer",value:function(){this.sortOptionsOpen=!this.sortOptionsOpen}},{key:"closeContainer",value:function(){this.sortOptionsOpen=!1}},{key:"toggleSelectedOption",value:function(t){var e=this,r=Object.entries(this.options).find((function(r){var o=Object(n.a)(r,2),c=(o[0],o[1]);return e.options[t]===c}));this.$store.commit("search/setCurrentSortOption",r[1]);var o={};o=Object(filter.d)(window.location.href);var c=Object(filter.e)(this.localFilters,this.$route.path,o),l=o.term?o.term:"*";Object(O.I)("sortBy",r[1]),this.$store.dispatch("search/FETCH_PRODUCTS_FROM_SEARCH",{term:this.isSearchPage?l:"*",url:c,productPage:this.productPageNumber,previousPage:0,sortBy:this.currentSortOption,campaignCode:this.campaignCode,isCampaignPage:!!this.campaignCode}),this.closeContainer()}}]),r}(h.Vue);Object(v.a)([Object(h.Prop)()],j.prototype,"options",void 0),Object(v.a)([Object(h.Getter)("search/currentSortOption")],j.prototype,"currentSortOption",void 0),Object(v.a)([Object(h.Getter)("search/localProductFilters")],j.prototype,"localFilters",void 0),Object(v.a)([Object(h.Getter)("route/route")],j.prototype,"route",void 0),Object(v.a)([Object(h.Inject)({from:"campaignCode",default:""})],j.prototype,"campaignCode",void 0);var C=j=Object(v.a)([Object(h.Component)({directives:{ClickOutside:y.a}})],j),F=(r(654),r(10)),component=Object(F.a)(C,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeContainer,expression:"closeContainer"}]},[r("div",{staticClass:"sort-options ml-auto p-relative",class:{"sort-options--open":t.sortOptionsOpen}},[r("div",{staticClass:"sort-options__box d-flex flex-row align-items-center ",on:{click:t.toggleOpenContainer}},[r("div",{staticClass:"sort-options__name"},[t._v("\n "+t._s(t.$t("Category.Sorting."+t.selectedOption))+"\n ")]),t._v(" "),r("div",{staticClass:"icon-container"},[r("KsIcon",{staticClass:"expand-collapse__icon",class:{"expand-collapse__icon--expanded":t.sortOptionsOpen},attrs:{alias:"chevron-back"}})],1)])]),t._v(" "),r("div",[t.sortOptionsOpen?r("ul",{staticClass:"sort-options__container",class:{"sort-options__container--open":t.sortOptionsOpen}},t._l(t.filteredOptions,(function(option,e){return r("li",{key:e,on:{click:function(e){return t.toggleSelectedOption(option)}}},[r("div",{staticClass:"display-name"},[t._v("\n "+t._s(t.$t("Category.Sorting."+option))+"\n ")])])})),0):t._e()])])}),[],!1,null,"66daea29",null);e.default=component.exports;installComponents(component,{KsIcon:r(39).default})},671:function(t,e,r){"use strict";r.r(e);r(14),r(18),r(16),r(23),r(24);var n=r(2),o=r(12),c=r(4),l=r(5),d=r(6),f=r(7),v=r(3),h=(r(20),r(19),r(119),r(120),r(1)),m=r(0),y=r(118),O=r(58);function _(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(v.a)(t);if(e){var o=Object(v.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(f.a)(this,r)}}var C=function(t){Object(d.a)(f,t);var e,r=j(f);function f(){var t;return Object(c.a)(this,f),(t=r.apply(this,arguments)).selectedFilters=[],t}return Object(l.a)(f,[{key:"updateSelected",value:function(){this.setSelectedFilters()}},{key:"created",value:function(){this.setSelectedFilters()}},{key:"hasFiltersOfType",value:function(t){return t in this.selectedFilters&&this.selectedFilters[t].length}},{key:"handleClickTag",value:function(filter){this.handleFilterMutation(filter)}},{key:"getLabel",value:function(filter){return(null==filter?void 0:filter.value)?filter.value:"Bit"===(null==filter?void 0:filter.filterType)&&(null==filter?void 0:filter.filterKey)?this.$t("Category.Filters.".concat(filter.filterKey)):"Range"===(null==filter?void 0:filter.filterType)&&((null==filter?void 0:filter.from)||(null==filter?void 0:filter.to))?"".concat(this.$t("Category.Filters.".concat(filter.filterKey)),": ").concat(this.$t("Category.Filters.from")," ").concat(null==filter?void 0:filter.from," ").concat(this.$t("Category.Filters.to")," ").concat(null==filter?void 0:filter.to):""}},{key:"setSelectedFilters",value:function(){var t,e,r,n,c,l,d,f=this,v={rangeFilters:[],bitFilters:[],multipleFilters:[],priceBitFilters:[],priceRangeFilters:[]};if(["rangeFilters","bitFilters"].forEach((function(t){if(t in f.remoteFilters&&f.remoteFilters[t].length){var e={};e="bitFilters"===t?f.remoteFilters[t].filter((function(filter){return null==filter?void 0:filter.selected})):f.remoteFilters[t].filter((function(filter){return(null==filter?void 0:filter.from)&&(null==filter?void 0:filter.to)})),v[t]=e}})),null===(e=null===(t=this.remoteFilters)||void 0===t?void 0:t.priceFilter)||void 0===e?void 0:e.priceRangeFilter){var h=null===(n=null===(r=this.remoteFilters)||void 0===r?void 0:r.priceFilter)||void 0===n?void 0:n.priceRangeFilter;null===h.from&&null===h.to||v.priceRangeFilters.push({filterKey:h.filterKey,filterType:h.filterType,hits:1,value:"".concat(h.from," ").concat(h.postFix?h.postFix:""," - ").concat(h.to," ").concat(h.postFix?h.postFix:"")})}(null===(l=null===(c=this.remoteFilters)||void 0===c?void 0:c.priceFilter)||void 0===l?void 0:l.bitFilters)&&this.remoteFilters.priceFilter.bitFilters.forEach((function(t){(null==t?void 0:t.selected)&&v.priceBitFilters.push({filterKey:t.filterKey,filterType:"PriceBit",hits:t.trueHits,value:f.$t("Category.Filters.".concat(t.filterKey))})})),(null===(d=this.remoteFilters)||void 0===d?void 0:d.multipleFilters)&&this.remoteFilters.multipleFilters.length&&this.remoteFilters.multipleFilters.forEach((function(t){var e,r;if((null===(e=null==t?void 0:t.selected)||void 0===e?void 0:e.length)&&(null===(r=null==t?void 0:t.options)||void 0===r?void 0:r.length)){var n=[];t.selected.forEach((function(e){var r=t.options.find((function(option){return(null==option?void 0:option.value)===e}));if(r){var option=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?_(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):_(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({filterKey:null==t?void 0:t.filterKey,filterType:null==t?void 0:t.filterType},r);n.push(option)}})),v.multipleFilters=v.multipleFilters.concat(n)}})),this.selectedFilters=v}},{key:"isMultipleAndSelected",value:function(filter){return"Multiple"===filter.filterType&&(null==filter?void 0:filter.options)&&filter.options.length}},{key:"isSearchPage",get:function(){var t;return"searchPage"===(null===(t=this.route)||void 0===t?void 0:t.contentAlias)}},{key:"isContentListingPage",get:function(){var t;return"contentListingPage"===(null===(t=this.route)||void 0===t?void 0:t.contentAlias)}},{key:"handleLocalFilterMutation",value:function(t){var e,r,n,o=Object(y.cloneDeep)(this.remoteFilters);if("Multiple"===t.filterType){var c=Object(O.a)(o.multipleFilters,t.filterKey);if(!o.multipleFilters)return;o.multipleFilters[c]=t}if("Range"===t.filterType){var l=Object(O.a)(o.rangeFilters,t.filterKey);if(!o.rangeFilters)return;o.rangeFilters[l]=t}if("Bit"===t.filterType){var d=Object(O.a)(o.bitFilters,t.filterKey);if(!o.bitFilters)return;o.bitFilters[d]=t}if("PriceBit"===t.filterType){var f=Object(O.a)(null===(e=o.priceFilter)||void 0===e?void 0:e.bitFilters,t.filterKey);if(!(null===(r=o.priceFilter)||void 0===r?void 0:r.bitFilters))return;o.priceFilter.bitFilters[f]=t}if("PriceRange"===t.filterType){if(!(null===(n=o.priceFilter)||void 0===n?void 0:n.priceRangeFilter))return;o.priceFilter.priceRangeFilter=t}this.$store.commit("search/setLocalProductFilters",o)}},{key:"handleFilterMutation",value:(e=Object(n.a)(regeneratorRuntime.mark((function t(filter){var e,r,n,o,c,l,d,f,v,h,m,_,j,C,F,k,P,x,R,w,T;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("Multiple"!==(null==filter?void 0:filter.filterType)){t.next=10;break}if(C=null===(r=null===(e=this.remoteFilters)||void 0===e?void 0:e.multipleFilters)||void 0===r?void 0:r.find((function(t){return(null==t?void 0:t.filterKey)===(null==filter?void 0:filter.filterKey)}))){t.next=4;break}return t.abrupt("return",!1);case 4:if(void 0!==(j=Object(y.cloneDeep)(C)).selected&&null!==j.selected){t.next=7;break}return t.abrupt("return",!1);case 7:j.selected=null===(n=j.selected)||void 0===n?void 0:n.filter((function(t){return t!==filter.value})),t.next=39;break;case 10:if("Range"!==filter.filterType){t.next=17;break}F=null===(c=null===(o=this.remoteFilters)||void 0===o?void 0:o.rangeFilters)||void 0===c?void 0:c.find((function(t){return t.filterKey===filter.filterKey})),(j=Object(y.cloneDeep)(F)).from=null,j.to=null,t.next=39;break;case 17:if("Bit"!==filter.filterType){t.next=23;break}k=null===(d=null===(l=this.remoteFilters)||void 0===l?void 0:l.bitFilters)||void 0===d?void 0:d.find((function(t){return t.filterKey===filter.filterKey})),(j=Object(y.cloneDeep)(k)).selected=!1,t.next=39;break;case 23:if("PriceBit"!==filter.filterType){t.next=30;break}P=null===(h=null===(v=null===(f=this.remoteFilters)||void 0===f?void 0:f.priceFilter)||void 0===v?void 0:v.bitFilters)||void 0===h?void 0:h.find((function(t){return t.filterKey===filter.filterKey})),(j=Object(y.cloneDeep)(P)).filterType="PriceBit",j.selected=!1,t.next=39;break;case 30:if("PriceRange"!==filter.filterType){t.next=38;break}x=null===(_=null===(m=this.remoteFilters)||void 0===m?void 0:m.priceFilter)||void 0===_?void 0:_.priceRangeFilter,(j=Object(y.cloneDeep)(x)).selected=!1,j.from=null,j.to=null,t.next=39;break;case 38:return t.abrupt("return",!1);case 39:if(this.handleLocalFilterMutation(j),R={},R=Object(O.f)(window.location.search),this.isContentListingPage?R.page=1:R.productPage=1,this.isContentListingPage||this.$store.commit("search/setProductPageNumber",1),w=Object(O.e)(this.localFilters,this.$route.path,R),window.history.replaceState(window.history.state,window.document.title,w),T=R.q?R.q:"*",this.isContentListingPage){t.next=51;break}return t.next=49,this.$store.dispatch("search/FETCH_PRODUCTS_FROM_SEARCH",{term:this.isSearchPage?T:"*",url:w,productPage:1,previousPage:0,campaignCode:this.campaignCode,sortBy:this.currentSortOption,isCampaignPage:!!this.campaignCode.length});case 49:t.next=53;break;case 51:return t.next=53,this.$store.dispatch("search/FETCH_CONTENT_FROM_SEARCH",{url:w,page:1,previousPage:0});case 53:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),f}(m.Vue);Object(h.a)([Object(m.Getter)("search/productFilters")],C.prototype,"remoteFilters",void 0),Object(h.a)([Object(m.Getter)("search/localProductFilters")],C.prototype,"localFilters",void 0),Object(h.a)([Object(m.Getter)("route/route")],C.prototype,"route",void 0),Object(h.a)([Object(m.Getter)("search/currentSortOption")],C.prototype,"currentSortOption",void 0),Object(h.a)([Object(m.Inject)({from:"campaignCode",default:""})],C.prototype,"campaignCode",void 0),Object(h.a)([Object(m.Watch)("remoteFilters")],C.prototype,"updateSelected",null);var F=C=Object(h.a)([m.Component],C),k=(r(655),r(10)),component=Object(k.a)(F,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"filter-wrapper__tags"},[t._l(["multipleFilters","rangeFilters","bitFilters","priceBitFilters","priceRangeFilters"],(function(e,n){return[t.hasFiltersOfType(e)?t._l(t.selectedFilters[e],(function(e,o){return r("div",{key:"filter_"+n+"_tag_"+o},[r("button",{staticClass:"filter-wrapper__tag button",on:{click:function(r){return t.handleClickTag(e)}}},[r("span",[t._v(t._s(t.getLabel(e)))]),t._v(" "),r("KsIcon",{staticClass:"close-icon",attrs:{alias:"close"}})],1)])})):t._e()]})),t._v(" "),t._t("default")],2)}),[],!1,null,"3f492b56",null);e.default=component.exports;installComponents(component,{KsIcon:r(39).default})},681:function(t,e,r){"use strict";r(622)},682:function(t,e,r){"use strict";r(623)},730:function(t,e,r){"use strict";r.r(e);r(14);var n=r(4),o=r(5),c=r(6),l=r(7),d=r(3),f=(r(19),r(1)),v=r(0),h=r(22);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(d.a)(t);if(e){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(l.a)(this,r)}}var y=function(t){Object(c.a)(r,t);var e=m(r);function r(){var t;return Object(n.a)(this,r),(t=e.apply(this,arguments)).isFilterContainerOpen=!1,t.showAllFilters=!1,t.maximumDesktopShownFilters=6,t}return Object(o.a)(r,[{key:"filters",get:function(){var t=this.rawFilters.bitFilters,e=this.rawFilters.multipleFilters,r=this.rawFilters.rangeFilters,n=this.rawFilters.priceFilter,o=[];return t&&(o=o.concat(t)),e&&(o=o.concat(e)),r&&(o=o.concat(r)),n&&(o=o.concat(n)),o.sort((function(a,b){return a.sortOrder>b.sortOrder?1:a.sortOrder===b.sortOrder?0:-1}))}},{key:"handleDisplayResetFilters",get:function(){var t=!1,e=this.rawFilters.bitFilters;e&&e.forEach((function(element){!0===element.selected&&(t=!0)}));var r=this.rawFilters.multipleFilters;r&&r.forEach((function(element){var e;element.selected&&(null===(e=element.selected)||void 0===e?void 0:e.length)>0&&(t=!0)}));var n=this.rawFilters.rangeFilters;n&&n.forEach((function(e){null===e.from&&null===e.to||(t=!0)}));var o=this.rawFilters.priceFilter;if(o){var c=o.priceRangeFilter;!c||null===c.from&&null===c.to||(t=!0);var l=o.bitFilters;l&&l.forEach((function(element){!0===element.selected&&(t=!0)}))}return t}},{key:"totalNumSelectedFilters",get:function(){var t,e,r,n=0;return(null===(t=this.rawFilters.bitFilters)||void 0===t?void 0:t.length)&&this.rawFilters.bitFilters.forEach((function(t){t.selected&&(n+=1)})),(null===(e=this.rawFilters.multipleFilters)||void 0===e?void 0:e.length)&&this.rawFilters.multipleFilters.forEach((function(t){var e;(null===(e=t.selected)||void 0===e?void 0:e.length)&&(n+=t.selected.length)})),(null===(r=this.rawFilters.rangeFilters)||void 0===r?void 0:r.length)&&this.rawFilters.rangeFilters.forEach((function(t){(t.from||t.to)&&(n+=1)})),n}},{key:"isMobile",get:function(){return Object(h.A)()}},{key:"buttonText",get:function(){return this.metaData.total?this.metaData.total>1?this.$t("Category.Filters.showProducts",{total:this.metaData.total}):this.$t("Category.Filters.showProduct"):this.$t("Category.Filters.showProducts",{total:""})}},{key:"showAllFiltersText",get:function(){return this.showAllFilters?this.$t("Category.Filters.minimizeFilters"):this.$t("Category.Filters.showAllFilters")}},{key:"showAllFiltersButton",get:function(){var t;return(null===(t=this.filters)||void 0===t?void 0:t.length)>this.maximumDesktopShownFilters}},{key:"isSearchPage",get:function(){var t;return"searchPage"===(null===(t=this.route)||void 0===t?void 0:t.contentAlias)}},{key:"toggleFilterContainer",value:function(){this.isFilterContainerOpen=!this.isFilterContainerOpen,this.isFilterContainerOpen||this.$refs.mobileShowFiltersButton.onClickFilterLine()}},{key:"showFilterItem",value:function(t){return!(!Object(h.A)()&&!this.showAllFilters)||t<this.maximumDesktopShownFilters}},{key:"toggleShowFilters",value:function(){this.showAllFilters=!this.showAllFilters}},{key:"handleOpenAnyFilter",value:function(filter){var t=this;!Object(h.A)()&&this.$refs.filters&&this.$refs.filters.forEach((function(e,r){if(e.$options.propsData.filter.filterKey!==filter.filterKey)try{t.$refs.filters[r].closeFilterContainer()}catch(t){console.error(t)}}))}}]),r}(v.Vue);Object(f.a)([Object(v.Getter)("search/productFilters")],y.prototype,"rawFilters",void 0),Object(f.a)([Object(v.Getter)("search/searchMetaData")],y.prototype,"metaData",void 0),Object(f.a)([Object(v.Getter)("search/loading")],y.prototype,"isLoading",void 0),Object(f.a)([Object(v.Getter)("search/sortOptions")],y.prototype,"sortOptions",void 0),Object(f.a)([Object(v.Getter)("route/route")],y.prototype,"route",void 0);var O=y=Object(f.a)([v.Component],y),_=(r(682),r(10)),component=Object(_.a)(O,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"filter-wrapper p-relative"},[r("div",{staticClass:"d-block d-md-none filters-mobile"},[r("KsFilterBox",{ref:"mobileShowFiltersButton",staticClass:"filter-box-mobile",attrs:{text:t.$t("Category.Filters.showFilters"),highlight:!0,"total-num-selected-filters":t.totalNumSelectedFilters},nativeOn:{click:function(e){return t.toggleFilterContainer.apply(null,arguments)}}})],1),t._v(" "),r("div",{staticClass:"ml-auto d-md-none sort-mobile"},[t.sortOptions?r("KsSortOptions",{ref:"sorting",staticClass:"align-items-center",attrs:{options:t.sortOptions}}):t._e()],1),t._v(" "),r("div",{staticClass:"filter-wrapper__container flex-row",class:{open:t.isFilterContainerOpen}},[r("div",{staticClass:"filter-wrapper__filters"},[r("div",{staticClass:"d-block d-md-none filter-wrapper__header",class:{"has-reset-filter-button":t.handleDisplayResetFilters}},[r("span",{staticClass:"close text-left",on:{click:t.toggleFilterContainer}},[t._v(t._s(t.$t("Category.Filters.close")))]),t._v(" "),r("span",[t._v(t._s(t.$t("Category.Filters.filters")))]),t._v(" "),t.handleDisplayResetFilters?r("KsResetFilterButton",{staticClass:"filter-wrapper__apply-filter text-right d-md-block",attrs:{"style-as-link":!0}}):t._e()],1),t._v(" "),r("div",{staticClass:"filter-wrapper__items d-md-flex flex-md-row"},[t._l(t.filters,(function(filter,e){return[r("KsFilterBox",{directives:[{name:"show",rawName:"v-show",value:t.showFilterItem(e),expression:"showFilterItem(index)"}],key:e,ref:"filters",refInFor:!0,class:{"last-item":e===t.filters.length-1},attrs:{filter:filter,"is-parent-filter-container-open":t.isFilterContainerOpen},on:{open:t.handleOpenAnyFilter}})]})),t._v(" "),t.showAllFiltersButton?r("KsFilterBox",{staticClass:"d-none d-md-block",attrs:{text:t.showAllFiltersText,highlight:!0},nativeOn:{click:function(e){return t.toggleShowFilters.apply(null,arguments)}}}):t._e()],2),t._v(" "),r("KsFilterTags",{staticClass:"filter-wrapper__tags d-none d-md-flex flex-md-row"},[t.handleDisplayResetFilters?r("KsResetFilterButton",{staticClass:"filter-wrapper__items md-theme d-md-block"}):t._e()],1),t._v(" "),r("div",{staticClass:"d-block d-md-none filter-wrapper__apply"},[r("KsButton",{staticClass:"filter-wrapper__apply-button",attrs:{loading:t.isLoading},on:{click:t.toggleFilterContainer}},[t._v("\n "+t._s(t.buttonText)+"\n ")])],1)],1),t._v(" "),r("div",{staticClass:"filter-wrapper__sorting ml-auto"},[t.sortOptions?r("KsSortOptions",{ref:"sorting",attrs:{options:t.sortOptions}}):t._e()],1)]),t._v(" "),t.isFilterContainerOpen&&t.isMobile?r("KsStyle",[t._v("\n html { overflow-y: hidden; }\n ")]):t._e()],1),t._v(" "),r("KsFilterTags",{staticClass:"filter-wrapper__tags filter-wrapper__tags--mobile d-flex d-md-none"},[t.handleDisplayResetFilters?r("KsResetFilterButton",{staticClass:"filter-wrapper__items d-flex md-theme"}):t._e()],1)],1)}),[],!1,null,"7ede8870",null);e.default=component.exports;installComponents(component,{KsFilterBox:r(643).default,KsSortOptions:r(670).default,KsFilterTags:r(671).default,KsButton:r(264).default,KsStyle:r(270).default})},737:function(t,e,r){"use strict";r(656)},746:function(t,e,r){"use strict";r.r(e);r(14);var n=r(2),o=r(4),c=r(5),l=r(6),d=r(7),f=r(3),v=(r(20),r(1)),h=r(0),filter=r(58);function m(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Object(f.a)(t);if(e){var o=Object(f.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(d.a)(this,r)}}var y=function(t){Object(l.a)(d,t);var e,r=m(d);function d(){var t;return Object(o.a)(this,d),(t=r.apply(this,arguments)).loading=!1,t}return Object(c.a)(d,[{key:"productResults",get:function(){return this.isOnCampaignPage?this.campaignResults:this.searchResults}},{key:"totalResults",get:function(){var t;return null===(t=this.productResults)||void 0===t?void 0:t.total}},{key:"currentResults",get:function(){var t;return null===(t=this.productResults.results)||void 0===t?void 0:t.length}},{key:"productPageNumber",get:function(){return this.$store.getters["search/productPageNumber"]},set:function(t){this.$store.commit("search/setProductPageNumber",t)}},{key:"showPaginationButton",get:function(){return!!this.productResults.results&&this.productResults.results.length!==this.productResults.total}},{key:"showMoreProducts",value:(e=Object(n.a)(regeneratorRuntime.mark((function t(e){var r,n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.currentSearchTerm?this.currentSearchTerm:"*",t.prev=1,n={},n=Object(filter.b)(window.location.href),t.next=6,this.$searchApi.getProductsWithFilters(r,e,e-1,this.categoryId?this.categoryId:void 0,n,this.campaignCode,this.sortBy);case 6:o=t.sent,this.isOnCampaignPage?(this.$store.commit("search/addCampaignProducts",o.results),this.$store.commit("search/setCampaignResultsTotal",o.total)):(this.$store.commit("search/addProducts",o.results),this.$store.commit("search/setProductResultsTotal",o.total)),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),console.log(t.t0);case 13:return t.prev=13,this.productPageNumber=e,t.finish(13);case 16:case"end":return t.stop()}}),t,this,[[1,10,13,16]])}))),function(t){return e.apply(this,arguments)})}]),d}(h.Vue);Object(v.a)([Object(h.Prop)()],y.prototype,"products",void 0),Object(v.a)([Object(h.Prop)(String)],y.prototype,"categoryId",void 0),Object(v.a)([Object(h.Getter)("search/productResults")],y.prototype,"searchResults",void 0),Object(v.a)([Object(h.Getter)("search/campaignProducts")],y.prototype,"campaignResults",void 0),Object(v.a)([Object(h.Getter)("search/searchTerm")],y.prototype,"currentSearchTerm",void 0),Object(v.a)([Object(h.Getter)("route/route")],y.prototype,"route",void 0),Object(v.a)([Object(h.Prop)(Boolean)],y.prototype,"isOnCampaignPage",void 0),Object(v.a)([Object(h.Getter)("search/currentSortOption")],y.prototype,"sortBy",void 0),Object(v.a)([Object(h.Inject)({from:"campaignCode",default:""})],y.prototype,"campaignCode",void 0);var O=y=Object(v.a)([h.Component],y),_=(r(737),r(10)),component=Object(_.a)(O,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"row d-flex flex-column flex-md-row"},[r("div",{staticClass:"product-wrapper d-flex flex-row flex-wrap w-100"},t._l(t.products,(function(t,e){return r("div",{key:e+"_"+t.id,staticClass:"col-xs-12 col-md-6"},[r("KsProductCard",{attrs:{product:t,index:e}})],1)})),0),t._v(" "),r("KsPagination",{staticClass:"mx-auto mb-10",attrs:{"has-next-page":t.showPaginationButton,"param-name":"productPage","total-items":t.totalResults,"current-items":t.currentResults,page:t.productPageNumber},on:{pageChange:t.showMoreProducts}})],1)}),[],!1,null,"0f25480c",null);e.default=component.exports;installComponents(component,{KsProductCard:r(584).default,KsPagination:r(629).default})}}]);