1"use strict";(self.webpackChunkwf_core_setup=self.webpackChunkwf_core_setup||[]).push([[25,3637,9791],{305:(t,e,s)=>{s.r(e),s.d(e,{default:()=>k});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"search-results-container",class:{"loading-results":!0===t.searchState.pending||!0===t.searchState.paginating}},[t.matchMedia.isDesktopView&&!t.matchMedia.uptoTabView?e("ul",{staticClass:"search-results-tabs"},t._l(t.sections,function(s,i){return e("li",{key:i,class:t.getClassName(s.name),on:{click:function(e){return t.toggleTab(s.name)}}},[t._v("\n "+t._s(s.text)+" ("+t._s(t.getTotalProductsForSection(s.name))+")")])}),0):t._e(),t._v(" "),t.searchState.pending?e("div",{staticClass:"search-results__loader"},[e("img",{staticClass:"spinner",attrs:{src:"/themes/redken/images/spinner.gif",alt:"spinner"}})]):t._e(),t._v(" "),!t.searchState.pending&&t.searchState.success&&t.noSearchResults?e("div",{staticClass:"search-results__empty"},[t._v("\n "+t._s(t.noResultsText)+"\n ")]):t._e(),t._v(" "),t.searchState.pending||!t.searchState.success||t.noSearchResults?t._e():e("div",{staticClass:"search-results__data"},[e("div",{staticClass:"search-results-sections"},[t._l(t.sections,function(s,i){return[e("div",{key:i,staticClass:"sections--container"},[e("ul",{staticClass:"search-results-tabs search-results-tabs--mobile show-on-mobile"},[e("li",{class:t.getClassName(s.name),on:{click:function(e){return t.toggleTab(s.name)}}},[t._v("\n "+t._s(s.text)+" ("+t._s(t.getTotalProductsForSection(s.name))+")\n "),e("span",{staticClass:"search-results-tabs-icon"},[e("svg",{staticClass:"icon icon-plus is-large"},[e("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#plus"}})]),t._v(" "),e("svg",{staticClass:"icon icon-minus is-large"},[e("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#minus"}})]),t._v(" "),e("span",{staticClass:"search-results-tabs-icon-arrow"})])])]),t._v(" "),t.visibleSection===s.name&&t.visibleSection!==t.eventsName?e("div",{staticClass:"search-results__products search-results__data__filters"},[t.visibleSection===t.artistsName?e("div",{staticClass:"search-results__data__total-text hide-on-mobile"},[t._v("\n "+t._s(t.artistShowData.totalLength)+" "),e("span",{staticClass:"search-results--static-text"},[t._v(t._s(t.resultsText))]),t._v(" "),e("span",{staticClass:"search-results--query-text"},[t._v('"'+t._s(t.getQuery)+'"')])]):t.visibleSection!==t.eventsName&&t.visibleSection!==t.productsName?e("div",{staticClass:"search-results__data__total-text hide-on-mobile"},[t._v("\n "+t._s(t.getTotalProductsForSection(t.visibleSection))+" "),e("span",{staticClass:"search-results--static-text"},[t._v(t._s(t.resultsText))]),t._v(" "),e("span",{staticClass:"search-results--query-text"},[t._v('"'+t._s(t.getQuery)+'"')])]):t._e(),t._v(" "),t.visibleSection===t.productsName&&"search-results-products-revamp"!==s.componentName?e("div",{staticClass:"search-results__data__filters--options"},[e("filter-component",{attrs:{filters:t.productFilters,"label-apply":t.labelApply,"label-filter":t.labelFilter,"label-show":t.labelShow,"label-hide":t.labelHide,"label-clear":t.labelClear,"search-query":t.getQuery,"tagging-category":"search results page","filter-area-label":t.filterAreaLabel,"remove-filter-area-label":t.removeFilterAreaLabel},on:{"apply-filters":t.filterProducts,"toggle-filter":t.toggleFilter,"clear-filters":t.clearFilters}})],1):t._e()]):t._e(),t._v(" "),t.visibleSection===s.name&&t.visibleSection!==t.eventsName?e("div",{key:"a"+i,class:"search-results__data__total-text show-on-mobile "+t.visibleSection},[t.visibleSection==t.artistsName?[t._v(" \n "+t._s(t.artistShowData.totalLength)+" "),e("span",{staticClass:"search-results--static-text"},[t._v(t._s(t.resultsText))]),t._v(" "),e("span",{staticClass:"search-results--query-text"},[t._v('"'+t._s(t.getQuery)+'"')])]:t.visibleSection===t.productsName&&"search-results-products-revamp"!==s.componentName?[t._v("\n "+t._s(t.getTotalProductsForSection(t.visibleSection))+" "),e("span",{staticClass:"search-results--static-text"},[t._v(t._s(t.resultsText))]),t._v(" "),e("span",{staticClass:"search-results--query-text"},[t._v('"'+t._s(t.getQuery)+'"')])]:t._e()],2):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.visibleSection===s.name,expression:"visibleSection === section.name"}],key:"b-"+s.name+i},[e(s.componentName,{key:t.getGenerateKey(i,s.name),tag:"component",attrs:{results:t.getResultsForSection(s.name),"counter-page":t.getCounterForSection(s.name),"results-text":t.resultsText,"bv-enabled":t.bvEnabled,"star-visible":t.starVisible,"sort-by-filters":t.visibleSection==t.artistsName?t.sortByFiltersArtist:t.sortByFiltersEvents,"cta-layout-black":t.ctaLayoutBlack,"is-mikmak-enabled":t.isMikmakEnabled,"mikmak-widget-id":t.mikmakWidgetId}}
1)],1),t._v(" "),t.searchState.paginating&&t.visibleSection===s.name?e("div",{staticClass:"search-results__loader"},[e("img",{staticClass:"spinner",attrs:{src:"/themes/redken/images/spinner.gif",alt:"spinner"}})]):t._e(),t._v(" "),t.visibleSection!=t.artistsName&&t.visibleSection!=t.eventsName?e("div",[t.visibleSection===s.name&&t.getResultsForSection(s.name).length&&t.getResultsForSection(s.name).length<t.getTotalProductsForSection(s.name)?e("div",{key:"b"+i},[e("search-load-more",{attrs:{pages:t.getPaginationForTab(),section:s.name,"cta-text":t.showMoreText}})],1):t._e()]):t._e(),t._v(" "),t.visibleSection===s.name?e("div",[t.visibleSection===t.artistsName&&t.artistShowData.showingLength<t.artistShowData.totalLength?e("div",{key:"b"+i,attrs:{"data-len-art":t.artistShowData.showingLength,"data-total":t.artistShowData.totalLength}},[e("search-load-more",{attrs:{pages:t.getPaginationForTab(),section:t.artistsName,"cta-text":t.showMoreText}})],1):t._e()]):t._e(),t._v(" "),t.visibleSection===s.name?e("div",[t.visibleSection===t.eventsName&&t.eventShowdata.showingLength<t.eventShowdata.totalLength?e("div",{key:"b"+i},[e("search-load-more",{attrs:{pages:t.getPaginationForTab(),section:t.eventsName,"cta-text":t.showMoreText,addClass:t.eventsName}})],1):t._e()]):t._e(),t._v(" "),t.visibleSection!=t.artistsName&&t.visibleSection!=t.eventsName&&"search-results-products-revamp"!==s.componentName?e("div",[t.visibleSection===s.name?e("div",{key:"c"+i,staticClass:"search-result-count"},[t._v("\n Showing "+t._s("".concat(t.getResultsForSection(s.name).length))+" of "+t._s(t.getTotalProductsForSection(s.name))+"\n ")]):t._e()]):t._e(),t._v(" "),t.visibleSection===s.name?e("div",[t.visibleSection===t.artistsName&&t.artistShowData.showingLength?e("div",{key:"c"+i,staticClass:"search-result-count"},[t._v("\n Showing "+t._s(" ".concat(t.artistShowData.showingLength))+" of "+t._s(t.artistShowData.totalLength)+"\n ")]):t._e()]):t._e(),t._v(" "),t.visibleSection===s.name?e("div",[t.visibleSection===t.eventsName&&t.eventShowdata.showingLength?e("div",{key:"c"+i,class:"search-result-count "+t.eventsName},[t._v("\n Showing "+t._s("".concat(t.eventShowdata.showingLength))+" of "+t._s(t.eventShowdata.totalLength)+"\n ")]):t._e()]):t._e()])]})],2)]),t._v(" "),!t.searchState.pending&&t.searchState.error?e("div",{staticClass:"search-results__error"},[t._v("\n There was an error with your query, please try again\n ")]):t._e()])};i._withStripped=!0;var r=s(5353),a=s(8790),n=s(1069),o=s(3511),l=s(7105),c=s(9633),u=function(){var t=this,e=t._self._c;return e("div",{staticClass:"row search-result-artist artist-list container event-calendar-filter module-wrapper"},[e("div",{staticClass:"col-md-12 filter-right-section"},[e("div",{staticClass:"search-results__data__filters--options artist-view"},[e("event-select-filter",{attrs:{dropdownFilters:t.artistcategoryFilter,resetDropdown:t.resetDropdown,isArtistMobile:!0},on:{"toggle-dropdown":t.toggleDropdownSortbySpeciality}}),t._v(" "),e("event-select-filter",{attrs:{dropdownFilters:t.sortByFilters,resetDropdown:t.resetDropdown,isArtistMobile:!0},on:{"toggle-dropdown":t.toggleDropdownSortbySpeciality}})],1),t._v(" "),t.matchMedia.isMobileView?[e("p",{staticClass:"event-count"},[t._v(t._s(this.totalArtists)+" "),e("span",{staticClass:"search-results--static-text"},[t._v(t._s(t.resultsText))]),t._v(" "),e("span",{staticClass:"search-results--query-text"},[t._v('"'+t._s(t.getQuery)+'"')])])]:t._e(),t._v(" "),e("div",{staticClass:"filter-result-wrapper search-page"},[e("ul",{staticClass:"row"},[t._l(t.showingArtists,function(s,i){return e("li",{key:i,staticClass:"list col-xs-6 col-md-3"},[e("a",{attrs:{href:s.url}},[e("div",{staticClass:"artist-img"},[e("img",{attrs:{alt:s.ArtistName,src:s.ArtistImage?s.ArtistImage:t.defaultArtistImg}})]),t._v(" "),e("div",{staticClass:"super-heading"},[t._v("\n "+t._s(s.ArtistTitle)+" \n ")]),t._v(" "),e("div",{staticClass:"super-heading"},[t._v("\n "+t._s(s.ArtistCategory)+"\n ")]),t._v(" "),e("h2",{staticClass:"main-heading"},[t._v(t._s(s.ArtistName))])])])})],2)])],2)])};function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,i)}return s}function p(t,e,s){return(e=function(t){var e=function(t){if("object"!=d(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var s=e.call(t,"string");if("object"!=d(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==d(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}u._withStripped=!0;const g={name:"search-results-artists",props:{artists:{type:Array},results:{required:!0},resultsText:{type:String,default:"results for"},sortByFilters:{type:Object,default:function(){return{}}}},data:function(){return{showingArtists:[],artistcategoryFilter:{},defaultArtistImg:window.location.origin+"/-/media/project/loreal/brand-sites/redken/master/dmi/event-promo/event-promo-2.png?rev=afa8da841c90411ba64e02299ed1a482",perPageArtist:12,speciality:"",allArtistData:[],deviceBasedLength:12}},mounted:function(){this.showingArtists=this.allArtistData=this.$store.getters.storedSearchData.artists,this.showingArtists=this.allArtistData.slice(0,this.deviceBasedLength),this.artistcategoryFilter=this.searchResults.artists.artistSpecialtyFilterTags,this.$parent.artistShowData.showingLength=this.showingArtists?this.showingArtists.length:0,this.$parent.artistShowData.totalLength=this.allArtistData?this.allArtistData.length:0},methods:{toggleDropdownSortbySpeciality:function(t){"Sort By"==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Sort By")?this.sortByArtist=t:this.speciality=t,this.setShowAndFilterData(this.deviceBasedLength)},setShowAndFilterData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.speciality&&(this.showingArtists=this.allArtistData.filter(function(e){return e.ArtistCategory&&e.ArtistCategory==t.speciality}));var s=this.speciality?this.showingArtists:this.allArtistData;this.sortByFn(s),this.speciality||this.sortByArtist||(this.showingArtists=this.allArtistData),this.showingArtists=this.showingArtists.slice(0,e),this.$parent.artistShowData.showingLength=this.showingArtists?this.showingArtists.length:0,this.$parent.artistShowData.totalLength=s?s.length:0},sortByFn:function(t){this.sortByArtist&&("ascending"==this.sortByArtist?this.showingArtists=t.sort(function(t,e){return t.ArtistName<e.ArtistName?-1:1}):this.showingArtists=t.sort(function(t,e){return t.ArtistName>e.ArtistName?-1:1}))}
1,loadMoreSearchArtists:function(){var t=this.showingArtists.length+this.deviceBasedLength;this.setShowAndFilterData(t)}},computed:function(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?h(Object(s),!0).forEach(function(e){p(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):h(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}({},(0,r.L8)({visibleSection:"getVisibleSection",getQuery:"getQuery",totalArtists:"totalArtists",storedSearchData:"storedSearchData",searchResults:"searchResults",artistsPagination:"artistsPagination"}))};var v=s(4486);const m=(0,v.A)(g,u,[],!1,null,null,null).exports;var f=s(812),b=s(8196);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function _(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,i)}return s}function w(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?_(Object(s),!0).forEach(function(e){S(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):_(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}function S(t,e,s){return(e=function(t){var e=function(t){if("object"!=y(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var s=e.call(t,"string");if("object"!=y(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==y(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const C={name:"search-container",components:{searchResultsProducts:n.default,searchResultsArticles:o.A,searchResultsLooks:l.default,searchResultsEvents:c.default,searchResultsArtists:m,searchResultsProductsRevamp:f.A,FilterComponent:b.A},provide:function(){return{filterLabel:this.filterLabel,clearFilterLabel:this.clearFilterLabel,backLabel:this.backLabel,sortByLabel:this.sortByLabel,sortOptions:this.sortOptions,buynowVisible:this.buynowVisible,counterLabel:this.counterLabel}},data:function(){return{productsName:"products",articlesName:"articles",looksName:"looks",artistsName:"artists",eventsName:"events",sectionPagination:this.productsPagination,productFilter:{0:"Best For",1:"Product Lines"},sortId:"",artistShowData:{showingLength:0,totalLength:0},eventShowdata:{showingLength:0,totalLength:0}}},computed:w(w({},(0,r.L8)({getInitialQuery:"getInitialQuery",searchState:"searchState",searchResults:"searchResults",noSearchResults:"noSearchResults",getQuery:"getQuery",visibleSection:"getVisibleSection",storedSearchData:"storedSearchData",products:"getProducts",productsCard:"getCardListCards",storedProducts:"getStoredProducts",totalProducts:"totalProducts",productsPagination:"productsPagination",productFilters:"getProductFilters",articles:"getSearchArticles",storedArticles:"getStoredArticles",totalArticles:"totalArticles",articlesPagination:"articlesPagination",articleStartCounter:"articleStartCounter",artistsPagination:"artistsPagination",looks:"getLooks",storedLooks:"getStoredLooks",totalLooks:"totalLooks",looksPagination:"looksPagination",totalArtists:"totalArtists",totalEvents:"totalEvents"})),{},{urlSectionQuery:function(){return utils.getUrlQueryParams("section")}}),props:{sections:{type:Array,default:function(){return[]}},resultsText:{type:String,default:"results for"},nextArrowLabel:{type:String,required:!0},previousArrowLabel:{type:String,required:!0},noResultsText:{type:String,required:!0},labelApply:{type:String,default:"Apply"},labelFilter:{type:String,default:"Filter"},labelShow:{type:String,default:"Show"},labelHide:{type:String,default:"Hide"},labelClear:{type:String,default:"Clear all"},sortByFiltersEvents:{type:Object,default:function(){return{sectionname:"Sort By",type:"dropdown",filters:[{Type:"dropdown",ItemId:"ascending",FilterByName:"Sort By: Date Earliest to Latest",ItemName:"ascending"},{Type:"dropdown",ItemId:"descending",FilterByName:"Sort By: Date Latest to Earliest",ItemName:"descending"}]}}},sortByFiltersArtist:{type:Object,default:function(){return{sectionname:"Sort By",type:"dropdown",filters:[{Type:"checkbox",ItemId:"ascending",FilterByName:"Name A-Z",ItemName:"ascending"},{Type:"checkbox",ItemId:"descending",FilterByName:"Name Z-A",ItemName:"descending"}]}}},showMoreText:{type:String,default:"SHOW MORE"},isGated:{type:Boolean,default:!1},isProsite:{type:Boolean,default:!1},ctaLayoutBlack:{type:Boolean,required:!1,default:!1},bvEnabled:{type:Boolean,default:!1},starVisible:{type:Boolean,default:!1},filterLabel:{type:String,default:"Filter"},clearFilterLabel:{type:String,default:"Clear filters"},backLabel:{type:String,default:"Back"},sortByLabel:{type:String,default:"SORT BY"},sortOptions:{type:Array,required:!1},buynowVisible:{type:Boolean,required:!1,default:!1},isMikmakEnabled:{type:Boolean,required:!1,default:!1},mikmakWidgetId:{type:String,default:""},counterLabel:{type:String,default:"Showing {0} of {1}"},filterAreaLabel:{type:String,default:""},removeFilterAreaLabel:{type:String,default:""}},beforeUpdate:function(){var t=this,e=document.querySelector(".search-results__number"),s=this.getTotalProductsForSection("AllResults");e&&(e.innerHTML=s);var i=document.querySelector(".search-results__text");i&&(i.innerHTML=this.getQuery),window.dataLayer.forEach(function(e){"
1internal search"==e.pageCategory&&(e.numberResults=s,e.searchKeyword=t.getQuery.toLowerCase())})},methods:w(w({toggleTab:function(t){var e=t;this.getTotalProductsForSection(e)>0&&("small"===window.MqHandler.getCurrentMq().size&&(e=this.visibleSection===e?"":e),this.setVisibleSection(e),this.updateSearchQueryParams()),window.dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:"search result page",eventAction:"menu navigation",eventLabel:t||""})},getPaginationForTab:function(){switch(this.visibleSection){case this.productsName:return this.productsPagination;case this.articlesName:return this.articlesPagination;case this.looksName:return this.looksPagination;case this.artistsName:return this.artistsPagination;default:return this.productsPagination}},getTotalProductsForSection:function(t){var e=this;switch(t){case this.productsName:return this.totalProducts;case this.articlesName:return this.totalArticles;case this.looksName:return this.totalLooks;case this.artistsName:return this.totalArtists;case this.eventsName:return this.totalEvents;case"AllResults":return this.sections.reduce(function(t,s){return t+e.getTotalProductsForSection(s.name)},0);default:return 0}},getResultsForSection:function(t){switch(t){case this.productsName:return this.$store.getters.storedSearchData.products;case this.articlesName:return this.$store.getters.storedSearchData.articles;case this.looksName:return this.$store.getters.storedSearchData.looks;case this.artistsName:return this.$store.getters.storedSearchData.artists;case this.eventsName:return this.$store.getters.storedSearchData.events;default:return null}},getCounterForSection:function(t){return t===this.articlesName?this.articleStartCounter:null},handleBrowserNavigation:function(t){t.state&&(this.setVisibleSection((0,a.iT)("section")),this.updateState(t.state))},toggleFilter:function(t){this.toggleSelectedFilters(t)},getClassName:function(t){var e="";return t==this.visibleSection&&(e="active"),this.getTotalProductsForSection(t)||(e="hide-element"),e}},(0,r.i0)({searchQuery:"triggerSearch",paginating:"paginate",updateState:"updateState",setVisibleSection:"setVisibleSearchSection",updateSearchQueryParams:"updateSearchQueryParams",clearFilters:"searchClearFilters",toggleSelectedFilters:"searchToggleSelectedFilters",filterProducts:"searchFilterCards",setSearchProductData:"searchFilterCardData",toggleSelectedDropdownFilters:"searchToggleSelectedDropdownFilters"})),{},{getGenerateKey:function(t,e){return"".concat(t,"-").concat(this.getResultsForSection(e).length)}}),created:function(){var t=this;this.$on("paginate",function(e){var s={page:e,section:t.visibleSection,query:t.query,isGated:t.isGated,isProsite:t.isProsite};t.visibleSection!=t.eventsName&&t.visibleSection!=t.artistsName?t.paginating(s):t.$children.forEach(function(t){"search-results-events"==t.$options.name?t.loadMoreSearchEvents():"search-results-artists"==t.$options.name&&t.loadMoreSearchArtists()});var i=setInterval(function(){if(!t.searchState.paginating){switch(t.visibleSection){case t.productsName:window.eventBus.$emit("productLoader");break;case t.articlesName:window.eventBus.$emit("articlesLoader");break;case t.looksName:window.eventBus.$emit("looksLoader");break;default:window.eventBus.$emit("productLoader")}clearInterval(i)}},200)}),window.onpopstate=this.handleBrowserNavigation},mounted:function(){var t=this,e={initial:this.getInitialQuery},s=setInterval(function(){t.setSearchProductData({params:e,res:t.searchResults&&t.searchResults.products}),t.searchResults&&t.searchResults.products&&t.searchResults.products.results&&t.searchResults.products.results.length>0&&clearInterval(s)},200)}},k=(0,v.A)(C,i,[],!1,null,null,null).exports},1069:(t,e,s)=>{s.r(e),s.d(e,{default:()=>n});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"search-results-products"},[t.storedResults.length>0?e("div",{staticClass:"search-results__content search-results__products"},t._l(Math.ceil(t.storedResults.length/t.isMobile),function(s){return e("div",{key:"".concat(s),ref:"gtmRows",refInFor:!0,staticClass:"search-results__products--content",class:"gtmVal-"+s},[t._l(t.storedResults.slice((s-1)*t.isMobile,s*t.isMobile),function(i,r){return[0===r?e("input",{key:"gtm"+s,attrs:{type:"hidden","data-val":JSON.stringify(t.storedResults.slice((s-1)*t.isMobile,s*t.isMobile)),"data-index":s}}):t._e(),t._v(" "),e("div",{key:r+"_"+i.title,staticClass:"product card product-card-item"},[e("a",{attrs:{href:i.url},on:{click:function(e){return t.productClick(i,"list-result-search",s)}}},[e("div",{staticClass:"product__image"},[e("img",{staticClass:"lazyload",attrs:{"data-src":i.image,src:i.image,alt:i.imageAlt}}),t._v(" "),i.badgeImage?e("img",{staticClass:"lazyload product__image--badge",attrs:{"data-src":i.badgeImage,src:i.badgeImage,alt:i.imageBadgeAlt}}):t._e()]),t._v(" "),e("div",{staticClass:"product__super-heading"},[t._v("\n "+t._s(i.superHeading)+"\n ")]),t._v(" "),e("h2",{staticClass:"product__name"},[t._v("\n "+t._s(i.title)+"\n ")]),t._v(" "),e("p",{staticClass:"product__sub-heading",domProps:{innerHTML:t._s(i.subHeading)}}
1),t._v(" "),t.bvEnabled?e("div",{attrs:{"data-bv-show":"inline_rating","data-bv-product-id":i.id}}):t._e()])])]})],2)}),0):t._e()])};i._withStripped=!0;var r=s(8790);const a={name:"search-results-products",props:{results:{required:!0},bvEnabled:{type:Boolean,default:!1}},data:function(){return{storedResults:[],itemcount:1,isMobile:window.innerWidth<760?2:4}},created:function(){var t=this;window.addEventListener("scroll",this.handleScroll,{passive:!0}),this.storedResults=this.results,window.eventBus.$on("productLoader",function(){t.storedResults=[],t.storedResults=t.$store.getters.storedSearchData.products,t.$nextTick(function(){t.itemcount=(0,r.jt)(t.$refs.gtmRows),t.handleScroll()})})},mounted:function(){var t=this;window.onload=function(){t.itemcount=(0,r.jt)(t.$refs.gtmRows),t.handleScroll()}},destroyed:function(){window.removeEventListener("scroll",this.handleScroll)},watch:{storedResults:function(){this.storedResults=this.$store.getters.storedSearchData.products},searchProductData:function(t){this.storedResults=t}},computed:{searchProductData:function(){return this.$store.getters.storedSearchData.products}},methods:{getProductIndex:function(t){return this.results.indexOf(t)},handleScroll:function(){var t=1;window.dataLayer.forEach(function(e){"Product Impressions"==e.eventAction&&t++}),this.itemcount=t;var e=this.$el.querySelector(".gtmVal-"+this.itemcount);if(e){var s=e.querySelector("input");if(s){var i=JSON.parse(s.dataset.val);(0,r.yQ)(e)&&(this.enter(i),this.itemcount++)}}},enter:function(t){var e=this,s={event:"nievent",eventAction:"Product Impressions",eventCategory:"Ecommerce",eventLabel:"internal search",event_name:"view_item_list",ecommerce:{currencyCode:"none",impressions:[]}};t.forEach(function(t,i){var r,a;e.updateAllRatingReviewCount(t);var n=null==t||null===(r=t.productShade)||void 0===r?void 0:r.toLowerCase(),o=null==t||null===(a=t.productSize)||void 0===a?void 0:a.toLowerCase(),l=n&&o?"".concat(n,"|").concat(o):o||n||"none",c={name:null!=t.title?t.title.toLowerCase():"",id:t.id||"",price:"none",brand:window.wsf.pageDetails.brand,category:null!=t.category?t.category.toLowerCase().replace(" ","-"):"",variant:l,list:"list-result-search",position:t.p_index||i+1,dimension35:o||"none",dimension36:n||"none",dimension38:e.domRatingValue,dimension48:t.id||"",dimension49:"not present",dimension59:e.domReviewCount,dimension91:"none"};s.ecommerce.impressions.push(c)});try{(0,r.n2)(s)}catch(t){console.warn("failed to push tag to dataLayer",s)}}}},n=(0,s(4486).A)(a,i,[],!1,null,null,null).exports},7105:(t,e,s)=>{s.r(e),s.d(e,{default:()=>a});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"search-results-looks"},[t.storedlooks.length>0?e("div",{staticClass:"search-results__content search-results__looks"},t._l(Math.ceil(t.storedlooks.length/2),function(s){return e("div",{key:s,staticClass:"search-results__looks--content"},t._l(t.storedlooks.slice(2*(s-1),2*s),function(s,i){return e("div",{key:i,staticClass:"highlighted-look-module"},[e("div",{staticClass:"highlighted-look-module__background",style:{"background-image":"url("+s.backgroundImage+")"}},[e("div",{staticClass:"highlighted-look-module__background--overlay",style:{"background-color":s.backgroundOverlay}})]),t._v(" "),e("div",{staticClass:"highlighted-look-module__content"},[e("div",{staticClass:"highlighted-look-module__content__ph"},[e("div",{staticClass:"highlighted-look-module__content_image"},[e("img",{attrs:{src:s.mainImage,alt:s.imageAlt}})]),t._v(" "),e("div",{staticClass:"highlighted-look-module__content__text"},[e("div",{staticClass:"module-superheading"},[t._v("\n "+t._s(s.SuperHeading)+"\n "),e("div",{staticClass:"divider"})]),t._v(" "),e("h2",{staticClass:"module-heading heading"},[t._v("\n "+t._s(s.heading)+"\n ")]),t._v(" "),e("p",{staticClass:"module-subheading heading"},[t._v("\n "+t._s(s.subHeading)+"\n ")]),t._v(" "),e("div",{staticClass:"module-text"},[t._v("\n "+t._s(s.text)+"\n ")]),t._v(" "),e("div",{staticClass:"module-cta"},[e("a",{staticClass:"button",class:{"btn--primary":t.ctaLayoutBlack,"btn--secondary":!t.ctaLayoutBlack},attrs:{href:s.ctaUrl}},[t._v(t._s(s.ctaText))])])])])])])}),0)}),0):t._e()])};i._withStripped=!0;const r={name:"search-results-looks",props:{results:{required:!0},ctaLayoutBlack:{type:Boolean,required:!1,default:!1}},data:function(){return{storedlooks:[]}},mounted:function(){var t=this;this.storedlooks=this.results,window.eventBus.$on("looksLoader",function(){t.storedlooks=[],t.storedlooks=t.$store.getters.getStoredLooks})}},a=(0,s(4486).A)(r,i,[],!1,null,null,null).exports},8196:(t,e,s)=>{s.d(e,{A:()=>d});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"filters"},[this.filters&&0===!this.filters.length?e("div",{staticClass:"filters-header",class:{expanded:t.showTabs},on:{click:t.toggleTabs}},[t._v("\n "+t._s(t.labelFilter)+"\n "),e("div",{staticClass:"label"},[e("span",{staticClass:"label-show"},[t._v(t._s(t.labelShow))]),t._v(" "),e("span",{staticClass:"label-hide"},[t._v(t._s(t.labelHide))])])]):t._e(),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.showTabs,expression:"showTabs"}],staticClass:"filters-dropdown-wrapper"},t._l(t.filters,function(s,i){return e("div",{key:i,staticClass:"filter-dropdown"},[e("div",{staticClass:"filter-dropdown__wrapper"},[e("button",{staticClass:"filter-dropdown__text btn-filter-dropdown__text",class:{expanded:t.showTooltip.indexOf(i)>-1,active:t.activeTooltip(i)},attrs:{"aria-expanded":t.showTooltip.indexOf(i)>-1?"true":"false"},on:{click:function(e){return t.openTooltip(i,s.Value)}}},[e("div",{staticClass:"text"},[t._v(t._s(s.title))]),t._v(" "),e("div",{staticClass:"icons desktop"},[e("svg",{staticClass:"icon is-medium"},[e("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#down-arrow"}})])]),t._v(" "),e("div",{staticClass:"icons mobile commonIconDiv"},[e("svg",{staticClass:"icon is-large plus"},[e("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#plus"}})]),t._v(" "),e("svg",{staticClass:"icon is-large minus"},[e("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#minus"}})])]),t._v(" "),e("div",{staticClass:"icons mobile search-mobile"},[e("svg",{staticClass:"icon is-large accordion-icon plus"},[e("use",{attrs:{"xlink:href":"#bi bi-chevron-down"}})]),t._v(" "),e("svg",{staticClass:"icon is-large accordion-icon minus"},[e("use",{attrs:{"xlink:href":"#bi bi-chevron-up"}})])])]),t._v(" "),e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.showTooltip.indexOf(i)>-1,expression:"showTooltip.indexOf(index) > -1"}],staticClass:"filter-dropdown__tooltip",class:{active:t.activeTooltip(i)},attrs:{role:"region","aria-label":s.title+t.filterAreaLabel}},[e("span",{staticClass:"is-sr-only"},[t._v(t._s(s.items.filter(function(t){return!0===t.disabled}).length)+" out of "+t._s(s.items.length)+" filter items are disabled")]),t._v(" "),e("ul",[t._l(s.items,function(s,i){return[s.Value?e("li",{key:i},[e("form-checkbox",{attrs:{label:s.Value,selected:s.selected,disabled:s.disabled,name:s.Key},on:{"checkbox-change":function(e){return t.updateSelectedFilters(s)}}}
1)],1):t._e()]})],2),t._v(" "),e("button",{staticClass:"btn btn--secondary",on:{click:function(e){return t.applyFilters()},keypress:function(e){return t.applyFilters()}}},[t._v(t._s(t.labelApply))])])])],1)])}),0),t._v(" "),e("div",{staticClass:"filters-list-wrapper"},[t.appliedFilters.length?e("ul",t._l(t.appliedFilters,function(s){return e("li",{key:s.Value,on:{click:function(e){return t.removeFilter(s)}}},[e("span",[t._v(t._s(s.Value))]),t._v(" "),e("button",{staticClass:"filter-list-remove",attrs:{"aria-label":t.removeFilterAreaLabel+s.Value}},[e("svg",{staticClass:"icon is-medium",attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#cancel"}})])])])}),0):t._e(),t._v(" "),e("button",{directives:[{name:"show",rawName:"v-show",value:t.appliedFilters.length>0,expression:"appliedFilters.length > 0"}],staticClass:"filter-list-remove-all",on:{click:function(e){return t.removeFilter()}}},[t._v(t._s(t.labelClear))])])])};i._withStripped=!0;var r=s(8790),a=s(5353);function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,i)}return s}function l(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?o(Object(s),!0).forEach(function(e){c(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):o(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}function c(t,e,s){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var s=e.call(t,"string");if("object"!=n(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const u={name:"filter-component",props:{filters:{type:Array/Object,required:!0},labelApply:{type:String,default:"Apply"},labelFilter:{type:String,default:"Filter"},labelShow:{type:String,default:"Show"},labelHide:{type:String,default:"Hide"},labelClear:{type:String,required:!0},searchQuery:{type:String,default:""},taggingCategory:{type:String,default:""},productListpage:{type:Boolean,required:!1},filterAreaLabel:{type:String,default:""},removeFilterAreaLabel:{type:String,default:""}},data:function(){return{showTooltip:[],activeTab:"",showTabs:!0,childResult:!1}},created:function(){var t=this;this.$on("onCheckboxChange",function(e){t.updateSelectedFilters(e)}),document.body.addEventListener("click",function(e){t.onBodyClick(e)}),document.addEventListener("keydown",function(e){t.closeTooltipWithoutSaving(e)})},methods:l(l({openTooltip:function(t){this.activeTab===t?this.activeTab="":this.activeTab=t;var e=this.showTooltip.indexOf(t);e>-1?this.showTooltip.pop(e,1):this.showTooltip.push(t)},toggleTabs:function(){this.showTabs=!this.showTabs},activeTooltip:function(t){return this.activeTab===t}},(0,a.i0)({setProductData:"setFilterCardData",filterProducts:"filterCards",updateState:"updateState",toggleSelectedFilters:"toggleSelectedFilters",clearFilters:"clearFilters",setVisibility:"setVisibility",setAnimation:"setAnimation"})),{},{applyFilters:function(t){this.$emit("apply-filters",t),this.showTooltip=[],this.activeTab="",this.setVisibility()},updateSelectedFilters:function(t){this.$emit("toggle-filter",t),this.productListpage?window.dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:"product selector page",eventAction:"filter",eventLabel:t.Value}):window.dataLayer.push({event:"uaevent",ecommerce:"undefined",eventCategory:"internal search",eventAction:"filter",eventLabel:t.Value})},removeFilter:function(t){t?this.$emit("toggle-filter",t):this.$emit("clear-filters"),this.applyFilters()},checkChildren:function(t,e){if(t.childElementCount>0)for(var s=0;s<t.childElementCount;s++)if("svg"!==t.localName){if(t.children[s]===e){this.childResult=!0;break}t.children[s].childElementCount>0&&!1===this.childResult&&this.checkChildren(t.children[s],e)}return this.childResult},onBodyClick:function(t){var e=document.getElementsByClassName("filter-dropdown"),s=!1;this.childResult=!1;for(var i=0;i<e.length;i++)if(this.checkChildren(e[i],t.target)){s=!0;break}this.showTooltip=s?this.showTooltip:[],this.activeTab=s?this.activeTab:""},closeTooltipWithoutSaving:function(t){(0,r.v$)(t)&&(this.selectedFilters=[],this.showTooltip=[],this.activeTab="")}}),computed:{appliedFilters:function(){var t=[];if(this.filters)for(var e=0;e<this.filters.length;e++)for(var s=this.filters[e],i=0;i<s.items.length;i++){var r=s.items[i];r.selected&&t.push(r)}var a=[];return t=t.filter(function(t){return-1==a.indexOf(t.Value)&&(a.push(t.Value),!0)})}}},d=(0,s(4486).A)(u,i,[],!1,null,null,null).exports}}]);
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.