PageSourceSearch

https://www.redken.co.uk/themes/redken/async-chunks/list-product-dec2065b01ae79e3bd6c-chunk.js

js redken.co.uk collected 2026-10-02 06:28:32 UTC 11,472 bytes, 2 lines download raw bytes

1/*! For license information please see list-product-dec2065b01ae79e3bd6c-chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkwf_core_setup=self.webpackChunkwf_core_setup||[]).push([[5857],{8852:(t,e,n)=>{n.r(e),n.d(e,{default:()=>d});var o=function(){var t=this,e=t._self._c;return e("div",{ref:"productImage",staticClass:"products list-products"},[t._l(t.products,function(n,o){return e("div",{key:o,staticClass:"product card product-card-item"},[e("a",{attrs:{href:n.ProductJsons[0].url}},[e("div",{on:{click:function(e){return t.productClick(n.ProductJsons[0],t.listvalue,o)}}},[n.ProductJsons[0].disableNewBadge?[n.ProductJsons[0].superHeading?e("div",{staticClass:"newbadge newbadge-products"},[t._v(t._s(n.ProductJsons[0].superHeading))]):t._e()]:[n.ProductJsons[0].NewText?e("div",{staticClass:"newbadge newbadge-products"},[t._v(t._s(n.ProductJsons[0].NewText))]):[n.ProductJsons[0].superHeading?e("div",{staticClass:"newbadge newbadge-products"},[t._v(t._s(n.ProductJsons[0].superHeading))]):t._e()]],t._v(" "),e("div",{staticClass:"product__image"},[e("span",{staticClass:"mainImage",domProps:{innerHTML:t._s(n.ProductJsons[0].responsiveImageHtml)}}),t._v(" "),n.ProductJsons[0].reponsiveBadgeImageHtml?e("span",{domProps:{innerHTML:t._s(n.ProductJsons[0].reponsiveBadgeImageHtml)}}):t._e(),t._v(" "),n.ProductJsons[0].responsiveRolloverImageHtml?e("span",{staticClass:"rollimg-top",domProps:{innerHTML:t._s(n.ProductJsons[0].responsiveRolloverImageHtml)}}):t._e()]),t._v(" "),n.ProductJsons[0].title?e("h2",{staticClass:"product__name product__name-main-heading"},[t._v("\n                    "+t._s(n.ProductJsons[0].title)+"\n                ")]):t._e(),t._v(" "),n.ProductJsons[0].subHeading?e("p",{staticClass:"product__sub-heading"},[t._v("\n                    "+t._s(n.ProductJsons[0].subHeading)+"\n                ")]):t._e(),t._v(" "),n.ProductJsons[0].shortdescription&&t.textCapitalize?e("p",{staticClass:"product__short-description text-capitalize",domProps:{innerHTML:t._s(n.ProductJsons[0].shortdescription.toLowerCase())}}):e("p",{staticClass:"product__short-description",domProps:{innerHTML:t._s(n.ProductJsons[0].shortdescription)}})],2)]),t._v(" "),t.disableratingstar?t._e():e("star-ratings",{attrs:{rating:null!=n.ProductJsons[0].OverallProductRating?n.ProductJsons[0].OverallProductRating:0,counts:null!=n.ProductJsons[0].TotalRatingCount?n.ProductJsons[0].TotalRatingCount:0,"star-rating-increment-value":1,"star-rating-max-rating-value":5,"star-rating-inactive-color":"#666","star-rating-active-color":"#000000","star-rating-star-size":20}}),t._v(" "),t.bvenabled?e("div",{staticClass:"inline-rating",attrs:{"data-bv-show":"inline_rating","data-bv-product-id":n.ProductJsons[0].universalProductCode,"data-bv-seo":"false"}}):t._e(),t._v(" "),n.RetailerInfo&&n.RetailerInfo.length&&t.enablectbforrelatedproducts&&!t.showChannelAdvisor?e("div",{staticClass:"product-description__texts--stores list-product-val"},[e("button",{staticClass:"btn btn--primary",attrs:{"aria-expanded":"false"},on:{click:function(e){return t.dropdownOpenBtn(o,n)}}},[t._v("\n                "+t._s(n.buyNowButtonText)+"\n            ")]),t._v(" "),e("ul",{ref:"dropdownListVal",refInFor:!0,staticClass:"slidermobileview"},t._l(n.RetailerInfo,function(r){return e("li",{key:r.retailerText},[e("a",{staticStyle:{"text-transform":"uppercase"},attrs:{href:r.href,title:r.title,target:"_blank"},on:{click:function(e){return t.addToCart(n.ProductJsons[0],r.retailerText)},blur:function(e){o==n.RetailerInfo.length-1&&(t.showDropdown=!1)}}},[t._v("\n                        "+t._s(r.retailerText)+"\n                        "),e("svg",{staticClass:"icon is-large"},[e("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#arrow-right-link"}})])])])}),0)]):t.showChannelAdvisor?e("div",{staticClass:"product-description__texts--stores"},[e("button",{staticClass:"btn btn--primary",attrs:{"aria-label":"".concat(t.channelAdvisorCta," ").concat(n.ProductJsons[0].title)},on:{click:function(e){return t.openModal(n.ProductJsons[0])}}},[t._v(t._s(t.channelAdvisorCta))])]):t.isMikmakEnabled?e("div",{staticClass:"product-description__texts--stores"},[e("mik-mak",{attrs:{"mikmak-widget-id":t.mikmakWidgetId,"mikmak-sticky-button":t.mikmakStickyButton,"buy-now-button-text":t.buyNowButtonText,"product-name":n.ProductJsons[0].title,"product-id":n.ProductJsons[0].id,"product-details-category":n.ProductJsons[0].category,"product-total-rating-count":null!=n.ProductJsons[0].TotalRatingCount?n.ProductJsons[0].TotalRatingCount.toString():"0","product-overall-product-rating":null!=n.ProductJsons[0].OverallProductRating?n.ProductJsons[0].OverallProductRating.toString():"0","click-to-buy-tagging-enabled":t.tagging,"item-position":t.productPosition+1}})],1):e("div",{staticClass:"product-description__texts--stores"})],1)}),t._v(" "),t.isModalOpen?e("div",{staticClass:"modal",attrs:{id:"myModal"}},[e("div",{staticClass:"popup-overlay"}),t._v(" "),e("div",{staticClass:"modal-content"},[e("span",{staticClass:"close",attrs:{id:"close-popup"},on:{click:t.closeModal}},[t._v("×")]),t._v(" "),e("iframe",{staticStyle:{width:"100%"},attrs:{id:"myframe",title:"Buy Now",name:"myframe",src:t.iframeSrc}})])]):t._e()],2)};o._withStripped=!0;var r=n(8790);function s(){var t,e,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,s){var i=o&&o.prototype instanceof d?o:d,u=Object.create(i.prototype);return a(u,"_invoke",function(n,o,r){var s,a,i,d=0,u=r||[],l=!1,p={p:0,n:0,v:t,a:g,f:g.bind(t,4),d:function(e,n){return s=e,a=0,i=t,p.n=n,c}};function g(n,o){for(a=n,i=o,e=0;!l&&d&&!r&&e<u.length;e++){var r,s=u[e],g=p.p,v=s[2];n>
23?(r=v===o)&&(i=s[(a=s[4])?5:(a=3,3)],s[4]=s[5]=t):s[0]<=g&&((r=n<2&&g<s[1])?(a=0,p.v=o,p.n=s[1]):g<v&&(r=n<3||s[0]>o||o>v)&&(s[4]=n,s[5]=o,p.n=v,a=0))}if(r||n>1)return c;throw l=!0,o}return function(r,u,v){if(d>1)throw TypeError("Generator is already running");for(l&&1===u&&g(u,v),a=u,i=v;(e=a<2?t:i)||!l;){s||(a?a<3?(a>1&&(p.n=-1),g(a,i)):p.n=i:p.v=i);try{if(d=2,s){if(a||(r="next"),e=s[r]){if(!(e=e.call(s,i)))throw TypeError("iterator result is not an object");if(!e.done)return e;i=e.value,a<2&&(a=0)}else 1===a&&(e=s.return)&&e.call(s),a<2&&(i=TypeError("The iterator does not provide a '"+r+"' method"),a=1);s=t}else if((e=(l=p.n<0)?i:n.call(o,p))!==c)break}catch(e){s=t,a=1,i=e}finally{d=1}}return{value:e,done:l}}}(n,r,s),!0),u}var c={};function d(){}function u(){}function l(){}e=Object.getPrototypeOf;var p=[][o]?e(e([][o]())):(a(e={},o,function(){return this}),e),g=l.prototype=d.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,a(t,r,"GeneratorFunction")),t.prototype=Object.create(g),t}return u.prototype=l,a(g,"constructor",l),a(l,"constructor",u),u.displayName="GeneratorFunction",a(l,r,"GeneratorFunction"),a(g),a(g,r,"Generator"),a(g,o,function(){return this}),a(g,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m:v}})()}function a(t,e,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}a=function(t,e,n,o){function s(e,n){a(t,e,function(t){return this._invoke(e,n,t)})}e?r?r(t,e,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[e]=n:(s("next",0),s("throw",1),s("return",2))},a(t,e,n,o)}function i(t,e,n,o,r,s,a){try{var i=t[s](a),c=i.value}catch(t){return void n(t)}i.done?e(c):Promise.resolve(c).then(o,r)}const c={name:"list-product",data:function(){return{dataLayerPushed:!1,tagging:!0,showDropdown:!1,dropDownIndex:-1,isModalOpen:!1,iframeSrc:"",product:""}},props:{products:{type:Array},page:{type:String},listvalue:{type:String,default:"cross-sell"},disableratingstar:{type:Boolean},bvenabled:{type:Boolean},enablectbforrelatedproducts:{type:Boolean},showChannelAdvisor:{type:Boolean,default:!1},channelAdvisorCta:{type:String,default:""},textCapitalize:{type:Boolean,default:!1},isMikmakEnabled:{type:Boolean,default:!1},mikmakWidgetId:{type:String,default:""},mikmakStickyButton:{type:Boolean,default:!1},buyNowButtonText:{type:String,default:""}},methods:{closeModal:function(){document.body.style.overflow="",this.isModalOpen=!this.isModalOpen,window.removeEventListener("message",this.handleIframeMessage,!1)},openModal:function(t){document.body.style.overflow="hidden",this.isModalOpen=!this.isModalOpen,this.iframeSrc=t.iframeSrc,this.product=t,this.isModalOpen&&(this.buyNowtaggingDataTagging(t),window.addEventListener("message",this.handleIframeMessage,!1))},handleIframeMessage:function(t){if("string"==typeof t.data&&t.data.startsWith("uaevent")){var e=t.data.split("|"),n="";e&&e.length>2&&(n=e[3].split("::")[1].toLowerCase()),this.addToCart(this.product,n)}},productImpressions:function(){var t=this,e={event:"nievent",eventAction:"Product Impressions",eventCategory:"Ecommerce",eventLabel:this.pageCategory,event_name:"view_item_list",ecommerce:{currencyCode:"none",impressions:[]}},n=this.products,o=[];n&&n.length&&n.forEach(function(t){t.ProductJsons&&t.ProductJsons.length&&o.push(t.ProductJsons[0])}),o.forEach(function(t,e){t.p_index=e+1});var r=function(){var n,r=(n=s().m(function n(){return s().w(function(n){for(;;)switch(n.n){case 0:return n.n=1,t.waitForAllRatingElement();case 1:t.processProductImpressionsFn(o,e);case 2:return n.a(2)}},n)}),function(){var t=this,e=arguments;return new Promise(function(o,r){var s=n.apply(t,e);function a(t){i(s,o,r,a,c,"next",t)}function c(t){i(s,o,r,a,c,"throw",t)}a(void 0)})});return function(){return r.apply(this,arguments)}}();r()},processProductImpressionsFn:function(t,e){var n=this;t.forEach(function(t,o){n.updateAllRatingReviewCount(t);var r={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:"none",list:n.listvalue?n.listvalue.toLowerCase():"cross-sell",position:o+1,dimension35:"none",dimension36:"none",dimension38:n.domRatingValue,dimension48:t.id||"none",dimension49:"not present",dimension
259:n.domReviewCount,dimension91:"none"};e.ecommerce.impressions.push(r)});try{var o,s=null===(o=this.$refs)||void 0===o?void 0:o.productImage;this.tagging=(0,r.yQ)(s),!1===this.dataLayerPushed&&this.tagging&&((0,r.n2)(e),this.dataLayerPushed=!0,this.tagging=!1)}catch(t){console.warn("failed to push tag to dataLayer",e)}},dropdownOpenBtn:function(t,e){var n=this.$refs.dropdownListVal[t];if(n){n.classList.toggle("retailer-list");var o=n.closest(".product-description__texts--stores.list-product-val").querySelector("button.btn");n.classList.contains("retailer-list")?(o.ariaExpanded=!0,this.buyNowtaggingDataTagging(e)):o.ariaExpanded=!1}},buyNowtaggingDataTagging:function(t){var e={event:"uaevent",event_name:"buy_now",ecommerce:"undefined",eventCategory:"Ecommerce",eventAction:"click to buy",eventLabel:"".concat(t.ProductJsons[0].title.toLowerCase().trim(),"::").concat(t.ProductJsons[0].id),product_info:"".concat(t.ProductJsons[0].title.toLowerCase().trim(),"::").concat(t.ProductJsons[0].id)};window.dataLayer.push(e)}},mounted:function(){var t=this;window.onload=function(){t.productImpressions()}},created:function(){window.addEventListener("scroll",this.productImpressions,{passive:!0}),window.wsf&&window.wsf.pageDetails&&(this.pageCategory=window.wsf.pageDetails.pageCategory)},destroyed:function(){window.removeEventListener("scroll",this.productImpressions)}},d=(0,n(4486).A)(c,o,[],!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.