PageSourceSearch

https://assets.sizeer.ro/build/spk10a16-2b168d1c-rel-prod-spk10a00…/route.product_custom_list.modern.js

js sizeer.ro collected 2026-09-25 03:11:07 UTC 114,027 bytes, 1 lines download raw bytes

1export const __rspack_esm_id=1405;export const __rspack_esm_ids=[1405];export const __webpack_modules__={25290(e,t,i){i.d(t,{A:()=>f});var r=i(12205),s=i(50419),o=i(80745),n=i(18880),a=i(41372),l=i(10129),c=i(53079),d=i(46398),u=i(67990);function h(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class p extends r.$G{handleDotClick(e){this.slideIndex=e}get isDesktop(){return this.gClientService.isDesktop}get currentItem(){return this.banners&&this.banners.length>this.slideIndex?this.banners[this.slideIndex]:null}get computedAutoplay(){return this.autoplay&&!this.isPaused&&this.isDesktop}handlePauseChange(e){this.isPaused=e}constructor(...e){super(...e),this.slideIndex=0,this.isPaused=!1,this.autoplay=!0}}h([(0,c.y_)(d.lN)],p.prototype,"gClientService",void 0),h([(0,r.kv)()],p.prototype,"banners",void 0),p=h([(0,r.XF)({AdserverImage:s.A,SparkSlider:o.A,SparkSlide:n.A,SliderArrows:a.A,UIRipple:l.A,SliderPause:u.A})],p);let v=(0,r.P9)(p),f=(0,i(12340).A)(v,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"adserver-banners-carousel"},[t("SparkSlider",{attrs:{perPage:1,autoPlay:e.computedAutoplay,autoplayDuration:8e3,autoplayStopOnMouseOver:"",loop:""},model:{value:e.slideIndex,callback:function(t){e.slideIndex=t},expression:"slideIndex"}},e._l(e.banners,function(i,r){return t("SparkSlide",{key:r,attrs:{lazyLoad:r>0}},[e._t("default",null,{item:i,index:r})],2)}),1),e._v(" "),t("SliderArrows",{attrs:{perPage:1,slideCount:e.banners.length,loop:""},scopedSlots:e._u([{key:"prev",fn:function(e){return[t("div",{staticClass:"arrow arrow-left",class:{"is-disabled":!e.enabled},on:{click:e.click}},[t("UIIcon",{attrs:{name:"arrow-left","aria-hidden":"true"}})],1)]}},{key:"next",fn:function(e){return[t("div",{staticClass:"arrow arrow-right",class:{"is-disabled":!e.enabled},on:{click:e.click}},[t("UIIcon",{attrs:{name:"arrow-right","aria-hidden":"true"}})],1)]}}]),model:{value:e.slideIndex,callback:function(t){e.slideIndex=t},expression:"slideIndex"}}),e._v(" "),e.isDesktop?t("SliderPause",{attrs:{currentItem:e.currentItem},on:{change:e.handlePauseChange}}):e._e(),e._v(" "),t("div",{staticClass:"navigation"},e._l(e.banners,function(i,r){return t("div",{key:i.id,staticClass:"navigation-dot",class:{"is-active":r===e.slideIndex},on:{click:function(t){return e.handleDotClick(r)}}})}),0)],1)},[],!1,null,null,null).exports},73159(e,t,i){i.d(t,{A:()=>a});var r=i(12205);function s(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class o extends r.$G{get src(){var e;return`${this.brandsIconsBasePath}/brand-${null==(e=this.salonsCodeGM)?void 0:e.toLowerCase()}.svg`}constructor(...e){super(...e),this.brandsIconsBasePath="/spark-assets/images/brands"}}s([(0,r.kv)({required:!0,type:String})],o.prototype,"alt",void 0),s([(0,r.kv)({required:!0,type:String})],o.prototype,"salonsCodeGM",void 0);let n=(0,r.P9)(o),a=(0,i(12340).A)(n,function(){var e=this._self._c;return this._self._setupProxy,e("UIImage",this._g(this._b({attrs:{alt:this.alt,src:this.src}},"UIImage",this.$attrs,!1),this.$listeners))},[],!1,null,"d98158d4",null).exports},86369(e,t,i){i.d(t,{A:()=>d});var r=i(12205),s=i(53079),o=i(71884),n=i(59306);function a(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class l extends r.$G{get elementClass(){return`is-${this.size}`}get price(){return this.gPriceService.formatPrice(this.mainPrice,this.currency)}get formattedPrice(){return this.gPriceService.formattedPrice(this.price)}get ariaLabel(){let e=this.gTranslationService.translate("Product.CurrentPrice.AriaLabel");return`${this.formattedPrice} ${e}`}}a([(0,s.y_)(o.BB)],l.prototype,"gPriceService",void 0),a([(0,s.y_)(n.dS)],l.prototype,"gTranslationService",void 0),a([(0,r.kv)({default:"medium"})],l.prototype,"size",void 0),a([(0,r.kv)({required:!0,type:Number})],l.prototype,"mainPrice",void 0),a([(0,r.kv)({required:!0,type:String})],l.prototype,"currency",void 0),a([(0,r.kv)({type:Boolean})],l.prototype,"ariaHidden",void 0);let c=(0,r.P9)(l),d=(0,i(12340).A)(c,function(){var e=this._self._c;return this._self._setupProxy,e("span",{directives:[{name:"cy",rawName:"v-cy",value:"productPrice",expression:"'productPrice'"}],staticClass:"main-price",class:this.elementClass,attrs:{"aria-label":this.ariaLabel}},[e("span",{attrs:{"aria-hidden":this.ariaHidden}},[this._v(this._s(this.formattedPrice))])])},[],!1,null,"51fd00df",null).exports},2345(e,t,i){i.d(t,{A:()=>S});var r=i(12205),s=i(80745),o=i(18880),n=i(41372),a=i(89220),l=i(50766),c=i(53079),d=i(46398),u=i(20990),h=i(59306),p=i(17409),v=i(6785),f=i(67788);function g(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class y extends r.$G{get paginationCount(){return Math.ceil(this.offers.length/this.slidesToScroll)}get isLeftArrowVisible(){return this.slideIndex>0}get isRightArrowVisible(){return this.slideIndex<this.offers.length-this.slidePerPage}get windowWidth(){return this.gClientService.state.width}get scrollElementWidth(){return`${100*this.slidePerPage/this.offers.length}%`}get isCustomScrollbarVisible(){return this.showCustomScrollbar&&this.offers.length>this.slidePerPage}getErpId(e){return(0,u.Ac)(e,"erp_id")}getProducerCode(e){return(0,u.WA)(e,"producer_code")}handlePaginationOnClick(e){this.offers&&(this.slideIndex=(0,a.H)(this.slideIndex+e*this.slidesToScroll,0,this.offers.length-1))}getSlidePerPage(){return this.windowWidth<=360?1.2:this.windowWidth<490?1.6:this.windowWidth<660?2.2:this.windowWidth<768?3.2:this.isMini?this.windowWidth<1024?3.5:3:this.isCartLayout?3:this.windowWidth<992?3.5:this.windowWidth<1260?3:this.windowWidth<=1500||this.isFourPerPage?4:5}setSliderProperties(){this.slidePerPage=this.getSlidePerPage(),this.slidesToScroll=Math.ceil(this.slidePerPage)}changeScrollbarPosition(){0===this.slideIndex?this.scrollElementLeft="0%":this.scrollElementLeft=`${100*this.slideIndex/this.offers.length}%`}async $mounted(){this.withAddToFav&&this.gWishListManagerService.loadList(),this.setSliderProperties(),this.zone&&(await this.$vue.$nextTick(),this.gEvents.trigger(p.A,{zone:this.zone}))}constructor(...e){super(...e),this.slidesToScroll=3,this.slidePerPage=3,this.slideIndex=0,this.scrollElementLeft="0%",this.directionPrev=-1,this.directionNext=1}}g([(0,c.y_)(d.lN)],y.prototype,"gClientService",void 0),g([(0,c.y_)(h.yh)],y.prototype,"gEvents",void 0),g([(0,c.y_)(f.mj)],y.prototype,"gWishListManagerService",void 0),g([(0,r.kv)({required:!0})],y.prototype,"offers",void 0),g([(0,r.kv)({required:!1})],y.prototype,"zone",void 0),g([(0,r.kv)({required:!1,type:Boolean})],y.prototype,"isCartLayout",void 0),g([(0,r.kv)({default:!0,type:Boolean})],y.prototype,"showCustomScrollbar",void 0),g([(0,r.kv)({default:!1,type:Boolean})],y.prototype,"isMini",void 0),g([(0,r.kv)({type:Boolean})],y.prototype,"isFourPerPage",void 0),g([(0,r.kv)({type:Boolean})],y.prototype,"withAddToFav",void 0),g([(0,r.ox)("windowWidth")],y.prototype,"setSliderProperties",null),g([(0,r.ox)("slideIndex")],y.prototype,"changeScrollbarPosition",null),y=g([(0,r.XF)({SparkSlider:s.A,SparkSlide:o.A,SliderArrows:n.A,CarouselItem:l.h,WishListModal:v.A})],y);let m=(0,r.P9)(y),S=(0,i(12340).A)(m,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"synerise-carousel",class:{"
1is-mini":e.isMini}},[e.withAddToFav?t("WishListModal"):e._e(),e._v(" "),t("div",{directives:[{name:"cy",rawName:"v-cy",value:"carouselItems",expression:"'carouselItems'"}],staticClass:"synerise-carousel-container"},[t("SparkSlider",{staticClass:"synerise-carousel-slide",attrs:{perPage:e.slidePerPage,draggable:!1},model:{value:e.slideIndex,callback:function(t){e.slideIndex=t},expression:"slideIndex"}},e._l(e.offers,function(i,r){return t("SparkSlide",{key:r,staticClass:"synerise-carousel-item",attrs:{"data-ga-erp-id":e.getErpId(i),"data-ga-mpn":e.getProducerCode(i),"data-ga-name":i.name}},[t("CarouselItem",{attrs:{offer:i,withAddToFav:e.withAddToFav,tabIndexImage:-1}})],1)}),1),e._v(" "),t("SliderArrows",{staticClass:"synerise-carousel-arrows",attrs:{loop:"",perPage:e.slidePerPage,slideCount:e.offers.length},scopedSlots:e._u([{key:"prev",fn:function(){return[t("div",{directives:[{name:"cy",rawName:"v-cy",value:"carouselArrowLeft",expression:"'carouselArrowLeft'"}],staticClass:"synerise-carousel-arrow is-arrow-left",class:{"is-visible":e.isLeftArrowVisible},on:{click:function(t){return e.handlePaginationOnClick(e.directionPrev)}}},[t("UIIcon",{attrs:{name:e.isMini?"chevron-left":"arrow-left"}})],1)]},proxy:!0},{key:"next",fn:function(){return[t("div",{directives:[{name:"cy",rawName:"v-cy",value:"carouselArrowRight",expression:"'carouselArrowRight'"}],staticClass:"synerise-carousel-arrow is-arrow-right",class:{"is-visible":e.isRightArrowVisible},on:{click:function(t){return e.handlePaginationOnClick(e.directionNext)}}},[t("UIIcon",{attrs:{name:e.isMini?"chevron-right":"arrow-right"}})],1)]},proxy:!0}]),model:{value:e.slideIndex,callback:function(t){e.slideIndex=t},expression:"slideIndex"}})],1),e._v(" "),e.isCustomScrollbarVisible?t("span",{staticClass:"synerise-carousel-scroll"},[t("span",{staticClass:"active-element",style:{width:e.scrollElementWidth,left:e.scrollElementLeft}})]):e._e()],1)},[],!1,null,"8f687f04",null).exports},15849(e,t,i){i.d(t,{A:()=>v});var r=i(12205),s=i(2345),o=i(53079),n=i(49388),a=i(74653),l=i(59306),c=i(41491),d=i(64611);function u(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class h extends r.$G{async handleEnter(e){try{let t=await this.gSDKDynamicZoneService.getGQLSDKProducts(e,a.G.SYNERISE_OFFER_SIMPLE);if(!t.length)return;this.productList=t}catch(e){this.gLogger.warn("EmptyListCarousel:handleEnter - Cannot load products",e)}finally{this.isVisible=!0}}constructor(...e){super(...e),this.productList=[],this.isVisible=!1}}u([(0,o.y_)(n.fo)],h.prototype,"gSDKDynamicZoneService",void 0),u([(0,o.y_)(l.Fd)],h.prototype,"gLogger",void 0),u([(0,r.kv)({required:!0,type:String})],h.prototype,"zoneName",void 0),h=u([(0,r.XF)({SyneriseCarousel:s.A,DynamicZone:c.A,IntersectionContent:d.A})],h);let p=(0,r.P9)(h),v=(0,i(12340).A)(p,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("DynamicZone",{staticClass:"empty-list-carousel",attrs:{name:e.zoneName},scopedSlots:e._u([{key:"dataObject",fn:function({data:i,title:r}){return[t("h4",{staticClass:"title is-heading-4"},[e._v("\n      "+e._s(r)+"\n    ")]),e._v(" "),t("IntersectionContent",{attrs:{rootMargin:"200px",emitOnce:""},on:{enter:function(t){return e.handleEnter(i)}}},[t("div",{staticClass:"products"},[e.isVisible?t("SyneriseCarousel",{attrs:{offers:e.productList,zone:e.zoneName,withAddToFav:"",isFourPerPage:""}}):e._e()],1)])]}}])})},[],!1,null,"07152b49",null).exports},25674(e,t,i){i.d(t,{A:()=>e0});var r,s=i(12205),o=i(53079),n=i(16391),a=i(59306);function l(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class c extends s.$G{get isPrevDisabled(){return this.currentPage<=1||this.currentPage>this.totalPages}get isNextDisabled(){return this.currentPage>=this.totalPages}get prevLink(){return this.getPageRoute(Math.max(1,this.currentPage-1))}get nextLink(){return this.getPageRoute(Math.min(this.currentPage+1,this.totalPages))}handleInput(e){if(!this.inputValue){this.inputValue="1";return}this.inputValue=Math.min(Math.max(Number(e),1),this.totalPages).toString()}handlePressEnter(){this.handleChangePagination(Number(this.inputValue))}getPageRoute(e){let{currentRoute:t}=this.gRouter,i={name:t.name,params:this.params,query:{...t.query,page:String(e)}};if(1===e){var r;null==(r=i.query)||delete r.page}return this.gRouter.resolve(i).replace(n.J,"/").replace(/\/{2,}/,"/").replace("/?","?")}handleChangePagination(e){let t=this.getPageRoute(e);this.gRouter.redirect(t)}$mounted(){this.inputValue=this.currentPage.toString()}constructor(...e){super(...e),this.inputValue=""}}
1l([(0,o.y_)(a.Ii)],c.prototype,"gRouter",void 0),l([(0,s.Jc)()],c.prototype,"params",void 0),l([(0,s.kv)({type:Number})],c.prototype,"totalPages",void 0),l([(0,s.kv)({type:Number})],c.prototype,"currentPage",void 0);let d=(0,s.P9)(c);var u=i(12340);let h=(0,u.A)(d,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"pagination"},[e.isPrevDisabled?t("span",{staticClass:"pagination-nav prev is-disabled"},[t("UIIcon",{staticClass:"icon-pagination is-arrow",attrs:{name:"chevron-left"}})],1):t("UILink",{staticClass:"pagination-nav prev",attrs:{href:e.prevLink,title:e.$t("Layout.Common.PrevPage"),"aria-label":e.$t("Layout.Common.PrevPage")}},[t("UIIcon",{staticClass:"icon-pagination is-arrow",attrs:{name:"chevron-left"}})],1),e._v(" "),t("div",{staticClass:"pagination-input"},[t("UIInput",{attrs:{type:"number",inputmode:"number"},on:{input:e.handleInput,keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handlePressEnter.apply(null,arguments)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),e._v(" "),t("span",{staticClass:"pagination-separator"},[e._v(e._s(e.$t("Product.list.Pagination.Separator")))]),e._v(" "),t("span",{directives:[{name:"cy",rawName:"v-cy",value:"paginationTotalNumber",expression:"'paginationTotalNumber'"}],staticClass:"pagination-total"},[e._v(e._s(e.totalPages))])],1),e._v(" "),e.isNextDisabled?t("span",{staticClass:"pagination-nav next is-disabled"},[t("UIIcon",{staticClass:"icon-pagination is-arrow",attrs:{name:"chevron-right"}})],1):t("UILink",{directives:[{name:"cy",rawName:"v-cy",value:"nextPageLink",expression:"'nextPageLink'"}],staticClass:"pagination-nav next",attrs:{href:e.nextLink,title:e.$t("Layout.Common.NextPage"),"aria-label":e.$t("Layout.Common.NextPage")}},[t("UIIcon",{staticClass:"icon-pagination is-arrow",attrs:{name:"chevron-right"}})],1)],1)},[],!1,null,"e450a63c",null).exports;var p=i(68124);function v(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class f extends s.$G{get totalItems(){var e;return null!=(e=this.gGenericProductListService.state.offersCount)?e:0}get isSearchList(){return"Product:CustomList"===this.gRouter.currentRoute.name}get isCustomList(){return"Product:CustomList"===this.gRouter.currentRoute.name}get stateItems(){var e,t;return null!=(e=null==(t=this.gGenericProductListService)?void 0:t.state.itemsPerPage)?e:30}set stateItems(e){this.gGenericProductListService.state.itemsPerPage=e}get itemsPerPage(){let e=this.stateItems;return{value:String(e),label:this.getTranslationForListItem(String(e))}}get options(){return this.gGenericProductListService.itemsPerPageOptions.map(e=>({value:e.value,label:this.getTranslationForListItem(e.value)}))}changeItemsPerPage(e){this.stateItems=Number(e.value);let{currentRoute:t}=this.gRouter,i=this.gRouter.resolve({name:t.name,params:this.params,query:{...t.query,limit:e.value,page:"1"}});this.gRouter.push(i.replace(n.J,"/"))}getTranslationForListItem(e){return this.gTranslationsService.translate("Product.list.itemsPerPage",{option:e})}}v([(0,o.y_)(p.sK)],f.prototype,"gGenericProductListService",void 0),v([(0,o.y_)(a.Ii)],f.prototype,"gRouter",void 0),v([(0,o.y_)(a.dS)],f.prototype,"gTranslationsService",void 0),v([(0,s.Jc)()],f.prototype,"params",void 0);let g=(0,s.P9)(f),y=(0,u.A)(g,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"items"},[e("span",{staticClass:"items-title"},[this._v(this._s(this.$t("Product.list.Items")))]),this._v(" "),e("UISelect",{staticClass:"items-select",attrs:{options:this.options,value:this.itemsPerPage,searchable:!1,openDirection:"bottom",scrollTo:""},on:{input:this.changeItemsPerPage}}),this._v(" "),e("p",{staticClass:"items-count"},[e("span",{staticClass:"items-separator"},[this._v(this._s(this.$t("Product.list.Items.Separator")))]),this._v("\n    "+this._s(this.totalItems)+"\n    "),e("span",{staticClass:"items-total"},[this._v(this._s(this.$t("Product.list.Items.Results")))])])],1
1)},[],!1,null,"0bb2bee8",null).exports;var m=i(50419),S=i(3797),_=i(57238),P=i(25290);function b(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class C extends s.$G{get bannerItems(){var e;return null!=(e=this.gListPageService.state.banner)?e:[]}get bannerTextItems(){var e;return null!=(e=this.gListPageService.state.bannerText)?e:[]}get isSingleBanner(){var e;return(null==(e=this.bannerItems)?void 0:e.length)===1}get isCarousel(){var e;return(null==(e=this.bannerItems)?void 0:e.length)>1}handleBannerClick(e,t,i){this.gGTMPromotionsController.gtmBannerClick(e,t,i)}}b([(0,o.y_)(S.Lw)],C.prototype,"gListPageService",void 0),b([(0,o.y_)(S.jF)],C.prototype,"gGTMPromotionsController",void 0),C=b([(0,s.XF)({AdserverImage:m.A,AdafirHTML:_.A,AdserverBannersCarousel:P.A})],C);let x=(0,s.P9)(C),I=(0,u.A)(x,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"list-banner"},[e.isSingleBanner?t("div",{staticClass:"banner"},[t("AdserverImage",{staticClass:"banner-inner",attrs:{adServer:e.bannerItems[0],alt:"Adserver image"},nativeOn:{click:function(t){return e.handleBannerClick(e.bannerItems[0],1)}}})],1):e.isCarousel?t("AdserverBannersCarousel",{attrs:{banners:e.bannerItems},scopedSlots:e._u([{key:"default",fn:function({item:i,index:r}){return[t("div",{staticClass:"banner"},[t("AdserverImage",{staticClass:"banner-inner",attrs:{adServer:i,alt:"Adserver image"},nativeOn:{click:function(t){return e.handleBannerClick(i,r+1)}}})],1)]}}])}):e._e(),e._v(" "),e.bannerTextItems.length?t("div",{staticClass:"text"},[t("AdafirHTML",{staticClass:"text-inner",attrs:{content:e.bannerTextItems[0].content},nativeOn:{click:function(t){return e.handleBannerClick(e.bannerTextItems[0],1,!0)}}})],1):e._e()],1)},[],!1,null,"eacb680c",null).exports;var F=i(40792),w=i(38146),L=i(58300),k=i(28772),O=i(46398),M=i(91966),R=i(516),A=i(29510),T=((r={}).SIZE="size_eu",r.BRAND="salonsCodeGMName",r.COLOR="baseColorCodeName",r.FAMILY="itemFamilyLabel",r),E=i(58155);function N(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class G extends s.$G{get isFilterNameCapitalized(){return!this.filterParentCodesWithoutCapitalize.includes(this.parent.code)}get value(){return this.fValue}set value(e){this.fValue=e}get isDesktop(){return this.gClientService.isDesktop}get checkboxType(){return this.isDesktop?"round":"secondary"}get activeFilters(){let e=(0,w.m)(this.gFilterService.state.filtersActive).map(e=>({...e,values:e.values.map(e=>({...e,code:this.filterName(e.code)}))}));return this.gFilterService.addFilter(e,this.parent,this.filter)}get colorIndicatorImage(){var e;return null!=(e=this.gImageService.transform(this.filter.image,A.T.FILEMANAGER_ORIGINAL,{useBaseUrlWithApi:!0}))?e:""}get activeSort(){var e;return null!=(e=this.gRouter.currentRoute.query.sort)?e:""}get hasNestedChildren(){var e,t,i;return(null!=(e=null==(i=this.filter)||null==(t=i.filter_value)?void 0:t.length)?e:0)>0}get isChecked(){return this.hasNestedChildren?this.hasAllChildrenSelected():this.isSelected()}set isChecked(e){this.hasNestedChildren?this.filter.filter_value.forEach(t=>{e?this.gFilterService.setFilter(this.parent,t):this.gFilterService.unsetFilter(this.parent,t)}):e?this.gFilterService.setFilter(this.parent,this.filter):this.gFilterService.unsetFilter(this.parent,this.filter)}filterName(e){switch(e.toLowerCase()){case"adidas":return"adidas";case"arkk copenhagen":return"ARKK Copenhagen";case"dc":return"DC";case"ugg":return"UGG"}return this.isFilterNameCapitalized?(0,E.ZH)(e):e}watchChildrenFilters(e){e?this.gFilterService.setFilter(this.parent,this.filter):this.gFilterService.unsetFilter(this.parent,this.filter)}hasAllChildrenSelected(){let e=this.filtersSelected.find(e=>e.parent.id===this.parent.id);if(!e||!e.values.length)return!1;if(this.filter.filter_value){for(let t of this.filter.filter_value)if(!e.values.find(e=>e.id===t.id))return!1}return!0}handleChange(e){let t=(0,w.m)(this.activeFilters);e?this.gFilterService.setFilter(this.parent,this.filter):(this.gFilterService.unsetFilter(this.parent,this.filter),t=this.gFilterService.removeFilter(t,this.parent,this.filter)),this.$emit("filter",t)}isSelected(){var e;let t=this.filtersSelected.find(e=>e.parent.id===this.parent.id);return null!=(e=null==t?void 0:t.values.some(e=>e.id===this.filter.id))&&e}get filtersSelected(){return this.gFilterService.state.filtersActive}get isSubItemSelected(){var e,t;let i=this.filtersSelected.find(e=>e.parent.id===this.parent.id),r=[];
1return null==i||i.values.forEach(e=>{this.filter.filter_value&&this.filter.filter_value.length&&this.filter.filter_value.forEach(t=>{t.id===e.id&&r.push(t)})}),r.length!==(null!=(e=null==(t=this.filter.filter_value)?void 0:t.length)?e:0)&&!!r.length}get titleSEO(){var e;let t=(null==(e=this.gSEOService.state.data)?void 0:e.h1)?this.gSEOService.state.data.h1.trim():null,i=t?`${t} -`:"";return`${i}${this.parent.name}: ${this.filter.name}`}toggle(){this.fIsHiddenGroup=!this.fIsHiddenGroup}changeState(){this.value=this.isSelected()}$mounted(){this.value=this.isSelected(),this.fIsHiddenGroup=this.isSubItemSelected}constructor(...e){super(...e),this.filterParentCodesWithoutCapitalize=[T.SIZE],this.fValue=!1,this.fIsHiddenGroup=!1}}N([(0,o.y_)(L.pw)],G.prototype,"gFilterService",void 0),N([(0,o.y_)(L.sR)],G.prototype,"gFiltersParseService",void 0),N([(0,o.y_)(a.Ii)],G.prototype,"gRouter",void 0),N([(0,o.y_)(O.lN)],G.prototype,"gClientService",void 0),N([(0,o.y_)(k.ZX)],G.prototype,"gSEOService",void 0),N([(0,o.y_)(R.Hi)],G.prototype,"gImageService",void 0),N([(0,s.kv)()],G.prototype,"filter",void 0),N([(0,s.kv)()],G.prototype,"parent",void 0),N([(0,s.kv)({default:!0,type:Boolean})],G.prototype,"redirectOnOneElement",void 0),N([(0,s.kv)({type:Boolean})],G.prototype,"isColorFilters",void 0),N([(0,s.kv)({type:Boolean})],G.prototype,"isSizeFilters",void 0),N([(0,s.kv)({type:Boolean})],G.prototype,"isMobileVersion",void 0),N([(0,s.ox)("isChecked")],G.prototype,"watchChildrenFilters",null),N([(0,s.ox)("filtersSelected")],G.prototype,"changeState",null),G=N([(0,s.XF)({UICheckbox:M.A})],G);let D=(0,s.P9)(G),V=(0,u.A)(D,function(){var e=this,t=e._self._c;return e._self._setupProxy,e.filter.slug?t("div",{staticClass:"filter-child",class:{"is-group":e.hasNestedChildren,"is-color":e.isColorFilters,"is-size":e.isSizeFilters,mobile:e.isMobileVersion}},[t("UICheckbox",{class:{"is-sub-item-selected":e.isSubItemSelected,"color-indicator":e.isColorFilters},style:[e.isColorFilters?{"--color-indicator":"url("+e.colorIndicatorImage+")"}:""],attrs:{tabindex:"-1",variant:e.checkboxType,disabled:0===e.filter.product_count,labelId:e.filter.id},on:{input:e.handleChange},model:{value:e.isChecked,callback:function(t){e.isChecked=t},expression:"isChecked"}},[t("a",{staticClass:"name",attrs:{href:"#",title:e.titleSEO,tabindex:"-1"},on:{click:function(e){e.preventDefault()}}},[e._v("\n      "+e._s(e.filterName(this.filter.name))+"\n    ")]),e._v(" "),t("span",{staticClass:"product-count"},[e._v("("+e._s(e.filter.product_count)+")")]),e._v(" "),e.isChecked?t("UIIcon",{attrs:{name:"close"}}):e._e()],1),e._v(" "),e.hasNestedChildren?t("div",{staticClass:"toggle-group",class:{"
1is-toggled":e.fIsHiddenGroup},on:{click:e.toggle}}):e._e(),e._v(" "),e.fIsHiddenGroup?e._t("nestedFilter"):e._e()],2):e._e()},[],!1,null,"05babb6a",null).exports;function $(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class B extends s.$G{get activeFilters(){let e=(0,w.m)(this.gFilterService.state.filtersActive);return this.gFilterService.addFilter(e,this.parent,this.filterNestedChild)}get href(){return this.filterNestedChild.delta_url}get activeSort(){var e;return null!=(e=this.gRouter.currentRoute.query.sort)?e:""}handleChange(e){e?this.gFilterService.setFilter(this.parent,this.filterNestedChild):this.gFilterService.unsetFilter(this.parent,this.filterNestedChild)}handleClick(){this.value=!this.value,this.handleChange(this.value);let e=(0,w.m)(this.activeFilters);this.value||(e=this.gFilterService.removeFilter(e,this.parent,this.filterNestedChild)),this.$emit("filter",e),this.value&&!this.filtersSelected.length&&this.redirectOnOneElement&&this.gRouter.redirect({path:this.href})}get value(){var e;let t=this.filtersSelected.find(e=>e.parent.id===this.parent.id);return null!=(e=null==t?void 0:t.values.some(e=>e.id===this.filterNestedChild.id))&&e}set value(e){e?this.gFilterService.setFilter(this.parent,this.filterNestedChild):this.gFilterService.removeFilter(this.activeFilters,this.parent,this.filterNestedChild)}get filtersSelected(){return this.gFilterService.state.filtersActive}get titleSEO(){return`${this.parent.name}: ${this.filterNestedChild.name}`}toggle(){this.fIsHiddenGroup=!this.fIsHiddenGroup}constructor(...e){super(...e),this.fIsHiddenGroup=!1}}$([(0,o.y_)(L.pw)],B.prototype,"gFilterService",void 0),$([(0,o.y_)(a.Ii)],B.prototype,"gRouter",void 0),$([(0,s.kv)()],B.prototype,"filterNestedChild",void 0),$([(0,s.kv)()],B.prototype,"parent",void 0),$([(0,s.kv)({default:!0,type:Boolean})],B.prototype,"redirectOnOneElement",void 0);let j=(0,s.P9)(B),z=(0,u.A)(j,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"filter-child is-nested"},[t("UICheckbox",{attrs:{disabled:0===e.filterNestedChild.product_count},on:{input:e.handleChange},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},[t("div",{staticClass:"name-wrapper",on:{click:e.handleClick}},[!e.filtersSelected.length&&e.redirectOnOneElement?[t("a",{staticClass:"name",attrs:{href:e.href,title:e.titleSEO}},[e._v("\n          "+e._s(e.filterNestedChild.name)+"\n          "),t("span",{staticClass:"count"},[e._v("("+e._s(e.filterNestedChild.product_count)+")")])])]:[t("span",{staticClass:"name is-small",attrs:{rel:"nofollow",title:e.titleSEO}},[e._v("\n          "+e._s(e.filterNestedChild.name)+"\n          "),t("span",{staticClass:"count"},[e._v("("+e._s(e.filterNestedChild.product_count)+")")])])]],2)])],1)},[],!1,null,"e6fca082",null).exports;function U(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class q extends s.$G{}U([(0,s.kv)({type:String})],q.prototype,"title",void 0),U([(0,s.kv)({type:String})],q.prototype,"activeFiltersLabel",void 0);let H=(0,s.P9)(q),W=(0,u.A)(H,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"filter-common-label"},[e("span",{staticClass:"filter-name",class:{"is-active":this.activeFiltersLabel}},[this._v(this._s(this.title))]),this._v(" "),this.activeFiltersLabel?e("span",{staticClass:"active-filters-label"},[this._v("("+this._s(this.activeFiltersLabel)+")")]):this._e(),this._v(" "),e("UIIcon",{staticClass:"filter-icon",attrs:{name:"arrow-base-down"}})],1)},[],!1,null,"6aa73176",null).exports;class Y extends s.$G{handleSearch(){this.$emit("search",this.searchKey)}constructor(...e){super(...e),this.searchKey=""}}!function(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);o>3&&n&&Object.defineProperty(t,i,n)}([(0,s.kv)({type:String})],Y.prototype,"placeholder",void 0);let K=(0,s.P9)(Y),Z=(0,u.A)(K,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"filter-common-search"},[t("UIIcon",{staticClass:"search-icon",attrs:{name:"toolbar-search"}}),e._v(" "),t("UIInput",{staticClass:"search-input",attrs:{placeholder:e.placeholder},on:{input:e.handleSearch},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}})],1)},[],!1,null,"9b24d0d4",null).exports;function X(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class J extends s.$G{get isMobile(){return this.gClientService.isMobile}get isDesktop(){return this.gClientService.isDesktop}async handleToggle(e){if(this.isOpen=!this.isOpen,this.isOpen&&this.isMobile&&e.target){await this.$vue.$nextTick();let e=this.filterCommonRef.parentElement;setTimeout(()=>e.scrollTo({top:71*this.index,behavior:"smooth"}),350)}}handleClickOutside(e){var t;let i=e.target,r=i.classList.contains("filter-common-label")||(null==(t=i.parentElement)?void 0:t.classList.contains("filter-common-label"));(!this.isDesktop||r)&&(this.isOpen=!1)}handleFiltersSubmit(){this.$emit("filtersSubmit")}handleFiltersClear(){this.$emit("filtersClear")}handleSearch(e){this.$emit("search",e)}constructor(...e){super(...e),this.isOpen=!1}}X([(0,o.y_)(O.lN)],J.prototype,"gClientService",void 0),X([(0,s.kv)({type:Number})],J.prototype,"index",void 0),X([(0,s.kv)({type:String})],J.prototype,"title",void 0),X([(0,s.kv)({type:String})],J.prototype,"activeFiltersLabel",void 0),X([(0,s.kv)({type:Number})],J.prototype,"productsCount",void 0),X([(0,s.kv)({type:Boolean})],J.prototype,"withSearch",void 0),X([(0,s.kv)({type:String})],J.prototype,"searchPlaceholder",void 0),X([(0,s.oS)()],J.prototype,"filterCommonRef",void 0),J=X([(0,s.XF)({FilterCommonLabel:W,FilterCommonSearch:Z})],J);let Q=(0,s.P9)(J),ee=(0,u.A)(Q,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.handleClickOutside,expression:"handleClickOutside"}
1],ref:"filterCommonRef",staticClass:"filter-common",class:{"is-open":e.isOpen}},[t("FilterCommonLabel",{directives:[{name:"cy",rawName:"v-cy",value:"filterTitle",expression:"'filterTitle'"}],attrs:{title:e.title,activeFiltersLabel:e.activeFiltersLabel},nativeOn:{click:function(t){return e.handleToggle.apply(null,arguments)}}}),e._v(" "),t("div",{staticClass:"content-wrapper"},[t("FilterCommonLabel",{attrs:{title:e.title,activeFiltersLabel:e.activeFiltersLabel},nativeOn:{click:function(t){return e.handleToggle.apply(null,arguments)}}}),e._v(" "),t("div",{staticClass:"expandable-content"},[e.withSearch?t("FilterCommonSearch",{attrs:{placeholder:e.searchPlaceholder},on:{search:e.handleSearch}}):e._e(),e._v(" "),t("div",{staticClass:"list-wrapper"},[e._t("list")],2)],1),e._v(" "),t("div",{staticClass:"buttons"},[t("UIButton",{directives:[{name:"cy",rawName:"v-cy",value:"buttonSubmit",expression:"'buttonSubmit'"}],attrs:{variant:"primary",tabindex:"-1"},on:{click:e.handleFiltersSubmit}},[t("UIIcon",{attrs:{name:"filter"}}),e._v("\n        "+e._s(e.$t("Product.list.Filter"))+" "),e.productsCount?t("span",{staticClass:"products-count"},[e._v("("+e._s(e.productsCount)+")")]):e._e()],1),e._v(" "),t("UIButton",{directives:[{name:"cy",rawName:"v-cy",value:"buttonClearAll",expression:"'buttonClearAll'"}],attrs:{variant:"primary-link",tabindex:"-1"},on:{click:e.handleFiltersClear}},[e._v("\n        "+e._s(e.$t("Product.Filters.ClearAll"))+"\n      ")])],1)],1)],1)},[],!1,null,"6f69023e",null).exports;function et(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class ei extends s.$G{get activeFilterValues(){var e,t;return null!=(e=null==(t=this.gFiltersService.state.filtersActive.find(e=>e.parent.id===this.filter.id))?void 0:t.values)?e:null}get activeFiltersLabel(){var e,t,i;return null!=(e=null==(i=this.activeFilterValues)||null==(t=i.length)?void 0:t.toString())?e:""}get productsCount(){var e,t;return null!=(e=null==(t=this.activeFilterValues)?void 0:t.reduce((e,t)=>e+t.product_count,0))?e:0}get filterValues(){let e=(0,w.m)(this.filter.filter_value),{filtersSelected:t}=this.gFiltersService.state,i=t.find(e=>e.parent.id===this.filter.id);if(!t.length||!i)return e;let r=i.values.map(e=>e.code),s=e.filter(e=>r.includes(e.code));s.sort((e,t)=>e.order-t.order);let o=e.filter(e=>!r.includes(e.code));return s.concat(o)}get filtersSearched(){return this.searchKey?this.filterValues.filter(e=>{var t;return null==(t=e.name)?void 0:t.toLowerCase().includes(this.searchKey.toLowerCase())}):this.filterValues}get filtersToDisplay(){return this.isMobileVersion&&!this.isExpanded&&this.limitOnMobile?this.filtersSearched.slice(0,this.limitOnMobile):this.filtersSearched}get isExpandButtonVisible(){return!!(this.isMobileVersion&&this.limitOnMobile&&this.filtersSearched.length>this.limitOnMobile)}get expandButtonTranslation(){return this.isExpanded?"Product.Filters.ShowLess":"Product.Filters.ShowMore"}get expandButtonIcon(){return this.isExpanded?"arrow-base-up":"arrow-base-down"}get isActive(){var e;return e=!!this.activeFilters,e}get activeFilters(){let e=this.gFiltersService.state.filtersSelected.find(e=>e.parent.id===this.filter.id);if(!e)return null;let[t]=this.gFiltersParseService.excludeChildFromParentGroup([e]);return t.values.map(e=>e.name).join(", ")}get activeChild(){let e=this.gFiltersService.state.filtersActive.find(e=>e.parent.id===this.filter.id);if(!e)return null;let[t]=this.gFiltersParseService.excludeChildFromParentGroup([e]);return t.values.map(e=>e.name).join(", ")}get isColorFilters(){return this.filter.code===T.COLOR}get isSizeFilters(){return this.filter.code===T.SIZE}get showSearch(){return this.filterCodesWithSearch.includes(this.filter.code)}get searchPlaceholderKey(){switch(this.filter.code){case T.SIZE:return"Product.Filters.SearchSize";case T.BRAND:return"Product.Filters.SearchBrand";case T.FAMILY:return"Product.Filters.SearchFamily";default:return""}}get limitOnMobile(){switch(this.filter.code){case T.SIZE:case T.FAMILY:return 9;
1case T.BRAND:return 6;default:return null}}handleFilter(){return this.$emit("filtersSubmit")}handleClear(){this.gFiltersService.clearFilter(this.filter),this.handleFilter()}handleSearch(e){this.searchKey=e,this.filtersSearched,this.isExpanded=!1}handleToggleExpand(){this.isExpanded=!this.isExpanded}sortNestedFilters(e,t){let{filter_children_ids:i}=e;return[...t.filter(e=>i.includes(Number(e.id))),...t.filter(e=>!i.includes(Number(e.id)))]}constructor(...e){super(...e),this.searchKey="",this.isExpanded=!1,this.filterCodesWithSearch=[T.SIZE,T.BRAND,T.FAMILY]}}et([(0,o.y_)(L.pw)],ei.prototype,"gFiltersService",void 0),et([(0,o.y_)(L.sR)],ei.prototype,"gFiltersParseService",void 0),et([(0,s.kv)({type:Number})],ei.prototype,"index",void 0),et([(0,s.kv)()],ei.prototype,"filter",void 0),et([(0,s.kv)({type:Boolean})],ei.prototype,"isMobileVersion",void 0),et([(0,s.kv)({default:!0,type:Boolean})],ei.prototype,"redirectOnOneElement",void 0),ei=et([(0,s.XF)({FilterCommon:ee,FiltersChild:V,FiltersNestedChild:z})],ei);let er=(0,s.P9)(ei),es=(0,u.A)(er,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("FilterCommon",{directives:[{name:"cy",rawName:"v-cy",value:"filter"+e.filter.id,expression:"'filter' + filter.id"}],key:"filter"+e.filter.id,staticClass:"filter-common",class:{"is-color":e.isColorFilters,"is-size":e.isSizeFilters,mobile:e.isMobileVersion},attrs:{index:e.index,title:e.filter.name,filter:e.filter,activeFiltersLabel:e.activeFiltersLabel,productsCount:e.productsCount,withSearch:e.showSearch,searchPlaceholder:e.$t(e.searchPlaceholderKey)},on:{filtersClear:e.handleClear,filtersSubmit:e.handleFilter,search:e.handleSearch},scopedSlots:e._u([{key:"active",fn:function(){return[e.activeChild?t("span",{staticClass:"active is-small"},[e._v(e._s(e.activeChild))]):e._e()]},proxy:!0},{key:"list",fn:function(){return[e._l(e.filtersToDisplay,function(i){return t("FiltersChild",{directives:[{name:"cy",rawName:"v-cy",value:"filterChild"+e.filter.id+"-"+i.id,expression:"'filterChild' + filter.id + '-' + child.id"}],key:i.id,attrs:{filter:i,parent:e.filter,redirectOnOneElement:e.redirectOnOneElement,isColorFilters:e.isColorFilters,isSizeFilters:e.isSizeFilters,isMobileVersion:e.isMobileVersion},scopedSlots:e._u([{key:"nestedFilter",fn:function(){return e._l(e.sortNestedFilters(i,i.filter_value),function(r){return t("FiltersNestedChild",{key:r.id,attrs:{filterNestedChild:r,parent:e.filter,filterChild:i,redirectOnOneElement:e.redirectOnOneElement}})})},proxy:!0}],null,!0)})}),e._v(" "),e.isExpandButtonVisible?t("div",{staticClass:"expand-button",on:{click:e.handleToggleExpand}},[e._v("\n      "+e._s(e.$t(e.expandButtonTranslation))+"\n      "),t("UIIcon",{attrs:{name:e.expandButtonIcon}})],1):e._e()]},proxy:!0}])})},[],!1,null,"0a1bd604",null).exports;var eo=i(61641);class en extends s.$G{}en=function(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}([(0,s.XF)({ClientOnly:eo.YX})],en);let ea=(0,s.P9)(en),el=(0,u.A)(ea,function(){var e=this._self._c;return this._self._setupProxy,e("ClientOnly",[this._t("default")],2)},[],!1,null,"b9f7edd4",null).exports;var ec=i(71884);function ed(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class eu extends s.$G{get currency(){return this.gPriceService.getCurrencyMapping(this.gPriceService.getDefaultCurrency())}get valueRange(){return[this.sliderMin,this.sliderMax]}set valueRange(e){[this.sliderMin,this.sliderMax]=e}get isActiveFiltersLabelVisible(){return!!(this.gFiltersService.state.filtersActivePrice.min||this.gFiltersService.state.filtersActivePrice.max)}get activeFiltersLabel(){return this.isActiveFiltersLabelVisible?`${this.sliderMin} - ${this.sliderMax} ${this.currency}`:""}handleFilterSubmit(){this.$emit("filtersSubmit")}handleMinInputBlur(){this.sliderMinInputModel.replace(",",".");let e=this.convertModelToInRangeVal(this.sliderMinInputModel);this.sliderMinInputModel=e.toString(),this.sliderMin=e,this.sliderMin>this.sliderMax&&(this.sliderMax=this.sliderMin,this.sliderMaxInputModel=this.sliderMinInputModel)}handleMaxInputBlur(){this.sliderMaxInputModel.replace(",",".");let e=this.convertModelToInRangeVal(this.sliderMaxInputModel);this.sliderMaxInputModel=e.toString(),this.sliderMax=e,this.sliderMax<this.sliderMin&&(this.sliderMin=this.sliderMax,this.sliderMinInputModel=this.sliderMaxInputModel)}convertModelToInRangeVal(e){let t=Number(e);return t<this.rangeMin?this.rangeMin:t>this.rangeMax?this.rangeMax:t}handleSliderValChange(e){this.sliderMinInputModel=e[0].toString(),this.sliderMaxInputModel=e[1].toString()}handleClear(){this.gFiltersService.state.filtersPrice.min=0,this.gFiltersService.state.filtersPrice.max=0,this.handleFilterSubmit()}handleRangeChange(e){this.gFiltersService.state.filtersPrice={...this.gFiltersService.state.filtersPrice,min:Number(e[0]),max:Number(e[1])}}loadValues(){var e,t,i,r,s,o;this.rangeMin=null!=(e=this.min)?e:0,this.sliderMin=null!=(t=this.min)?t:0,this.sliderMinInputModel=null!=(i=null==(s=this.min)?void 0:s.toString())?i:"0",this.rangeMax=this.max,this.sliderMax=this.max,this.sliderMaxInputModel=null!=(r=null==(o=this.max)?void 0:o.toString())?r:"",this.activePriceFilter&&(this.activePriceFilter.min&&(this.sliderMin=this.activePriceFilter.min,this.sliderMinInputModel=this.activePriceFilter.min.toString()),this.activePriceFilter.max>0&&(this.sliderMax=this.activePriceFilter.max,this.sliderMaxInputModel=this.activePriceFilter.max.toString())),this.isLoaded=!0}$serverPrefetch(){this.loadValues()}$mounted(){this.showSlider=!0,this.isLoaded||this.loadValues()}constructor(...e){super(...e),this.sliderMin=0,this.sliderMax=0,this.sliderMinInputModel="",this.sliderMaxInputModel="",this.rangeMin=0,this.rangeMax=0,this.isLoaded=!1,this.showSlider=!1}}ed([(0,o.y_)(L.pw)],eu.prototype,"gFiltersService",void 0),ed([(0,o.y_)(ec.BB)],eu.prototype,"gPriceService",void 0),ed([(0,s.kv)({default:0,type:Number})],eu.prototype,"min",void 0),ed([(0,s.kv)({default:0,type:Number})],eu.prototype,"max",void 0),ed([(0,s.kv)()],eu.prototype,"activePriceFilter",void 0),ed([(0,s.ox)("valueRange")],eu.prototype,"handleRangeChange",null),eu=ed([(0,s.XF)({VueSlider:()=>i.e(1038).then(i.t.bind(i,64268,23)),FilterCommon:ee,NoSSR:el})],eu);let eh=(0,s.P9)(eu),ep=(0,u.A)(eh,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("FilterCommon",{directives:[{name:"cy",rawName:"v-cy",value:"filterPrice",expression:"'filterPrice'"}],attrs:{title:e.$t("Product.Filters.Price"),activeFiltersLabel:e.activeFiltersLabel},on:{filtersSubmit:e.handleFilterSubmit,filtersClear:e.handleClear},scopedSlots:e._u([{key:"list",fn:function(){return[t("div",{staticClass:"price-list"},[t("div",{staticClass:"slider"}
1,[t("div",{staticClass:"slider-placeholder",class:{"is-hidden":e.showSlider}},[t("div",{staticClass:"slide-loader"},[t("div",{staticClass:"animate-element"}),e._v(" "),t("small",[e._v(e._s(e.$t("Product.Filters.Loading")))])])]),e._v(" "),e.showSlider?t("VueSlider",{directives:[{name:"cy",rawName:"v-cy",value:"priceSlider",expression:"'priceSlider'"}],attrs:{min:e.rangeMin,max:e.rangeMax,tooltip:"none",tabindex:"-1",dotAttrs:{"aria-label":e.$t("Product.Filters.Price")}},on:{change:e.handleSliderValChange},model:{value:e.valueRange,callback:function(t){e.valueRange=t},expression:"valueRange"}}):e._e()],1),e._v(" "),t("div",{directives:[{name:"cy",rawName:"v-cy",value:"selectedPriceRange",expression:"'selectedPriceRange'"}],staticClass:"range"},[t("UIInput",{attrs:{handleNumbersOnly:"",tabindex:"-1"},on:{blur:function(t){return e.handleMinInputBlur()}},model:{value:e.sliderMinInputModel,callback:function(t){e.sliderMinInputModel=t},expression:"sliderMinInputModel"}}),e._v(" "),t("UIInput",{attrs:{handleNumbersOnly:"",tabindex:"-1"},on:{blur:function(t){return e.handleMaxInputBlur()}},model:{value:e.sliderMaxInputModel,callback:function(t){e.sliderMaxInputModel=t},expression:"sliderMaxInputModel"}})],1)])]},proxy:!0}])})},[],!1,null,"8236d8dc",null).exports;var ev=i(98677),ef=i(25610),eg=i(44970),ey=i(59013);function em(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class eS extends s.$G{get filtersVisible(){return!!(this.filters.length||this.priceMin>0||this.priceMax>0)}get parsedFilters(){return this.gFiltersParseService.excludeChildFromParentGroup(this.filters)}toggle(e,t){t.is_group&&t.filter_value.forEach(t=>this.gFilterService.unsetFilter(e,t)),this.gFilterService.unsetFilter(e,t),this.$emit("filter",{triggerByButton:!0})}togglePrice(){this.gFilterService.state.filtersPrice.min=0,this.gFilterService.state.filtersPrice.max=0,this.priceMin=0,this.priceMax=0,this.$emit("filter",{triggerByButton:!0})}handleExpandClick(){this.isExpanded=!this.isExpanded}get windowWidth(){return this.gClientService.state.width}get isDesktop(){return this.gClientService.isDesktop}get currency(){return this.gPriceService.getCurrencyMapping(this.gPriceService.getDefaultCurrency())}get filtersClearButtonVisibility(){let e=this.filters.map(({values:e})=>e.length);return(e.length?e.reduce((e,t)=>t+e):0)>0||this.priceMin>0||this.priceMax>0}handleClear(){this.$emit("clear")}get expandButtonTranslation(){return this.isExpanded?"Product.Filters.Less":"Product.Filters.More"}get expandButtonIcon(){return this.isExpanded?"arrow-base-up":"arrow-base-down"}calculateLayout(){var e,t,i,r;let s=document.querySelectorAll(".filters-active")[0],o=document.querySelector(".filters-active .clear"),n=null!=(e=null==s||null==(i=s.getBoundingClientRect())?void 0:i.y)?e:0,a=null!=(t=null==o||null==(r=o.getBoundingClientRect())?void 0:r.y)?t:0,l=this.isDesktop?30:68;this.isExpandButtonVisible=a>=n+l}updatePrices(){let{min:e,max:t}=this.gFilterService.state.filtersActivePrice;this.priceMin=e,this.priceMax=t,!e&&t&&(this.priceMin=this.rangeMin),e&&!t&&(this.priceMax=this.rangeMax)}$mounted(){this.updatePrices(),this.calculateLayout()}constructor(...e){super(...e),this.priceMin=0,this.priceMax=0,this.isExpanded=!1,this.isExpandButtonVisible=!1}}em([(0,o.y_)(O.lN)],eS.prototype,"gClientService",void 0),em([(0,o.y_)(L.pw)],eS.prototype,"gFilterService",void 0),em([(0,o.y_)(L.sR)],eS.prototype,"gFiltersParseService",void 0),em([(0,o.y_)(ec.BB)],eS.prototype,"gPriceService",void 0),em([(0,s.kv)()],eS.prototype,"filters",void 0),em([(0,s.kv)({type:Number})],eS.prototype,"rangeMin",void 0),em([(0,s.kv)({type:Number})],eS.prototype,"rangeMax",void 0),em([(0,s.ox)("windowWidth")],eS.prototype,"calculateLayout",null),em([(0,ev.A)(ef.A)],eS.prototype,"updatePrices",null);let e_=(0,s.P9)(eS),eP=(0,u.A)(e_,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"filters-active",class:{"
1is-expanded":e.isExpanded}},[e.filtersVisible?[t("div",{directives:[{name:"cy",rawName:"v-cy",value:"activeFilter",expression:"'activeFilter'"}],staticClass:"list"},[t("span",{staticClass:"selected-filters-label"},[e._v(e._s(e.$t("Product.Filters.ActiveFilters"))+":")]),e._v(" "),e.priceMin||e.priceMax?t("div",{staticClass:"item",on:{click:function(t){return e.togglePrice()}}},[t("span",{staticClass:"value"},[e._v(e._s(e.priceMin)+" - "+e._s(e.priceMax)+" "+e._s(e.currency))]),e._v(" "),t("UIIcon",{attrs:{name:"close"}})],1):e._e(),e._v(" "),e._l(e.parsedFilters,function(i){return e._l(i.values,function(r){return t("div",{key:r.id,staticClass:"item",attrs:{tabindex:"0"},on:{click:function(t){return e.toggle(i.parent,r)},keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.target.click()}}},[t("span",{staticClass:"value"},[e._v(e._s(r.name))]),e._v(" "),t("UIIcon",{attrs:{name:"close"}})],1)})}),e._v(" "),e.filtersClearButtonVisibility?t("UILink",{staticClass:"clear",attrs:{type:"primary"},on:{click:function(t){return t.preventDefault(),e.handleClear.apply(null,arguments)}}},[e._v("\n        "+e._s(e.$t("Product.Filters.ClearAll"))+"\n      ")]):e._e()],2),e._v(" "),e.isExpandButtonVisible?t("div",{staticClass:"expand-button",on:{click:e.handleExpandClick}},[e._v("\n      "+e._s(e.$t(e.expandButtonTranslation))+"\n      "),t("UIIcon",{attrs:{name:e.expandButtonIcon}})],1):e._e()]:[e._v(e._s(e.$t("Product.Filters.NoActiveFilters")))]],2)},[],!1,null,"18c5099f",null).exports;var eb=i(52459),eC=i(14874);function ex(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class eI extends s.$G{get isOpen(){return this.gFiltersService.state.isOpen}get isOperator(){return this.gCustomerService.isOperator}get isExpandButtonVisible(){var e;return!this.isMobileVersion&&(null==(e=this.filters)?void 0:e.length)>=5}get expandButtonTranslation(){return this.isExpanded?"Product.Filters.Less":"Product.Filters.More"}get expandButtonIcon(){return this.isExpanded?"show-less":"show-more"}get initiallySelectedFilters(){return this.gFiltersService.state.filtersSelected}get filters(){return this.gFiltersService.state.filters?this.gFiltersService.state.filters.filter(e=>e.position===F.TN.LEFT):[]}get visibleFilters(){return this.isExpanded||this.isMobileVersion?this.filters:this.filters.slice(0,4)}get isMobileVersion(){return this.gClientService.isMobile||this.gClientService.isTablet}get isDesktop(){return this.gClientService.isDesktop}get isCustomList(){return"Product:CustomList"===this.gRouter.currentRoute.name}get activeFilters(){return this.gFiltersService.state.filtersSelected}get shouldHydrate(){return this.isDesktop||this.enableHydration}handleToggleExpand(){this.isExpanded=!this.isExpanded}handleFilter(e){if(this.startLoading(),this.processMaxRangePrices(),this.useCustomCapturing)return void this.$emit("filter");let{currentRoute:t}=this.gRouter,i=this.gFiltersService.state.filtersActive;if(e){let t=this.gFiltersService.state.filtersActive.find(t=>t.parent.id===e);t&&(i=[...this.initiallySelectedFilters.filter(t=>t.parent.id!==e),t])}let r=this.gFiltersParseService.createFilterString(i,this.gFiltersService.state.filtersPrice),s=new URL(this.gRouter.resolve({name:this.gRouter.current.config.name,params:{...t.params,filters:r},query:{...t.query}}).replace("/?","?").replace("&?","&").replace(n.J,"/"),document.baseURI);s.searchParams.delete("page"),this.gRouter.push(s.pathname+s.search)}handleClear(){this.startLoading(),this.gFiltersService.clearFilters();let{currentRoute:e}=this.gRouter,t=e.query.query,i=this.gRouter.resolve({name:e.name,params:{...e.params,filters:""},query:{query:t}});this.gRouter.redirect(i)}closeFilters(){this.gFiltersService.state.isOpen=!1}startLoading(){this.isBusy=!0}
1processMaxRangePrices(){let{filtersPrice:e,filtersOriginalPrice:t}=this.gFiltersService.state;e.min===t.min&&(e.min=0),e.max===t.max&&(e.max=0)}stopLoading(){this.isBusy=!1,this.gFiltersService.state.isOpen=!1}handleCloseOnDesktop(){this.closeFilters()}async handleOpenStateChange(e){e?(this.enableHydration=!0,this.gEvents.trigger(ey.A)):this.gEvents.trigger(eg.A),this.isOpen?this.containerRef.classList.add("is-open"):(await (0,eb.yy)(200),this.containerRef.classList.remove("is-open"))}constructor(...e){super(...e),this.isBusy=!1,this.enableHydration=!1,this.isExpanded=!1}}ex([(0,o.y_)(L.pw)],eI.prototype,"gFiltersService",void 0),ex([(0,o.y_)(L.sR)],eI.prototype,"gFiltersParseService",void 0),ex([(0,o.y_)(a.Ii)],eI.prototype,"gRouter",void 0),ex([(0,o.y_)(a.yh)],eI.prototype,"gEvents",void 0),ex([(0,o.y_)(O.lN)],eI.prototype,"gClientService",void 0),ex([(0,o.y_)(eC.yz)],eI.prototype,"gCustomerService",void 0),ex([(0,s.kv)()],eI.prototype,"activePriceFilter",void 0),ex([(0,s.kv)({default:0,type:Number})],eI.prototype,"priceMin",void 0),ex([(0,s.kv)({default:0,type:Number})],eI.prototype,"priceMax",void 0),ex([(0,s.kv)({default:!1,type:Boolean})],eI.prototype,"useCustomCapturing",void 0),ex([(0,s.oS)()],eI.prototype,"containerRef",void 0),ex([(0,ev.A)(ef.A)],eI.prototype,"stopLoading",null),ex([(0,s.ox)("isDesktop")],eI.prototype,"handleCloseOnDesktop",null),ex([(0,s.ox)("isOpen")],eI.prototype,"handleOpenStateChange",null),eI=ex([(0,s.XF)({FiltersItem:es,FiltersPrice:ep,FiltersActive:eP}),(0,s.q5)(["filter"])],eI);let eF=(0,s.P9)(eI),ew=(0,u.A)(eF,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{ref:"containerRef",staticClass:"filters",class:{"is-operator":e.isOperator}},[t("LazyHydration",{attrs:{triggerHydration:e.shouldHydrate}},[t("Transition",{attrs:{name:"slide"}},[!e.isMobileVersion||e.isOpen?t("div",{staticClass:"filters-container",class:{mobile:e.isMobileVersion}},[t("div",{directives:[{name:"cy",rawName:"v-cy",value:"filtersContent",expression:"'filtersContent'"}],staticClass:"content"},[t("div",{staticClass:"header"},[t("UIIcon",{attrs:{name:"filter"}}),e._v(" "+e._s(e.$t("Product.list.Filter"))+"\n            "),t("div",{staticClass:"close-filters-icon",on:{click:e.closeFilters}},[t("UIIcon",{attrs:{name:"close"}})],1)],1),e._v(" "),t("div",{staticClass:"list"},[t("FiltersPrice",{attrs:{index:0,min:e.priceMin,max:e.priceMax,activePriceFilter:e.activePriceFilter},on:{filtersSubmit:e.handleFilter}}),e._v(" "),e._l(e.visibleFilters,function(i,r){return t("FiltersItem",{key:i.id,attrs:{index:r+1,filter:i,isMobileVersion:e.isMobileVersion},on:{filtersSubmit:function(t){return e.handleFilter(i.id)}}})})],2),e._v(" "),e.isExpandButtonVisible?t("div",{directives:[{name:"cy",rawName:"v-cy",value:"expandFiltersButton",expression:"'expandFiltersButton'"}],staticClass:"expand-button",on:{click:e.handleToggleExpand}},[e._v("\n            "+e._s(e.$t(e.expandButtonTranslation))+"\n            "),t("UIIcon",{attrs:{name:e.expandButtonIcon}})],1):e._e(),e._v(" "),e.isMobileVersion?t("div",{staticClass:"buttons"},[t("UIButton",{directives:[{name:"cy",rawName:"v-cy",value:"buttonClear",expression:"'buttonClear'"}],attrs:{variant:"primary-link",tabindex:"-1"},on:{click:e.handleClear}},[e._v("\n              "+e._s(e.$t("Product.Filters.ClearAll"))+"\n            ")]),e._v(" "),t("UIButton",{directives:[{name:"cy",rawName:"v-cy",value:"buttonSubmit",expression:"'buttonSubmit'"}],attrs:{variant:"primary",tabindex:"-1"},on:{click:e.handleFilter}},[t("UIIcon",{attrs:{name:"filter"}}),e._v("\n              "+e._s(e.$t("Product.list.Filter"))+"\n            ")],1)],1):e._e()])]):e._e()])],1),e._v(" "),t("FiltersActive",{attrs:{filters:e.activeFilters,rangeMin:e.priceMin,rangeMax:e.priceMax},on:{filter:e.handleFilter,clear:e.handleClear}})],1)},[],!1,null,"d55e3e0c",null).exports;function eL(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class ek extends s.$G{handleToggle(){this.isOpen=!this.isOpen,this.$emit("toggle",this.isOpen)}get isCustomList(){return"Product:CustomList"===this.gRouter.currentRoute.name}get current(){var e,t,i;let{currentRoute:r}=this.gRouter,s=null!=(e=r.query.sort)?e:"default",o=this.gGenericProductListService.decodeSortType(s);return o?null!=(i=this.sortOptions.find(e=>e.value===o))?i:this.sortOptions[0]:null!=(t=this.sortOptions.find(e=>e.value===this.gGenericProductListService.state.sort))?t:null}get sortOptions(){return this.gGenericProductListService.sortingOptions({default:"Product.list.default"})}set current(e){var t;this.gGenericProductListService.state.sort=null!=(t=null==e?void 0:e.value)?t:null}changeSort(e){this.gGenericProductListService.state.sort=e.value;let{currentRoute:t}=this.gRouter,i=this.gGenericProductListService.codeSortType(e.value),r=this.gRouter.resolve({name:t.name,params:this.params,query:{...t.query,sort:i,page:"1"}});this.gRouter.redirect(r.replace(n.J,"/"))}async changeSortRadio(e){this.current.value=e;let t=this.sortOptions.find(t=>t.value===e);t&&(this.changeSort(t),await (0,eb.yy)(250),this.close())}close(){this.$emit("close")}$mounted(){var e,t;this.sortType=null!=(e=null==(t=this.current)?void 0:t.value)?e:"default"}get isDesktop(){return this.gClientService.isDesktop}constructor(...e){super(...e),this.isOpen=!1,this.sortType="default"}}eL([(0,o.y_)(p.sK)],ek.prototype,"gGenericProductListService",void 0),eL([(0,o.y_)(a.Ii)],ek.prototype,"gRouter",void 0),eL([(0,o.y_)(O.lN)],ek.prototype,"gClientService",void 0),eL([(0,s.kv)({default:"select",type:String})],ek.prototype,"variant",void 0),eL([(0,s.Jc)()],ek.prototype,"params",void 0);let eO=(0,s.P9)(ek),eM=(0,u.A)(eO,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"cy",rawName:"v-cy",value:"sortOptions",expression:"'sortOptions'"}],staticClass:"sort"},[e.isDesktop?t("div",{staticClass:"sort-desktop"},[t("span",{directives:[{name:"cy",rawName:"v-cy",value:"sortOptionsTitle",expression:"'sortOptionsTitle'"}],staticClass:"sort-title"},[e._v(e._s(e.$t("Product.list.Sort")))]),e._v(" "),t("UISelect",{attrs:{options:e.sortOptions,searchable:!1,openDirection:"bottom",scrollTo:""},on:{select:e.changeSort},model:{value:e.current,callback:function(t){e.current=t},expression:"current"}})],1):t("div",{staticClass:"sort-mobile"},[t("UIButton",{directives:[{name:"cy",rawName:"v-cy",value:"sortMobileButton",expression:"'sortMobileButton'"}],staticClass:"sort-button",attrs:{variant:"toolbar"},on:{click:e.handleToggle}},[t("UIIcon",{staticClass:"icon-sort",attrs:{name:"sort-arrows"}}),e._v("\n      "+e._s(e.$t("Product.list.Sort"))+"\n      "),t("UIIcon",{staticClass:"icon-sort is-arrow",attrs:{name:"chevron-right"}})],1),e._v(" "),t("Transition",{attrs:{name:"slide"}}
1,[e.isOpen?t("div",{staticClass:"sort-list",class:{"is-open":e.isOpen}},[t("div",{staticClass:"sort-header"},[t("UIIcon",{staticClass:"sort-icon",attrs:{name:"sort-arrows"}}),e._v("\n          "+e._s(e.$t("Product.list.Sort"))+"\n          "),t("div",{directives:[{name:"cy",rawName:"v-cy",value:"sortCloseButton",expression:"'sortCloseButton'"}],staticClass:"sort-close",on:{click:e.handleToggle}},[t("UIIcon",{staticClass:"sort-icon",attrs:{name:"close"}})],1)],1),e._v(" "),t("UIRadioGroup",{staticClass:"sort-items",on:{change:e.changeSortRadio},model:{value:e.current,callback:function(t){e.current=t},expression:"current"}},e._l(e.sortOptions,function(i){return t("UIRadio",{key:i.value,staticClass:"sort-item",attrs:{value:i.value,checked:i.value===e.current.value}},[e._v("\n            "+e._s(i.label)+"\n          ")])}),1)],1):e._e()])],1)])},[],!1,null,"32b76b96",null).exports;class eR extends s.$G{handleOpenFilter(){this.gFiltersService.state.isOpen=!this.gFiltersService.state.isOpen}}!function(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);o>3&&n&&Object.defineProperty(t,i,n)}([(0,o.y_)(L.pw)],eR.prototype,"gFiltersService",void 0);let eA=(0,s.P9)(eR),eT=(0,u.A)(eA,function(){var e=this._self._c;return this._self._setupProxy,e("UIButton",{directives:[{name:"cy",rawName:"v-cy",value:"openFiltersButton",expression:"'openFiltersButton'"}],staticClass:"filters-button",attrs:{variant:"toolbar"},on:{click:this.handleOpenFilter}},[e("UIIcon",{staticClass:"icon-filters",attrs:{name:"filter"}}),this._v("\n  "+this._s(this.$t("Product.list.Filter"))+"\n  "),e("UIIcon",{staticClass:"icon-filters is-arrow",attrs:{name:"chevron-right"}})],1)},[],!1,null,"961e9496",null).exports;var eE=i(64454),eN=i(28898),eG=i(31963);function eD(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class eV extends s.$G{get listService(){return this.isSearchPage()?this.gSearchResultsService:this.gGenericProductListService}get isList(){return this.listService.state.displayMode===eE.q9.LIST}get isGrid(){return this.listService.state.displayMode===eE.q9.GRID}setListingViewMode(e){this.gCookieStorage.set(eG.Zn,e===eE.q9.LIST?1:2,365),this.listService.state.displayMode=e}changeViewMode(e){this.setListingViewMode(e)}isSearchPage(){return"Search:Results"===this.gRouter.currentRoute.name}}eD([(0,o.y_)(p.sK)],eV.prototype,"gGenericProductListService",void 0),eD([(0,o.y_)(eN.k0)],eV.prototype,"gSearchResultsService",void 0),eD([(0,o.y_)(a.iR)],eV.prototype,"gCookieStorage",void 0),eD([(0,o.y_)(a.Ii)],eV.prototype,"gRouter",void 0);let e$=(0,s.P9)(eV),eB=(0,u.A)(e$,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"view-mode"},[t("div",{staticClass:"view-button",class:{active:e.isGrid},attrs:{role:"button",tabindex:"-1"},on:{click:function(t){return e.changeViewMode("grid")},keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.target.click()}}},[t("UIIcon",{staticClass:"view-icon is-view-one",attrs:{name:"view-1"}}),e._v(" "),t("UIIcon",{staticClass:"view-icon is-view-three",attrs:{name:"view-3"}})],1),e._v(" "),t("div",{staticClass:"view-button",class:{active:e.isList},attrs:{role:"button",tabindex:"-1"},on:{click:function(t){return e.changeViewMode("list")},keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.target.click()}}},[t("UIIcon",{staticClass:"view-icon is-view-two",attrs:{name:"view-2"}}),e._v(" "),t("UIIcon",{staticClass:"view-icon is-view-four",attrs:{name:"view-4 "}})],1)])},[],!1,null,"6a3b4cd3",null).exports;var ej=i(15849);function ez(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class eU extends s.$G{}ez([(0,s.kv)({type:String})],eU.prototype,"headerText",void 0),eU=ez([(0,s.XF)({EmptyListCarousel:ej.A})],eU);let eq=(0,s.P9)(eU),eH=(0,u.A)(eq,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"empty-list"},[e("h1",{staticClass:"list-title"},[this._v(this._s(this.headerText))]),this._v(" "),e("UIIcon",{attrs:{name:"empty-search"}}),this._v(" "),e("h3",{staticClass:"empty-list-heading"},[this._v(this._s(this.$t("Product.list.empty.title")))]),this._v(" "),e("UIButton",{staticClass:"button",attrs:{route:"Home:HomePage",variant:"primary-link"}},[this._v("\n    "+this._s(this.$t("Product.list.empty.goBackToShop"))+"\n  ")]),this._v(" "),e("EmptyListCarousel",{attrs:{zoneName:"ListPage:Recommendations"}})],1)},[],!1,null,"8508be5e",null).exports;var eW=i(82347),eY=i(90983),eK=i(82643),eZ=i(94608);function eX(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class eJ extends s.$G{get isMobile(){return this.gClientService.isMobile}get isTablet(){return this.gClientService.isTablet}get isDesktop(){return this.gClientService.isDesktop}get categoryId(){return String(this.gFiltersService.state.categoryId)}get prices(){return this.gFiltersService.state.filtersPrice}get activePriceFilter(){return this.gFiltersService.state.filtersActivePrice}get isEmpty(){return this.totalItems<=0}get hasSeoText(){var e;return!!(null!=(e=this.gSEOService.getRobotsText)?e:this.gSEOService.getRobotsTextFiltered)}get hasFilters(){var e,t,i,r;let s=null==(e=this.gRouteResolverService.state.resolvedRoute)?void 0:e.filters;return!!((null==s||null==(t=s.constantFilter)?void 0:t.length)||(null==s||null==(i=s.variableFilters)?void 0:i.length)||(null==s||null==(r=s.priceFilter)?void 0:r.length))}get maxScrollYPositionValue(){return this.isMobile?330:440}get hasToolbarFixedPosition(){return!this.initialScrollYPosition&&!this.isDesktop}get hasHeaderFixedPosition(){return!this.initialScrollYPosition}handleFilter(){this.$emit("filter")}handleClear(){this.$emit("clear")}async handleSortToggle(e){e?this.toolbarRef.classList.add("is-open"):(await (0,eb.yy)(200),this.toolbarRef.classList.remove("is-open"))}async seoLandingPageText(){try{this.cms=await this.gCMSService.getCmsContent({place:eW.YR.LISTING,zone:eW.bo.LISTING_BOTTOM_TEXT,product_category:this.categoryId},!0)}
1catch(e){this.gLogger.warn("ListLayout:seoLandingPageText","Cannot load cms content",e)}}handleChangeYPosition(e){this.initialScrollYPosition=e<=this.maxScrollYPositionValue}async $serverPrefetch(){this.hasFilters||await this.seoLandingPageText()}async $mounted(){document.addEventListener("scroll",()=>{this.scrollYPosition=window.scrollY}),this.hasFilters||this.cms||await this.seoLandingPageText();let{filtersOriginalPrice:e,filtersActivePrice:t}=this.gFiltersService.state;0!==t.min&&t.min<e.min&&(t.min=0),0!==t.max&&t.max>e.max&&(t.max=0)}constructor(...e){super(...e),this.whatYouGainPlace=eW.YR.LISTING,this.whatYouGainZone=eW.bo.BRAND_AND_TRENDS,this.cms=null,this.scrollYPosition=0,this.initialScrollYPosition=!0,this.whatYouGainIcon=!0}}eX([(0,o.y_)(R.rk)],eJ.prototype,"gCMSService",void 0),eX([(0,o.y_)(L.pw)],eJ.prototype,"gFiltersService",void 0),eX([(0,o.y_)(k.ZX)],eJ.prototype,"gSEOService",void 0),eX([(0,o.y_)(a.Fd)],eJ.prototype,"gLogger",void 0),eX([(0,o.y_)(a.F2)],eJ.prototype,"gRouteResolverService",void 0),eX([(0,o.y_)(O.lN)],eJ.prototype,"gClientService",void 0),eX([(0,s.kv)({default:10,type:Number})],eJ.prototype,"totalPages",void 0),eX([(0,s.kv)({type:Number})],eJ.prototype,"currentPage",void 0),eX([(0,s.kv)({default:1,type:Number})],eJ.prototype,"page",void 0),eX([(0,s.kv)({default:!1,type:Boolean})],eJ.prototype,"isLoading",void 0),eX([(0,s.kv)({default:0,type:Number})],eJ.prototype,"totalItems",void 0),eX([(0,s.kv)({default:!1,type:Boolean})],eJ.prototype,"useCustomCapturing",void 0),eX([(0,s.kv)({type:String})],eJ.prototype,"headerText",void 0),eX([(0,s.oS)()],eJ.prototype,"toolbarRef",void 0),eX([(0,eY.y)("ListLayout:cms")],eJ.prototype,"cms",void 0),eX([(0,s.ox)("scrollYPosition")],eJ.prototype,"handleChangeYPosition",null),eJ=eX([(0,s.XF)({ListBanner:I,Filters:ew,Sort:eM,ItemsPerPage:y,FiltersMobile:eT,ViewMode:eB,Pagination:h,EmptyList:eH,WhatYouGain:eK.A,CustomSeoTextList:eZ.A}),(0,s.q5)(["filter","clear"])],eJ);let eQ=(0,s.P9)(eJ),e0=(0,u.A)(eQ,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"list-layout"},[this.isEmpty?e("div",{staticClass:"empty"},[e("EmptyList",{attrs:{headerText:this.headerText}}),this._v(" "),e("div",{directives:[{name:"cy",rawName:"v-cy",value:"seoList",expression:"'seoList'"}],staticClass:"list-seo"},[!this.hasFilters&&this.cms?e("CustomSeoTextList",{attrs:{cms:this.cms.content}}):this._e(),this._v(" "),this.hasSeoText?this._t("seo"):this._e(),this._v(" "),this.cms?e("WhatYouGain",{attrs:{place:this.whatYouGainPlace,zone:this.whatYouGainZone,categoryId:this.categoryId,icon:this.whatYouGainIcon}}):this._e()],2)],1):e("div",{staticClass:"list-container"},[e("ListBanner"),this._v(" "),e("header",{staticClass:"list-header"},[this._t("listHeader"),this._v(" "),e("p",{staticClass:"list-count"},[this._v("("+this._s(this.totalItems)+")")])],2),this._v(" "),e("div",{staticClass:"list-content",class:{"is-distant-mobile":this.hasHeaderFixedPosition&&!this.isDesktop}},[e("div",{directives:[{name:"cy",rawName:"v-cy",value:"listToolbarTop",expression:"'listToolbarTop'"}],ref:"toolbarRef",staticClass:"list-toolbar is-top",class:{"is-fixed":this.hasToolbarFixedPosition,"is-distant-desktop":this.hasHeaderFixedPosition&&this.isDesktop}},[e("FiltersMobile"),this._v(" "),e("Sort",{attrs:{setInitialValue:!1},on:{toggle:this.handleSortToggle}}),this._v(" "),e("ItemsPerPage"),this._v(" "),e("ViewMode"),this._v(" "),e("Pagination",{attrs:{currentPage:this.currentPage,totalPages:this.totalPages}})],1),this._v(" "),e("Filters",{class:{"is-fixed":this.hasHeaderFixedPosition},attrs:{activePriceFilter:this.activePriceFilter,priceMin:this.prices.min,priceMax:this.prices.max,useCustomCapturing:this.useCustomCapturing},on:{filter:this.handleFilter,clear:this.handleClear}}),this._v(" "),e("div",{directives:[{name:"cy",rawName:"v-cy",value:"contentListOffers",expression:"'contentListOffers'"}],staticClass:"list-offers"},[this._t("offers")],2),this._v(" "),e("div",{staticClass:"list-toolbar is-bottom"},[e("Sort",{attrs:{setInitialValue:!1}}),this._v(" "),e("ItemsPerPage"),this._v(" "),e("ViewMode"),this._v(" "),e("Pagination",{attrs:{currentPage:this.currentPage,totalPages:this.totalPages}}
1)],1)],1),this._v(" "),e("div",{directives:[{name:"cy",rawName:"v-cy",value:"seoList",expression:"'seoList'"}],staticClass:"list-seo"},[!this.hasFilters&&this.cms?e("CustomSeoTextList",{attrs:{cms:this.cms.content}}):this._e(),this._v(" "),this.hasSeoText?this._t("seo"):this._e(),this._v(" "),this.cms?e("WhatYouGain",{attrs:{place:this.whatYouGainPlace,zone:this.whatYouGainZone,categoryId:this.categoryId,icon:this.whatYouGainIcon}}):this._e()],2)],1)])},[],!1,null,"9a9d7e94",null).exports},49578(e,t,i){i.d(t,{A:()=>V});var r=i(12205),s=i(22520),o=i(20990),n=i(86369),a=i(71884),l=i(44982),c=i(53079);function d(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class u extends r.$G{get formattedPrice(){return this.gPriceService.formattedPrice(this.price)}get price(){return this.gPriceService.formatPrice(this.omnibusPrice,this.currency,this.options)}get currency(){return this.gPriceService.getCurrencyMapping(this.gPriceService.getDefaultCurrency())}}d([(0,c.y_)(a.BB)],u.prototype,"gPriceService",void 0),d([(0,r.kv)({required:!0,type:Number})],u.prototype,"omnibusPrice",void 0),d([(0,r.kv)({default:()=>({})})],u.prototype,"options",void 0);let h=(0,r.P9)(u);var p=i(12340);let v=(0,p.A)(h,function(){var e=this._self._c;return this._self._setupProxy,e("span",{directives:[{name:"cy",rawName:"v-cy",value:"productOmnibusPrice",expression:"'productOmnibusPrice'"}]},[e("span",{staticClass:"old-price is-line-through"},[this._v("\n    "+this._s(this.formattedPrice)+"\n  ")]),this._v(" "),e("span",{staticClass:"label"},[this._v("- "+this._s(this.$t("Common.Global.Omnibus.LabelShort")))])])},[],!1,null,"77fdbe88",null).exports;var f=i(12772),g=i(29510),y=i(15921),m=i(63757),S=i(73159),_=i(58155);function P(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class b extends r.$G{get offersCount(){return this.offers.length}get hiddenElementsCount(){return Math.max(this.offersCount-this.productCountToShow,0)}get transformKey(){return g.T.GALLERY_60_60}get amplienceImageType(){return m.v.ImageType.LIST}variantImage(e){var t,i;return null!=(t=null==(i=e.offer.gallery)?void 0:i[0])?t:""}variantLink(e){var t;return null!=(t=e.offer.link)?t:""}isHidden(e){return!this.showAllOffers&&e+1>this.productCountToShow}showProductVariant(e){this.$emit("showProductVariant",e)}hideProductVariant(){this.$emit("hideProductVariant")}capitalize(e){return(0,_.ZH)(e)}constructor(...e){super(...e),this.productCountToShow=3}}P([(0,r.kv)()],b.prototype,"offers",void 0),P([(0,r.kv)({type:Boolean})],b.prototype,"showAllOffers",void 0),b=P([(0,r.XF)({ImageWrapper:y.A}),(0,r.q5)(["showProductVariant","hideProductVariant"])],b);let C=(0,r.P9)(b),x=(0,p.A)(C,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"color-variants"},[e.showAllOffers?t("span",{staticClass:"colors-label"},[e._v(e._s(e.$t("Product.list.colors"))+":")]):e._e(),e._v(" "),t("div",{staticClass:"colors"},[e._l(e.offers,function(i,r){return t("UILink",{key:i.offer.id,class:{"is-hidden":e.isHidden(r)},attrs:{href:i.offer.link,title:e.capitalize(i.label),tabindex:"-1"},on:{mouseenter:function(t){return e.showProductVariant(i)},mouseleave:e.hideProductVariant}},[t("ImageWrapper",{attrs:{src:e.variantImage(i),alt:e.capitalize(i.label),offerId:i.offer.id,lazyLoadRootMargin:400,transformKey:e.transformKey,amplienceTransform:e.amplienceImageType,width:"28",height:"28",lazyLoad:""}})],1)}),e._v(" "),!e.showAllOffers&&e.hiddenElementsCount?t("span",{staticClass:"hidden-elements-count"},[e._v("+ "+e._s(e.hiddenElementsCount))]):e._e()],2)])},[],!1,null,"54e4c478",null).exports;class I extends r.$G{}!function(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);o>3&&n&&Object.defineProperty(t,i,n)}([(0,r.kv)()],I.prototype,"sizes",void 0);let F=(0,r.P9)(I),w=(0,p.A)(F,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"size-variants"},[t("span",{staticClass:"sizes-label"},[e._v(e._s(e.$t("Product.list.sizes"))+":")]),e._v(" "),t("div",{staticClass:"sizes"},e._l(e.sizes,function(i){return t("span",{key:i.size,staticClass:"size",class:{"
1is-unavailable":!i.isAvailable}},[e._v("\n      "+e._s(i.size)+"\n    ")])}),0)])},[],!1,null,"7237d5db",null).exports;var L=i(46398),k=i(3797),O=i(68124),M=i(8035),R=i(83043),A=i(61860),T=i(59306),E=i(67946);function N(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class G extends r.$G{get imgAlt(){var e,t,i,r;let s=null==(t=this.offer.categories)?void 0:t[0],o=null!=(e=null==s||null==(r=s.attributes)||null==(i=r.find(e=>"images_alt_prefix"===e.code))?void 0:i.value)?e:"";return o?`${o} ${this.offer.name}`:this.offer.name}get presentedOffer(){var e;return null!=(e=this.hoveredVariant)?e:this.offer}get offerImage(){var e,t;return null!=(e=null==(t=this.presentedOffer.gallery)?void 0:t[0])?e:""}get transformKey(){return g.T.GALLERY_455_455}get offerCategoryName(){var e,t,i;return null!=(e=null==(i=this.offer.categories)||null==(t=i[0])?void 0:t.name)?e:""}get offerUrl(){return this.offer.link}get currency(){return this.gPriceService.getCurrencyMapping(this.gPriceService.getDefaultCurrency())}get listEmblemsLeft(){return this.gEmblemsService.getEmblems(this.offer,R.f.LIST,A.C.EMBLEM_LIST_LEFT)}get listEmblemsBottom(){return this.gEmblemsService.getEmblems(this.offer,R.f.LIST,A.C.EMBLEM_LIST_BOTTOM)}get listEmblemsRight(){return this.gEmblemsService.getEmblems(this.offer,R.f.LIST,A.C.EMBLEM_LIST_RIGHT)}get isUnavailable(){var e,t;return(null==(t=this.offer)||null==(e=t.availability)?void 0:e.type)===s.DZ.ARCHIVED}get amplienceImageType(){return m.v.ImageType.LIST}get producerAttribute(){return(0,o.dA)(this.offer,"producer")}get productErpId(){var e;return null!=(e=(0,o.Ac)(this.offer,"erp_id"))?e:""}get salonsCodeGM(){var e;return null!=(e=(0,o.WA)(this.offer,"salonsCodeGM"))?e:""}get baseColorCodeName(){var e;return null!=(e=(0,o.WA)(this.offer,"baseColorCodeName"))?e:""}get childrenCategories(){return[this.gTranslationService.translate("Product.Category.Junior"),this.gTranslationService.translate("Product.Category.Kids"),this.gTranslationService.translate("Product.Category.Infants")].map(e=>e.toLowerCase())}get itemGenderName(){var e;let t=null!=(e=(0,o.WA)(this.offer,"itemGenderName"))?e:"";return"string"==typeof t&&this.childrenCategories.includes(t.toLowerCase())?this.gTranslationService.translate("Product.Category.ForKids"):t}get seasonCode(){var e;return null!=(e=(0,o.WA)(this.offer,"seasonCode"))?e:""}get producerCode(){var e;return null!=(e=(0,o.WA)(this.offer,"producer_code"))?e:""}get formattedPrice(){return this.gPriceService.formatPrice(this.currentPrice,this.gPriceService.getDefaultCurrency(),{decimal:".",thousand:"",format:"%v"}).formattedPrice}get currentPrice(){var e,t;return null!=(e=null==(t=this.displayPrices)?void 0:t.currentPrice)?e:0}get firstPrice(){var e,t;return null!=(e=null==(t=this.displayPrices)?void 0:t.firstPrice)?e:0}get lastLowestPrice(){var e,t;return null!=(e=null==(t=this.displayPrices)?void 0:t.lastLowestPrice)?e:0}get producerName(){var e,t,i;return this.producerAttribute&&null!=(e=null==(i=this.producerAttribute.extended_values)||null==(t=i[0])?void 0:t.name)?e:""}get additional(){return this.gProductListAdditionalService.getAdditionals(this.offer.product_id)}get sizesVariant(){var e,t;return null==(t=this.additional)||null==(e=t.variants)?void 0:e.find(e=>"sizes"===e.type)}get colorsAndSizesVariant(){var e,t;return null==(t=this.additional)||null==(e=t.variants)?void 0:e.find(e=>"colors_and_sizes"===e.type)}get colorAndSizesVariantItem(){var e,t;return null!=(e=null==(t=this.colorsAndSizesVariant)?void 0:t.variant_product_offer)?e:[]}get colorsAndSizesOffers(){return this.colorAndSizesVariantItem.length?this.colorAndSizesVariantItem.map(e=>({label:e.label,offer:e.offer,variants:e.variants||[]})):[]}get sizeVariants(){var e,t,i;if(!this.hoveredVariant)return this.sizesVariant?((null==(i=this.sizesVariant)?void 0:i.variant_product_offer)||[]).map(e=>({size:e.label,isAvailable:this.isOfferAvailable(e.offer)})):[];let r=this.colorAndSizesVariantItem.find(e=>{var t,i;return(null==(t=e.offer)?void 0:t.id)===(null==(i=this.hoveredVariant)?void 0:i.id)});return((null==r||null==(t=r.variants)||null==(e=t[0])?void 0:e.variant_product_offer)||[]).map(e=>({size:e.label,isAvailable:this.isOfferAvailable(e.offer)}))}get displayAsHovered(){return this.gClientService.isDesktop&&this.isHovered}isOfferAvailable(e){return!!((null==e?void 0:e.id)&&0!==e.id)}handleGtmClick(){var e;this.gGTMEventsGlobalController.offerClick(this.offer,this.index),this.gGTMEventsGlobalController.offerClickGtag(this.offer,this.index),(null==(e=this.gSyneriseSearchService)?void 0:e.isSearchPage)&&(this.gGTMEventsGlobalController.offerClickSyneriseSearch(this.offer),this.gSyneriseSearchService.sendSearchedItemData(this.productErpId,this.offer.name,this.index))}handleGtmMousedown(e){1===e.button&&this.handleGtmClick()}showProductVariant(e){this.hoveredVariant=e.offer}hideProductVariant(){this.hoveredVariant=null}processPrices(){this.displayPrices=this.gPriceService.getDisplayPricesFromOffer(this.presentedOffer)}$serverPrefetch(){this.processPrices()}$beforeMount(){this.displayPrices||this.processPrices()}constructor(...e){super(...e),this.isHovered=!1,this.hoveredVariant=null,this.displayPrices=null}}N([(0,c.y_)(k.Ln)],G.prototype,"gGTMEventsGlobalController",void 0),N([(0,c.y_)(a.BB)],G.prototype,"gPriceService",void 0),N([(0,c.y_)(f.Vz)],G.prototype,"gMenuTreeService",void 0),N([(0,c.y_)(L.lN)],G.prototype,"gClientService",void 0),N([(0,c.y_)(O.ME)],G.prototype,"gProductListAdditionalService",void 0),N([(0,c.y_)(T.dS)],G.prototype,"gTranslationService",void 0),N([(0,c.UN)(E._)],G.prototype,"gSyneriseSearchService",void 0),N([(0,c.y_)(k.Rm)],G.prototype,"gEmblemsService",void 0),N([(0,r.kv)({required:!0})],G.prototype,"offer",void 0),N([(0,r.kv)({type:Number})],G.prototype,"index",void 0),N([(0,r.ox)("presentedOffer")],G.prototype,"processPrices",null),G=N([(0,r.XF)({MainPrice:n.A,OldPrice:l.A,OmnibusPrice:v,ImageWrapper:y.A,BrandIcon:S.A,ColorVariants:x,SizeVariants:w,PhotoEmblemsList:M.A})],G);let D=(0,r.P9)(G),V=(0,p.A)(D,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"cy",rawName:"v-cy",value:"productBox",expression:"'productBox'"}
1],staticClass:"offer",class:{"is-hovered":e.displayAsHovered},attrs:{"data-offer-id":e.offer.id,"data-product-id":e.offer.product_id,"data-index":e.productErpId,"data-mpn":e.producerCode,"data-name":e.offer.name,"data-price":e.formattedPrice,"data-brand":e.producerName,"data-color":e.baseColorCodeName,"data-gender":e.itemGenderName,"data-season":e.seasonCode,"data-category":e.offerCategoryName},on:{click:e.handleGtmClick,contextmenu:e.handleGtmClick,mousedown:e.handleGtmMousedown,mouseenter:function(t){e.isHovered=!0},mouseleave:function(t){e.isHovered=!1}}},[t("div",{staticClass:"inner"},[t("div",{staticClass:"image-aspect"},[t("div",{staticClass:"image-content"},[t("div",{staticClass:"image"},[t("a",{directives:[{name:"cy",rawName:"v-cy",value:"productLink",expression:"'productLink'"},{name:"route",rawName:"v-route",value:e.offerUrl,expression:"offerUrl"}],attrs:{tabindex:"-1","aria-label":e.$t("Product.List.GoTo")+e.offer.name}},[t("ImageWrapper",{attrs:{src:e.offerImage,alt:e.imgAlt,transformKey:e.transformKey,amplienceTransform:e.amplienceImageType,offerId:e.offer.id,lazyLoad:"",iosForceReflow:"",width:"455",height:"455"}})],1),e._v(" "),t("PhotoEmblemsList",{staticClass:"is-left",attrs:{emblems:e.listEmblemsLeft,isUnavailable:e.isUnavailable}}),e._v(" "),t("PhotoEmblemsList",{staticClass:"is-bottom",attrs:{emblems:e.listEmblemsBottom,isUnavailable:e.isUnavailable}}),e._v(" "),t("PhotoEmblemsList",{staticClass:"is-right",attrs:{emblems:e.listEmblemsRight,isUnavailable:e.isUnavailable}})],1)])]),e._v(" "),t("a",{directives:[{name:"route",rawName:"v-route",value:e.offer.link,expression:"offer.link"}],staticClass:"title",attrs:{"aria-label":e.$t("Product.List.GoTo")+e.offer.name}},[e._v("\n      "+e._s(e.offer.name)+"\n      "),t("span",{staticClass:"gender-category"},[e._v(e._s(e.itemGenderName))])]),e._v(" "),t("div",{staticClass:"prices"},[t("MainPrice",{attrs:{mainPrice:e.currentPrice,currency:e.currency}}),e._v(" "),e.firstPrice?t("OldPrice",{attrs:{oldPrice:e.firstPrice}}):e._e(),e._v(" "),e.lastLowestPrice?t("OmnibusPrice",{staticClass:"omnibus-price",attrs:{omnibusPrice:e.lastLowestPrice}}):e._e()],1)]),e._v(" "),t("div",{staticClass:"variants-container"},[t("ColorVariants",{attrs:{offers:e.colorsAndSizesOffers,showAllOffers:e.displayAsHovered},on:{showProductVariant:e.showProductVariant,hideProductVariant:e.hideProductVariant}}),e._v(" "),e.displayAsHovered?t("SizeVariants",{staticClass:"size-variants-container",attrs:{sizes:e.sizeVariants}}):e._e(),e._v(" "),t("BrandIcon",{staticClass:"brand",attrs:{alt:e.producerName,salonsCodeGM:e.salonsCodeGM,lazyLoad:""}})],1)])},[],!1,null,"12b44036",null).exports},23313(e,t,i){i.d(t,{A:()=>v});var r=i(12205),s=i(49578),o=i(30659),n=i(64611),a=i(3797),l=i(53079),c=i(68124),d=i(24895);function u(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class h extends r.$G{getProductUrl(e){return e.link}async loadAdditional(e){await this.gProductListAdditionalService.loadOfferAdditionals({productId:e.product_id,extraGQLBlocks:[d.P.SIZEER_LIST_VARIANTS,d.P.EMBLEMS]})}async handleGtmEvent(e,t){this.gProductListAdditionalService.getAdditionals(e.product_id)||await this.loadAdditional(e),this.gGTMEventsGlobalController.mapImpressionOffer(e,t+1),this.gGTMEventsGlobalController.mapImpressionOfferGtag(e,t+1),this.gGTMEventsGlobalController.gtmProductImpression(),this.gGTMEventsGlobalController.gtmProductImpressionGtag("view_item_list")}async handleOfferVisible(e){await this.loadAdditional(e)}}u([(0,l.y_)(a.Ln)],h.prototype,"gGTMEventsGlobalController",void 0),u([(0,r.kv)()],h.prototype,"offers",void 0),u([(0,r.kv)({default:o.q.LIST,type:String})],h.prototype,"displayMode",void 0),u([(0,l.y_)(c.ME)],h.prototype,"gProductListAdditionalService",void 0),h=u([(0,r.XF)({Offer:s.A,IntersectionContent:n.A})],h);let p=(0,r.P9)(h),v=(0,i(12340).A)(p,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"offers",class:`is-${e.displayMode}`},e._l(e.offers,function(i,r){return t("LazyHydration",{key:i.id,attrs:{whenVisible:0!==r&&{rootMargin:"768px"},whenIdle:0===r}},[t("IntersectionContent",{attrs:{rootMargin:"500px",emitOnce:""},on:{enter:function(t){return e.handleOfferVisible(i)}}},[t("IntersectionContent",{attrs:{threshold:.5,emitOnce:""},on:{enter:function(t){return e.handleGtmEvent(i,r)}}},[t("Offer",{key:i.id,attrs:{offer:i,index:r+1}})],1)],1)],1)}),1)},[],!1,null,"06bbde82",null).exports},63346(e,t,i){i.d(t,{A:()=>d});var r=i(12205),s=i(53079),o=i(28772),n=i(94608);function a(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class l extends r.$G{get seoTexts(){var e,t,i;let r=null!=(e=null!=(t=this.gSEOService.getRobotsText)?t:this.gSEOService.getRobotsTextFiltered)?e:"";return null!=(i=this.gSEOUtils.getListingProductsCount("COUNT",r,this.totalItems))?i:null}}a([(0,s.y_)(o.ZX)],l.prototype,"gSEOService",void 0),a([(0,s.y_)(o.DV)],l.prototype,"gSEOUtils",void 0),a([(0,r.kv)({default:0,type:Number})],l.prototype,"totalItems",void 0),l=a([(0,r.XF)({CustomSeoTextList:n.A})],l);let c=(0,r.P9)(l),d=(0,i(12340).A)(c,function(){var e=this._self._c;return this._self._setupProxy,e("section",{staticClass:"seo-texts"},[e("CustomSeoTextList",{attrs:{cms:this.seoTexts}}
1)],1)},[],!1,null,"6c3b44c0",null).exports},94608(e,t,i){i.d(t,{A:()=>y});var r=i(12205),s=i(57238),o=i(53079),n=i(46398);function a(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class l extends r.$G{get clientWidth(){return this.gClientService.state.width}get toggleTextKey(){return this.isExpanded?"Product.List.SeoLess":"Product.List.SeoMore"}get maxHeightOfSeoText(){return this.fMaxHeightOfSeoText}get textItemStyle(){return this.isSSR||!this.isToggleVisible||this.isExpanded?{}:{"max-height":`${this.maxHeightOfSeoText.toString()}px`}}scrollToTargetPosition(){let e=this.customSeoTextItem.getBoundingClientRect().top+window.scrollY-document.documentElement.clientTop-260;window.scrollTo({top:e,behavior:"smooth"})}handleToggle(){this.isExpanded=!this.isExpanded,this.isExpanded||this.scrollToTargetPosition()}setMaxHeightOfSeoText(){let e=this.isFaq?"h3 + div p":"h2 + p",t=this.customSeoTextItem.querySelectorAll(e);if(!t.length||!this.isToggleVisible)return;let i=t[1],r=this.isFaq?24:32;this.fMaxHeightOfSeoText=i.offsetTop+i.offsetHeight-r}changePixelValue(){this.setMaxHeightOfSeoText()}$mounted(){this.isSSR=!1,this.setMaxHeightOfSeoText()}constructor(...e){super(...e),this.isExpanded=!1,this.fMaxHeightOfSeoText=0,this.isSSR=!0}}a([(0,o.y_)(n.lN)],l.prototype,"gClientService",void 0),a([(0,r.oS)()],l.prototype,"customSeoTextItem",void 0),a([(0,r.kv)({type:String})],l.prototype,"item",void 0),a([(0,r.kv)({type:Boolean})],l.prototype,"isToggleVisible",void 0),a([(0,r.kv)({type:Boolean})],l.prototype,"isFaq",void 0),a([(0,r.ox)("clientWidth")],l.prototype,"changePixelValue",null),l=a([(0,r.XF)({AdafirHTML:s.A})],l);let c=(0,r.P9)(l);var d=i(12340);let u=(0,d.A)(c,function(){var e=this._self._c;return this._self._setupProxy,e("div",{ref:"customSeoTextItem",staticClass:"custom-seo-text-item"},[e("AdafirHTML",{staticClass:"list-cms",class:{"is-faded":this.isToggleVisible&&!this.isExpanded,"is-expanded":!this.isToggleVisible||this.isExpanded,ssr:this.isSSR},style:this.textItemStyle,attrs:{content:this.item}}),this._v(" "),this.isToggleVisible?e("div",{staticClass:"show-more",class:{"is-expanded":this.isExpanded},on:{click:this.handleToggle}},[this._v("\n    "+this._s(this.$t(this.toggleTextKey))+"\n  ")]):this._e()],1)},[],!1,null,"b924db20",null).exports;var h=i(3797),p=i(90983);function v(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class f extends r.$G{async processCmsContent(){this.seoTextArray=await this.gSeoTextsService.processCMSContent(this.cms)}async $serverPrefetch(){await this.processCmsContent()}async $mounted(){this.seoTextArray||await this.processCmsContent()}constructor(...e){super(...e),this.seoTextArray=null}}v([(0,o.y_)(h.ve)],f.prototype,"gSeoTextsService",void 0),v([(0,p.y)("CustomSeoTextList:seoTextArray")],f.prototype,"seoTextArray",void 0),v([(0,r.kv)({required:!0,type:String})],f.prototype,"cms",void 0),f=v([(0,r.XF)({CustomSeoTextItem:u})],f);let g=(0,r.P9)(f),y=(0,d.A)(g,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"custom-seo-text-list"},this._l(this.seoTextArray,function(t,i){return e("CustomSeoTextItem",{key:i,attrs:{item:t.content,isFaq:t.isFaq,isToggleVisible:t.isToggleVisible}})}),1)},[],!1,null,"15094fd2",null).exports},27691(e,t,i){i.d(t,{A:()=>_});var r=i(12205),s=i(41491),o=i(53079),n=i(49388),a=i(74653),l=i(59306),c=i(64611),d=i(95997),u=i(49578),h=i(64454),p=i(68124),v=i(24895),f=i(17409),g=i(24819);function y(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class m extends r.$G{get productLimit(){return this.displayMode===h.q9.LIST?4:3}get productList(){return this.fProductList.slice(0,this.productLimit)}async handleEnter(e){try{let t=await this.gSDKDynamicZoneService.getGQLSDKProducts(e,a.G.SYNERISE_OFFER_SIMPLE);if(!t.length)return;this.fProductList=t}
1catch(e){this.gLogger.warn("SyneriseProductRow:handleEnter - Cannot load products",e)}finally{this.isReadyEventSent||(await this.$vue.$nextTick(),this.gEvents.trigger(f.A,{zone:this.zoneName}),this.isReadyEventSent=!0)}}async handleOfferVisible(e){await this.gProductListAdditionalService.loadOfferAdditionals({productId:e.product_id,extraGQLBlocks:[v.P.SIZEER_LIST_VARIANTS,v.P.EMBLEMS]})}constructor(...e){super(...e),this.zoneName=g.xg.LIST_PAGE_SELECTED_FOR_YOU,this.isReadyEventSent=!1,this.fProductList=[]}}y([(0,o.y_)(n.fo)],m.prototype,"gSDKDynamicZoneService",void 0),y([(0,o.y_)(l.Fd)],m.prototype,"gLogger",void 0),y([(0,o.y_)(p.ME)],m.prototype,"gProductListAdditionalService",void 0),y([(0,o.y_)(l.yh)],m.prototype,"gEvents",void 0),y([(0,r.kv)()],m.prototype,"displayMode",void 0),m=y([(0,r.XF)({DynamicZone:s.A,IntersectionContent:c.A,Context:d.A,Offer:u.A})],m);let S=(0,r.P9)(m),_=(0,i(12340).A)(S,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"synerise-product-row"},[t("DynamicZone",{attrs:{name:e.zoneName},scopedSlots:e._u([{key:"dataObject",fn:function({data:i,list:r}){return[t("Context",{attrs:{contextData:{context:r}}},[t("IntersectionContent",{attrs:{rootMargin:"200px"},on:{enter:function(t){return e.handleEnter(i)}}},[t("div",{staticClass:"products",class:`is-${e.displayMode}`},e._l(e.productList,function(i){return t("IntersectionContent",{key:i.id,attrs:{rootMargin:"500px",emitOnce:""},on:{enter:function(t){return e.handleOfferVisible(i)}}},[t("Offer",{attrs:{offer:i}})],1)}),1)])],1)]}}])})],1)},[],!1,null,"62fb49f8",null).exports},6785(e,t,i){i.d(t,{A:()=>h});var r=i(12205),s=i(3797),o=i(53079),n=i(59306),a=i(47316),l=i(67788);function c(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class d extends r.$G{get wishList(){return this.gWishListManagerService.getDefaultWishListForProducts()}get isVisible(){return this.gWishListModalService.state.isVisible}get variant(){return this.gWishListModalService.state.variant}get infoText(){switch(this.variant){case a.v.PRODUCT_ADDED:return this.gTranslationService.translate("Product.Show.WishListModal.ProductAdded");case a.v.NOT_LOGGED_IN:default:return this.gTranslationService.translate("Product.Show.WishListModal.NotLoggedIn")}}get buttonText(){switch(this.variant){case a.v.PRODUCT_ADDED:return this.gTranslationService.translate("Product.Show.WishListModal.GoToWishListButton");case a.v.NOT_LOGGED_IN:default:return this.gTranslationService.translate("Product.Show.WishListModal.LoginButton")}}handleClick(){switch(this.variant){case a.v.PRODUCT_ADDED:return this.handleModalClose(),this.gRouter.redirect({name:"Customer:YourAccount"});case a.v.NOT_LOGGED_IN:var e;return null==(e=this.wishList)||e.setPendingWishlistItem(),this.handleModalClose(),this.gRouter.redirect({name:"Customer:Login",query:{redirectTo:this.gRouter.currentRoute.path}});default:return this.handleModalClose(),this.gRouter.redirect({name:"Customer:Login",query:{redirectTo:this.gRouter.currentRoute.path}})}}handleModalClose(){this.gWishListModalService.closeModal()}}c([(0,o.y_)(s.Q3)],d.prototype,"gWishListModalService",void 0),c([(0,o.y_)(n.dS)],d.prototype,"gTranslationService",void 0),c([(0,o.y_)(n.Ii)],d.prototype,"gRouter",void 0),c([(0,o.y_)(l.mj)],d.prototype,"gWishListManagerService",void 0);let u=(0,r.P9)(d),h=(0,i(12340).A)(u,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("UIModal",{staticClass:"wish-list-modal",attrs:{visible:e.isVisible},on:{close:e.handleModalClose},scopedSlots:e._u([{key:"header",fn:function(){return[e._v("\n    "+e._s(e.$t("Product.Show.WishListModal.Title"))+"\n  ")]},proxy:!0},{key:"content",fn:function(){return[t("span",{staticClass:"info-text"},[e._v(e._s(e.infoText))]),e._v(" "),t("div",{staticClass:"button-wrapper",on:{click:e.handleClick}},[t("UIButton",{attrs:{variant:"secondary"}},[e._v("\n        "+e._s(e.buttonText)+"\n      ")])],1)]},proxy:!0}])})},[],!1,null,"5ca26f42",null).exports},82643(e,t,i){i.d(t,{A:()=>p});var r=i(12205),s=i(46398),o=i(53079),n=i(12772),a=i(57238),l=i(516),c=i(59306);function d(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class u extends r.$G{async loadBrandAndTrendsCMSText(e){try{this.brandAndTrendsCMS=await this.gCMSService.getCmsContent({place:this.place,zone:this.zone,product_category:e},!0)}
1catch(e){this.gLogger.warn("ProductCard:loadBrandAndTrendsCMSText","Cannot load cms content",e)}}countElementsInCmsContent(){var e;if(!(null==(e=this.brandAndTrendsCMS)?void 0:e.content)){this.linksCount=0,this.listsCount=0;return}let t=new DOMParser().parseFromString(this.brandAndTrendsCMS.content,"text/html");this.linksCount=t.querySelectorAll("ul li a").length,this.listsCount=t.querySelectorAll("ul").length}get showMoreItemsThreshold(){return this.gClientService.isDesktop?12:this.gClientService.isTablet?9:8*!!this.gClientService.isMobile}get isToggleVisible(){return this.linksCount>this.showMoreItemsThreshold||this.listsCount>1}get toggleTextKey(){return this.isExpanded?"WhatYouGain.SeeLess":"WhatYouGain.SeeMore"}handleToggle(){this.isExpanded=!this.isExpanded}async $mounted(){if(!this.brandAndTrendsCMS){var e;let t=null!=(e=this.offerCategoryId)?e:this.categoryId;t&&await this.loadBrandAndTrendsCMSText(t)}this.countElementsInCmsContent()}constructor(...e){super(...e),this.linksCount=0,this.listsCount=0,this.isExpanded=!1,this.brandAndTrendsCMS=null}}d([(0,o.y_)(s.lN)],u.prototype,"gClientService",void 0),d([(0,o.y_)(n.Vz)],u.prototype,"gMenuTreeService",void 0),d([(0,o.y_)(l.rk)],u.prototype,"gCMSService",void 0),d([(0,o.y_)(c.Fd)],u.prototype,"gLogger",void 0),d([(0,r.kv)()],u.prototype,"offerCategoryId",void 0),d([(0,r.kv)()],u.prototype,"categoryId",void 0),d([(0,r.oS)()],u.prototype,"cms",void 0),d([(0,r.kv)()],u.prototype,"place",void 0),d([(0,r.kv)()],u.prototype,"zone",void 0),d([(0,r.kv)({type:Boolean})],u.prototype,"icon",void 0),u=d([(0,r.XF)({AdafirHTML:a.A})],u);let h=(0,r.P9)(u),p=(0,i(12340).A)(h,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"what-you-gain"},[this.brandAndTrendsCMS?e("AdafirHTML",{staticClass:"what-you-gain-cms",class:{"is-faded":this.isToggleVisible&&!this.isExpanded,"is-expanded":this.isExpanded},attrs:{content:this.brandAndTrendsCMS?.content}}):this._e(),this._v(" "),this.isToggleVisible?e("div",{staticClass:"show-more",class:{"is-expanded":this.isExpanded},on:{click:this.handleToggle}},[this._v("\n    "+this._s(this.$t(this.toggleTextKey))+"\n    "),this.icon?e("i",{staticClass:"icon icon-arrow-base-down"}):this._e()]):this._e()],1)},[],!1,null,"1050e9c7",null).exports},99014(e,t,i){i.r(t),i.d(t,{CustomListPage:()=>P,default:()=>C});var r=i(12205),s=i(53079),o=i(9068),n=i(68124),a=i(23313),l=i(25674),c=i(46398),d=i(3797),u=i(43807),h=i(63346),p=i(28772),v=i(59306),f=i(14874),g=i(27691),y=i(58300),m=i(67946),S=i(73472);function _(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class P extends r.$G{get isSearchPage(){return this.gSyneriseSearchService.isSearchPage}get isSyneriseVisible(){let{currentRoute:e}=this.gRouter,t=e.query.sort;return 0===this.gFiltersService.state.filtersSelected.length&&(!t||"default"===t)&&1===this.page}get listName(){var e,t;return this.isSearchPage?null!=(t=this.gSyneriseSearchService.query)?t:"":(null==(e=this.gSEOService.state.data)?void 0:e.h1)||this.gRouter.currentRoute.params.menuItemName||""}get isLoading(){return this.isSearchPage&&!this.gSyneriseSearchService.isSearchPageReady}get totalItems(){var e;return null!=(e=this.gGenericProductListService.state.offersCount)?e:null}get displayMode(){return this.gGenericProductListService.state.displayMode}get itemsPerPage(){return Number(this.gGenericProductListService.state.itemsPerPage)}get totalPages(){return this.gGenericProductListService.state.totalPages}get currentPage(){return this.gGenericProductListService.state.currentPage}get page(){return this.gGenericProductListService.state.currentPage}get offers(){return this.gGenericProductListService.state.loadedOffers}get isMobile(){return this.gClientService.isMobile}getMeta(){return{link:[{rel:"stylesheet",href:this.gAssetsService.build("route.product_custom_list.css"),fetchpriority:"high"}],meta:this.gMetaTagsController.getProductsListMetaTags(this.listName.trim())}}async $mounted(){await this.gCustomerService.waitUntilReady(),this.isSearchPage&&await this.gSyneriseSearchService.waitUntilPageReady(),await this.gConversionsApiService.sendListData(this.offers)}}_([(0,s.y_)(n.sK)],P.prototype,"gGenericProductListService",void 0),_([(0,s.y_)(c.lN)],P.prototype,"gClientService",void 0),_([(0,s.y_)(d.t9)],P.prototype,"gMetaTagsController",void 0),_([(0,s.y_)(y.pw)],P.prototype,"gFiltersService",void 0),_([(0,s.y_)(v.Ii)],P.prototype,"gRouter",void 0),_([(0,s.y_)(p.ZX)],P.prototype,"gSEOService",void 0),_([(0,s.y_)(f.yz)],P.prototype,"gCustomerService",void 0),_([(0,s.y_)(S.tz)],P.prototype,"gConversionsApiService",void 0),_([(0,s.y_)(o.x)],P.prototype,"gAssetsService",void 0),_([(0,s.y_)(m._)],P.prototype,"gSyneriseSearchService",void 0),_([(0,u.A)()],P.prototype,"getMeta",null),P=_([(0,r.XF)({ListLayout:l.A,Offers:a.A,SEOTexts:h.A,SyneriseProductRow:g.A})],P);let b=(0,r.P9)(P),C=(0,i(12340).A)(b,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("main",{staticClass:"list-page custom-list-page",attrs:{id:"main-content"}},[e.isLoading?t("div",{staticClass:"loading"},[t("UILoader")],1):t("ListLayout",{attrs:{currentPage:e.currentPage,totalItems:e.totalItems,totalPages:e.totalPages,itemsPerPage:e.itemsPerPage,headerText:e.listName},scopedSlots:e._u([{key:"listHeader",fn:function(){return[t("h1",{staticClass:"list-title"},[t("LazyHydration",{attrs:{ssrOnly:""}},[e._v("\n          "+e._s(e.listName)+"\n        ")])],1)]},proxy:!0},{key:"seo",fn:function(){return[t("SEOTexts",{attrs:{totalItems:e.totalItems}})]},proxy:!0},{key:"offers",fn:function(){return[e.isSyneriseVisible?t("SyneriseProductRow",{attrs:{dis
1playMode:e.displayMode}}):e._e(),e._v(" "),t("Offers",{attrs:{offers:e.offers,displayMode:e.displayMode}})]},proxy:!0}])})],1)},[],!1,null,"22402d84",null).exports},95997(e,t,i){i.d(t,{A:()=>c});var r,s,o=i(12205),n=i(61641);class a extends o.$G{$render(){return n.zH.renderSlot(this)}}!function(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);o>3&&n&&Object.defineProperty(t,i,n)}([(0,o.kv)({type:Object,required:!0})],a.prototype,"contextData",void 0);let l=(0,o.P9)(a),c=(0,i(12340).A)(l,r,s,!1,null,null,null).exports},50419(e,t,i){i.d(t,{A:()=>d});var r=i(12205),s=i(80691),o=i(29293),n=i(97201);function a(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class l extends r.$G{get link(){var e,t,i,r;return null!=(e=null!=(t=this.adServer.link)?t:null==(r=this.adServer.widget_configuration)||null==(i=r[0])?void 0:i.link)?e:"#"}get src(){var e,t,i;return null!=(e=null==(i=this.adServer.widget_configuration)||null==(t=i[0])?void 0:t.src)?e:""}get urlSet(){return this.adServer.widget_configuration&&this.adServer.widget_configuration.length?this.onlyVisibleDesktop?{1:null,1024:this.src}:(0,n.WF)(this.adServer.widget_configuration[0]):{}}handleClick(e){this.$emit("click",e)}}a([(0,r.kv)()],l.prototype,"adServer",void 0),a([(0,r.kv)({default:!1,type:Boolean})],l.prototype,"lazyLoad",void 0),a([(0,r.kv)({default:o.hK.DETECT_INTERSECTION,type:String})],l.prototype,"lazyLoadDetection",void 0),a([(0,r.kv)({default:!1,type:Boolean})],l.prototype,"loaded",void 0),a([(0,r.kv)({default:!1,type:Boolean})],l.prototype,"useSkeleton",void 0),a([(0,r.kv)({default:!1,type:Boolean})],l.prototype,"onlyVisibleDesktop",void 0),a([(0,r.kv)({type:String})],l.prototype,"alt",void 0),l=a([(0,s.A)()],l);let c=(0,r.P9)(l),d=(0,i(12340).A)(c,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"adserver-image"},[e("UILink",{staticClass:"adserver-image-link",attrs:{href:this.link},on:{click:this.handleClick}},[e("UIImage",{attrs:{src:this.src,urlSet:this.urlSet,lazyLoad:this.lazyLoad,lazyLoadDetection:this.lazyLoadDetection,loaded:this.loaded,useSkeleton:this.useSkeleton,alt:this.alt}})],1)],1)},[],!1,null,"28083958",null).exports},66594(e,t,i){i.r(t);var r=i(88126),s=i(35543),o=i(53079);class n extends s.A{async beforeEnter(){await super.beforeEnter(),await this.gHomepageService.load()}constructor(...e){super(...e),this.breadcrumbs=[]}}!function(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);o>3&&n&&Object.defineProperty(t,i,n)}([(0,o.y_)(r.A)],n.prototype,"gHomepageService",void 0),i.d(t,{default:()=>n})},26252(e,t,i){i.r(t),i.d(t,{default:()=>I});var r=i(53079),s=i(82831),o=i(82710),n=i(64454),a=i(59306),l=i(58300),c=i(68124),d=i(516),u=i(35543),h=i(31963);function p(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}let v={name:"Product:CustomList",path:"/product/custom-list/:productListId/:filters(.*)?",component:()=>i.e(1405).then(i.bind(i,99014))};class f extends o.A{async beforeEnter(e){var t;await super.beforeEnter(e);let{productListId:i,categoryId:r,menuItemUrl:s,menuItemFiltered:o}=e.params;if(!i)return;let{defaultItemPerPage:a}=this.gAppService.getConfig(),l=void 0!==e.query.page?Number(e.query.page):void 0,c=void 0!==e.query.limit?Number(e.query.limit):a,d=void 0!==e.query.sort?e.query.sort:"default",p=null!=(t=this.gCookieStorage.get(h.Zn))?t:null;p&&(this.gProductCustomListService.state.displayMode="1"===p?n.q9.LIST:n.q9.GRID);let v=JSON.parse(null!=o?o:"[]"),f=v.length>1?v[0]:null;await this.gFiltersService.loadFiltersFromCustomList({categoryId:i,customListId:f});let{filtersSelected:g,filtersActivePrice:y}=this.gFiltersService.state;v.reverse(),v.shift(),this.gBreadcrumbsService.setBreadcrumbs([u.A,{name:e.params.menuItemName,url:"",isActive:!1}]),await Promise.all([this.gProductCustomListService.loadProductCustomList({categoryId:Number(r),showPage:Number(l),activeFilters:g,priceFilter:y,sort:d,limit:c,productListId:i}),this.gProductCustomListService.loadCategory(Number(i),Number(r),v,s)])}constructor(...e){super(...e),this.config=v}}p([(0,s.A)(c.LR)],f.prototype,"gProductCustomListService",void 0),p([(0,s.A)(l.pw)],f.prototype,"gFiltersService",void 0),p([(0,s.A)(a.TF)],f.prototype,"gAppService",void 0),p([(0,s.A)(d.E8)],f.prototype,"gBreadcrumbsService",void 0),p([(0,s.A)(a.iR)],f.prototype,"gCookieStorage",void 0);var g=i(66594),y=i(23754),m=i(3797),S=i(90916),_=i(24895),P=i(82347),b=i(67946),C=i(73472);function x(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class I extends f{isPageOutOfRange(e){let{totalPages:t}=this.gGenericProductListService.state;return!!(e&&t)&&e>t}async beforeClientEnter(e){if(await this.gConversionsApiService.setCookieForCapi(),this.gSearchSyneriseService.isSearchPage){let{productListId:t,categoryId:i,menuItemUrl:r,menuItemFiltered:s}=e.params,o=Number(e.query.page)||0,n=void 0!==e.query.sort?e.query.sort:"default",a=e.query.limit,{defaultItemPerPage:l,itemsPerPage:c}=this.gAppService.getConfig(),d=void 0!==a&&(null==c?void 0:c.includes(Number(a)))?Number(a):l,u=this.parseMenuItemsFiltered(s);try{await this.loadProductsAndFilters(t,i,u,r,o,n,d)}catch(e){if(this.isPageOutOfRange(o))return(0,y.mX)();throw e}finally{this.gSearchSyneriseService.setSearchPageReady()}}}async beforeEnter(e){var t,i,r,s,o;let{productListId:n,categoryId:a,menuItemUrl:l,menuItemFiltered:c,menuItemName:d}=e.params;this.gCustomProductListStrategy.state.customListId=n?Number(n):0,this.gCustomProductListStrategy.state.currentCategoryId=a?Number(a):0;let{defaultItemPerPage:u,itemsPerPage:p}=this.gAppService.getConfig(),v=void 0!==e.query.page?Number(e.query.page):0,f=e.query.limit,m=void 0!==f&&(null==p?void 0:p.includes(Number(f)))?Number(f):u,S=void 0!==e.query.sort?e.query.sort:"default";this.gInfiniteProductListService.configure({page:v,limit:m});let _=null!=(t=this.gCookieStorage.get(h.Zn))?t:null;_&&(this.gGenericProductListService.state.displayMode="1"===_?h.q9.LIST:h.q9.GRID);let P=this.parseMenuItemsFiltered(c);if(!this.gSearchSyneriseService.isSearchPage)try{await this.loadProductsAndFilters(n,a,P,l,v,S,m)}catch(e){if(this.isPageOutOfRange(v))return(0,y.mX)();throw e}let b=null==(i=this.gRouteResolverService.state.resolvedRoute)?void 0:i.filters;(null==b||null==(r=b.constantFilter)?void 0:r.length)||(null==b||null==(s=b.variableFilters)?void 0:s.length)||(null==b||null==(o=b.priceFilter)?void 0:o.length)||await this.preloadBottomCMSText(a);let{isSearchPage:C}=this.gSearchSyneriseService;this.gBreadcrumbsService.setBreadcrumbs([g.default,{name:C?this.gSearchSyneriseService.query:d,url:C?"./":`/${d}`,isActive:!0}])}parseMenuItemsFiltered(e){let t=[];try{t=JSON.parse(null!=e?e:"[]")}
1catch(e){this.gLogger.warn("ProductCustomListRoute","Failed to parse menuItemFiltered",e)}return t}async loadProductsAndFilters(e,t,i,r,s,o,n){await Promise.all([this.gCustomProductListStrategy.loadCategory(Number(e),Number(t),i,r),this.gListPageService.loadData(Number(t)),this.loadOfferWithAdditionals(s,o,n),this.gFiltersService.loadFilters({categoryId:Number(t)}),this.gFiltersFastService.loadFilters(Number(t))])}async loadOfferWithAdditionals(e,t,i){if(await this.gGenericProductListService.generateOffersList({page:Number(e),sort:t,itemsPerPage:i}),this.isPageOutOfRange(e))throw Error("Page out of range");await this.loadProductAdditionals()}async loadProductAdditionals(){this.gGenericProductListService.state.loadedOffers.length&&await this.gProductListAdditionalService.loadOfferAdditionals({productId:this.gGenericProductListService.state.loadedOffers[0].product_id,extraGQLBlocks:[_.P.SIZEER_LIST_VARIANTS,_.P.EMBLEMS]})}async preloadBottomCMSText(e){let t;try{t=await this.gCMSService.getCmsContent({place:P.YR.LISTING,zone:P.bo.LISTING_BOTTOM_TEXT,product_category:e})}catch(e){this.gLogger.warn("ProductListRoute:preloadBottomCMSText","Cannot load bottom CMS text for product list page",e)}finally{this.gListPageService.state.hasBottomCMSText=!!t}}}x([(0,r.y_)(m.Lw)],I.prototype,"gListPageService",void 0),x([(0,r.y_)(c.ij)],I.prototype,"gCustomProductListStrategy",void 0),x([(0,r.y_)(c.sK)],I.prototype,"gGenericProductListService",void 0),x([(0,r.y_)(c.ME)],I.prototype,"gProductListAdditionalService",void 0),x([(0,r.y_)(S.V)],I.prototype,"gInfiniteProductListService",void 0),x([(0,r.y_)(l.P)],I.prototype,"gFiltersFastService",void 0),x([(0,r.y_)(d.rk)],I.prototype,"gCMSService",void 0),x([(0,r.y_)(a.Fd)],I.prototype,"gLogger",void 0),x([(0,r.y_)(a.F2)],I.prototype,"gRouteResolverService",void 0),x([(0,r.y_)(C.tz)],I.prototype,"gConversionsApiService",void 0),x([(0,r.y_)(b._)],I.prototype,"gSearchSyneriseService",void 0)},35543(e,t,i){var r=i(82710);let s={name:"Home:HomePage",path:"/",component:()=>i.e(4402).then(i.bind(i,55388))};class o extends r.A{async beforeEnter(){}constructor(...e){super(...e),this.config=s,this.breadcrumbs=[o]}}i.d(t,{A:()=>o})},31963(e,t,i){var r,s=((r={}).LIST="list",r.GRID="grid",r.OTHER="other",r.CONFIGURATOR="configurator",r);i.d(t,{q9:()=>s},{Pu:{default:"default",name_asc:"name",name_desc:"-name",producer_asc:"producer",producer_desc:"-producer",gspremia_asc:"gspremia",gspremia_desc:"-gspremia",price_asc:"price",price_desc:"-price",opinion_score_desc:"-opinion_score",created_desc:"-created",ec_default:"ec_default",ec_gspremia_asc:"ec_gspremia",ec_gspremia_desc:"-ec_gspremia",ec_opinion_score_asc:"ec_opinion_score",ec_opinion_score_desc:"-ec_opinion_score",ec_producer_asc:"ec_producer",ec_producer_desc:"-ec_producer",ec_price_asc:"ec_price",ec_price_desc:"-ec_price",b2b_price_asc:"b2b_price",b2b_price_desc:"-b2b_price",discount_desc:"-discount"},Zn:"product_list_template"})},82710(e,t,i){var r=i(82831),s=i(59306),o=i(46398),n=i(61641);function a(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n}class l{buildMetaTag(){return{}}beforeEnter(e){}beforeClientEnter(e){}getDisplayName(){return this.gTranslations.translate(`Layout.breadcrumbs.${this.config.name}`)}constructor(){this.breadcrumbs=[],this.middlewares=[],setTimeout(()=>{var e;this.config={...this.config,component:n.zH.defineAsyncComponent(null==(e=this.config)?void 0:e.component)}},0)}}a([(0,r.A)(s.dS)],l.prototype,"gTranslations",void 0),a([(0,r.A)(o.VG)],l.prototype,"gMetaService",void 0),i.d(t,{A:()=>l})}};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.