1(function(){"use strict";if(window.__cartDrawerRecomsLoaded)return;window.__cartDrawerRecomsLoaded=!0;var gen=0;function init(){var block=document.querySelector("[data-cart-drawer-recoms]");if(block){var key=block.dataset.recomKey,path=block.dataset.contextPath,list=block.querySelector("[data-cart-drawer-recoms-list]");if(!(!key||!path||!list)){var thisGen=++gen;window.hrq=window.hrq||[],window.hrq.push(["loadRecom",[{key:key,format:"json",context:{urls:[window.location.origin+path]}}],function(result){if(thisGen===gen){var response=pickFirstResponse(result);if(response){var products=response.products;!products||!products.length||(render(list,products),block.style.display="")}}}])}}}function pickFirstResponse(result){return Array.isArray(result)?result[0]:result&&Array.isArray(result.responses)?result.success===!1?(console.error("[Cart Recoms] loadRecom failed:",result.message),null):result.responses[0]:result&&typeof result=="object"?result:null}function render(listEl,products){var H=window.HelloRetailHelpers;if(H){var fillers=Object.assign({},H.CARD_SLOT_FILLERS,{productMedia:renderThumbnailMedia}),carousel=document.createElement("scroll-carousel");carousel.setAttribute("group-cells",""),carousel.setAttribute("allow-drag",""),carousel.className="product-list product-list--carousel product-list--compact scroll-area",products.forEach(function(p){var card=H.cloneTemplate("hr-product-card-tpl");card&&(H.fillSlots(card,fillers,p),carousel.appendChild(card))}),listEl.innerHTML="",listEl.appendChild(carousel)}}function renderThumbnailMedia(el,p){var H=window.HelloRetailHelpers,tpl=document.getElementById("hr-product-card-tpl"),imgClass=tpl&&tpl.dataset.imgClass||"product-card__image product-card__image--primary object-cover",thumb=pickThumbnailImage(p);if(thumb){el.innerHTML='<a href="'+H.escapeHtml(p.url)+'" class="product-card__media" data-instant><img src="'+H.escapeHtml(thumb.src)+'" alt="'+H.escapeHtml(thumb.alt||p.title)+'" class="'+imgClass+'" loading="lazy"></a>';return}el.innerHTML=H.buildMediaHtml(p,imgClass)}function pickThumbnailImage(p){var raw=p&&p.extraDataList&&p.extraDataList.images;if(!raw||!raw.length)return null;for(var i=0;i<raw.length;i++){var img=null;try{img=JSON.parse(raw[i])}catch(e){continue}if(!(!img||!img.src)){var filename=img.src.split("?")[0].split("/").pop()||"";if(filename.toLowerCase().indexOf("thumbnail")!==-1)return img}}return null}function boot(){window.HelloRetailHelpers?init():document.addEventListener("hr:helpers:ready",init)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",boot):boot(),document.addEventListener("cart-drawer:refreshed",init)})(); 2//# sourceMappingURL=/cdn/shop/t/10/assets/hello-retail-cart-recoms.js.map?v=54263797530365899261789984725
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.