1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9276],{49276:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return m}});var r=t(57437),s=t(2265),c=t(27648),n=t(86150),l=t(13962),i=t(75490),o=t.n(i),u=e=>{var a;let{images:t,interval:c=1e3,imageClass:n,imageAlt:i}=e,[u,d]=(0,s.useState)(0);return(0,s.useEffect)(()=>{let e;return u>0&&(e=window.setInterval(()=>{d(e=>(e+1)%t.length)},c)),()=>{clearInterval(e)}},[u,c,t.length]),(0,r.jsx)("div",{onMouseEnter:()=>{d(e=>(e+1)%t.length)},onMouseLeave:()=>{d(0)},className:o().imageContainer,children:t.length>0&&(0,r.jsx)(l.Z,{src:(null===(a=t[u])||void 0===a?void 0:a.src)||"",alt:i||"",fill:!0,sizes:"16rem",className:n,fallbackImage:t[0]})})},d=t(25903),p=t(51888),_=t.n(p),m=e=>{let a,{productId:t,productTitle:l,images:i,listingUrl:o,productType:p,price:m,currency:h,actionElement:C,onProductClicked:g,index:f,placement:N,productTileContainerClass:x}=e,P=(0,s.useCallback)(()=>{if(g&&g(),N&&"Search"===N){let e=f?f+1:0;d.Z.track("search_results_clicked",{price:m,position:e,listingUrl:o})}},[g,f,m,o,N]);return a=m&&!h?m:m&&h?(0,r.jsx)(n.Z,{amount:parseFloat(m),currencyCode:h}):(0,r.jsx)("span",{children:"Price not available"}),(null==i?void 0:i.length)>0?(0,r.jsxs)("div",{className:"".concat(_().productTile," ").concat(x),children:[C,(0,r.jsx)("div",{"data-testid":"product-image-container",className:_().productImageContainer,children:(0,r.jsxs)(c.default,{href:o,onClick:P,role:"link",children:[(0,r.jsx)("span",{className:"sr-only",children:l}),(0,r.jsx)(u,{images:i,imageAlt:l,imageClass:"".concat(_().productImage," group-hover:opacity-75")})]},t)}),(0,r.jsxs)("div",{className:_().productInfoContainer,children:[(0,r.jsxs)("div",{className:_().productContent,children:[(0,r.jsx)("span",{"aria-hidden":"true",className:_().hiddenProductName}),(0,r.jsx)("span",{className:_().productName,children:l}),(0,r.jsx)("span",{className:_().productTypeClass,children:p})]}),(0,r.jsx)("span",{className:_().productPrice,children:a})]})]}):null}},75490:function(e){e.exports={imageContainer:"ImageCycle_imageContainer__imDOt"}},51888:function(e){e.exports={productTile:"ProductVisualDisplay_productTile__rqTw0",productImageContainer:"ProductVisualDisplay_productImageContainer__pc6R2",productImage:"ProductVisualDisplay_productImage__qF8cI",hiddenProductName:"ProductVisualDisplay_hiddenProductName__uhe26",productPrice:"ProductVisualDisplay_productPrice__kpgAh",productInfoContainer:"ProductVisualDisplay_productInfoContainer__WfezJ",productContent:"ProductVisualDisplay_productContent__Pw5C5",productName:"ProductVisualDisplay_productName__SCvU3",productTypeClass:"ProductVisualDisplay_productTypeClass__WefwZ"}}}]); 2//# sourceMappingURL=9276.f6c2ab0600273394.js.map
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.