1import{f as x,d as b,t as B,q as L,z as A,u as q,A as K,i as _,c as Q,g as X}from"./index.DaaxQYDI.js";import{h as U}from"./appExclusive.xQuaRVn6.js";import{s as O}from"./session.BZxovK5N.js";import{c as z,a as M,s as W}from"./addToBasket.BI4HVeMO.js";import{i as T}from"./init-quantity-selector.kuOM4ZgD.js";import{s as $}from"./imageUrl.7Y5dSRhP.js";import{d as V}from"./DynamicRecommendations.CXQng8ey.js";import"./jsonParse.DmCFq1Ah.js";import"./sanitizeUrl.CoNclknf.js";import"./formatPriceBasedOnLocale.CcPekq04.js";function N(){class h extends HTMLElement{originalPictures;originalImages;colorSwatches;colorSwatchContainer;wishlistBtn;originalImage;currentSku;papBanner;constructor(){super(),this.originalImages=this.querySelectorAll(".first-image"),this.originalPictures=this.querySelectorAll("picture source"),this.colorSwatches=this.querySelectorAll(".color-swatch"),this.colorSwatchContainer=this.querySelector(".color-swatch-list"),this.wishlistBtn=this.querySelector(".plp-wishlist-btn"),this.originalImage=this.querySelector(".first-image"),this.currentSku=this.wishlistBtn?.dataset?.currentsku;const e=this.querySelector(".plp-size-options-btn"),t=this.querySelector(".plp-size-options-overlay"),s=this.querySelector(".close-size-options-btn"),n=t?.querySelectorAll(".plp-size-option"),a=this.querySelector(".hover-card-wrapper"),i=this.dataset.appexclusive==="true",r=this.querySelector(".app-exclusive-btn");r&&r.addEventListener("click",g=>{U(g.currentTarget.dataset.productUrl)});const o=window.tenantConfig?.features?.enableAddDirectlyToBasket,l=window.__EXPERIMENTMAP__?.adtb_experiment==="v1|adtb";a&&!i&&(a.addEventListener("mouseenter",c),a.addEventListener("mouseleave",y),a.addEventListener("focusin",S));let w,u=!1;window.sharedFunctions||(window.sharedFunctions={}),window.sharedFunctions?.addToBasket||(window.sharedFunctions.addToBasket=z),window.sharedFunctions.initQuantitySelector||(window.sharedFunctions.initQuantitySelector=T),window.sharedFunctions.addToBasketBtn||(window.sharedFunctions.addToBasketBtn=M),window.sharedFunctions.subscriptionATB||(window.sharedFunctions.subscriptionATB=W),window.sharedFunctions.fetchFragment||(window.sharedFunctions.fetchFragment=x),window.sharedFunctions.triggerDrawer||(window.sharedFunctions.triggerDrawer=b),window.sharedFunctions.triggerOverlay||(window.sharedFunctions.triggerOverlay=B);async function c(){await C()}function y(){I()}async function S(){await C()}const C=async()=>{if(a?.classList.add("hover-loading-card"),a.setAttribute("data-active","true"),!u){const g=this.querySelector(".dynamic-content-wrapper");await window.sharedFunctions.fetchFragment(`/fragments/hoverProductCardFragment/?sku=${f}`,g),u=!0}a?.classList.remove("hover-loading-card")};function I(){clearTimeout(w),a?.classList.remove("hover-loading-card"),a&&a.removeAttribute("data-active")}if(e&&t){s.addEventListener("click",m=>{t?.classList.add("hidden")}),n&&n.forEach(m=>{m.addEventListener("click",()=>{const d=m.getAttribute("data-currentsku");g(d)})});async function g(m){try{await window.sharedFunctions.addToBasket({sku:parseInt(m),quantity:1}).then(()=>{window.Tracker.handlers.addToCart(m)})}catch(d){console.error(d.message)}}e.addEventListener("click",m=>{m.stopPropagation(),document.querySelectorAll(".plp-size-options-overlay:not(.hidden)").forEach(E=>{E?.classList.add("hidden")}),t?.classList.remove("hidden");const k=E=>{t.contains(E.target)||(t?.classList.add("hidden"),document.removeEventListener("click",k))};document.addEventListener("click",k)})}document.addEventListener("keydown",({key:g})=>{g==="Escape"&&t?.classList.add("hidden")}),this.papBanner=this.querySelector(".pap-banner"),this.papBanner?.addEventListener("click",async()=>{window.Tracker.handlers.promoClick({promotion:this.papBanner.innerText}),B(`/fragments/papModalContentFragment/?title=${encodeURIComponent(this.papBanner?.innerHTML||"")}&description=${encodeURIComponent(this.papBanner?.dataset?.description||"")}&url=${encodeURIComponent(this.papBanner?.dataset?.link||"")}&message=${encodeURIComponent(this.papBanner?.dataset?.text||"")}`)});const v=this.querySelector(".quick-buy"),f=v?.dataset?.sku||this.dataset.quicklook;window?.tenantConfig?.features?.hasQuickBuy&&v&&(window.sharedFunctions.initQuantitySelector=T,v.addEventListener("click",async()=>{o||l?await this.openMiniPdpDrawer(f):B(`${L()}/?sku=${f}${this.rctxtParam()}`)}),(o||l)&&v.addEventListener("pointerenter",()=>{A(`/fragments/AddDirectlyToBasketFragment/?sku=${f}${this.rctxtParam()}`)},{once:!0}))}connectedCallback(){this.wishlistBtn?.addEventListener("click",this.handlePlpWishlistBtnClick)}disconnectedCallback(){this.wishlistBtn?.removeEventListener("click",this.handlePlpWishlistBtnClick)}handlePlpWishlistBtnClick=async()=>{const e=this.querySelector(".quick-buy"),t=this.wishlistBtn?.dataset?.currentsku||e?.dataset?.sku||this.currentSku;if(t&&(this.currentSku=String(t)),O.get())this.wishlistBtn?.firstElementChild?.classList.value.includes("inWishlist")?(await q({operation:"RemoveProductFromWishlist",variables:{sku:parseInt(this.currentSku)}})).data.removeProductFromWishlist&&(window.Tracker.handlers.wishlistRemove(this.currentSku),this.wishlistBtn?.firstElementChild?.classList?.remove("inWishlist")):(await q({operation:"AddProductToWishlist",variables:{sku:parseInt(this.currentSku)}}))?.data?.addProductToWishlist&&(window.Tracker.handlers.wishlistAdded(this.currentSku),this.wishlistBtn?.firstElementChild?.classList?.add("inWishlist"));else{const s=encodeURIComponent(this.wishlistBtn?.dataset?.url||""),n=encodeURIComponent(this.wishlistBtn?.dataset?.title||""),a=encodeURIComponent(this.wishlistBtn?.dataset?.image||""),i=encodeURIComponent(this.wishlistBtn?.dataset?.alt||""),r=`/fragments/loginModalContentFragment/?sku=${this.currentSku}&url=${s}&title=${n}&image=${a}&alt=${i}`;B(r)}};rctxtParam=()=>{const e=this.dataset?.rctxt;return e?`&rctxt=${encodeURIComponent(e)}`:""};openMiniPdpDrawer=async e=>{try{await b(`/fragments/AddDirectlyToBasketFragment/?sku=${e}${this.rctxtParam()}`,void 0,"fixed-width",null,!0),setTimeout(()=>{this.setupQuickBuyHandlers()},150)}catch(t){console.error("Error loading AddDirectlyToBasket drawer:",t)}};setupQuickBuyHandlers=()=>{window.sharedFunctions?.addToBasketBtn&&window.sharedFunctions.addToBasketBtn()}}!customElements.get("hover-product-card-wrapper")&&customElements.define("hover-product-card-wrapper",h)}const H="Size",Y="Colour",P=["XXXS","XXS","XS","S","M","L","XL","XXL","XXXL"],F=h=>(h||"").split("/")[0].trim(),D=h=>{const p=h.match(/^(\D*?)(\d+(?:\.\d+)?)(\D*)$/);return p?{scale:`${p[1]}${p[3]}`.replace(/\s+/g,""),value:parseFloat(p[2])}:null},J=(h,p)=>{const e=F(h.title).toUpperCase(),t=F(p.title).toUpperCase(),s=P.indexOf(e),n=P.indexOf(t);if(s!==-1||n!==-1)return s===-1?1:n===-1?-1:s-n;const a=D(e),i=D(t);return a&&i?a.scale===i.scale?a.value-i.value:a.scale.localeCompare(i.scale):a?-1:i?1:0},Z=(h,p)=>[].filter(t=>t?.optionKey&&t.optionKey!==H).every(t=>h?.choices?.some(s=>s?.optionKey===t.optionKey&&s?.key===t.key)),j=(h,p,e)=>{try{if(!h||!Array.isArray(h))return[];const t=i=>{const r=i.choices?.find(o=>o?.optionKey===H);
1return{sku:i?.sku,title:r?.title||"",inStock:!!i?.inStock}},s=h.filter(i=>i?.choices&&Array.isArray(i.choices)).filter(i=>p?i.choices.some(r=>r?.optionKey===Y&&r?.key===p):!0).filter(i=>Z(i,e)).map(t).filter(i=>i.sku&&i.title),n=new Map;for(const i of s){const r=F(i.title).toUpperCase(),o=n.get(r);(!o||i.inStock&&!o.inStock)&&n.set(r,i)}const a=Array.from(n.values()).filter(i=>i.inStock);return a.length>0&&a.sort(J),a}catch(t){return console.error("Error in getSizeList:",t),[]}};function R(){window.sharedFunctions||(window.sharedFunctions={}),window.sharedFunctions.isInViewport=_,window.sharedFunctions.addToBasket=z,window.sharedFunctions.initQuantitySelector=T,window.sharedFunctions.addToBasketBtn=M,window.sharedFunctions.subscriptionATB=W,window.sharedFunctions.fetchFragment=x,window.sharedFunctions.triggerDrawer=b,window.sharedFunctions.triggerOverlay=B,window.sharedFunctions.checkHsaFsaEligibility=Q,window.sharedFunctions.getProductContent=X}function G(){class h extends HTMLElement{handleColourSwatch;wishlistBtn;originalImage;secondaryImage;lastColorClicked=null;imageContainer;currentSku;productSku;papBanner;quickBuyBtn;variantContainer;isHoveringImage=!1;constructor(){super(),this.handleKeyDown=this.handleKeyDown.bind(this),this.variantContainer=this.querySelector("variation-container"),this.imageContainer=this.querySelector(".first-image")||this.querySelector("img"),this.quickBuyBtn=this.querySelector(".quick-buy"),this.imageAnchor=this.querySelector('[data-name="image-anchor"]'),this.originalImage=this.imageAnchor?.dataset?.primarySrc||null,this.secondaryImage=this.imageAnchor?.dataset?.secondarySrc||null;const e=window.tenantConfig?.features?.enableAddDirectlyToBasket,t=window.__EXPERIMENTMAP__?.adtb_experiment==="v1|adtb";if(window.matchMedia("(hover: hover) and (pointer: fine)").matches&&this.imageContainer&&this.secondaryImage){const r=this.querySelector(".image-loading-spinner");this.secondaryImgEl=this.imageContainer.cloneNode(!1),this.secondaryImgEl.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;background:#F8F7F4;opacity:0;",this.secondaryImgEl.removeAttribute("loading"),this.secondaryImgEl.setAttribute("alt",""),this.secondaryImgEl.setAttribute("aria-hidden","true");const o=this.imageContainer.parentElement;o.style.position="relative",o.style.display="block",o.appendChild(this.secondaryImgEl);const l=this.imageAnchor;l.addEventListener("mouseenter",()=>{r&&(r.style.display="none"),this.isHoveringImage=!0,this.secondaryImage&&(this.secondaryImgEl.getAttribute("src")!==this.secondaryImage&&(this.secondaryImgEl.style.opacity="0",this.secondaryImgEl.src=this.secondaryImage),this.revealSecondaryImage())}),l.addEventListener("mouseleave",()=>{this.isHoveringImage=!1,this.clearSecondaryImageReveal(),this.secondaryImgEl.style.opacity="0"})}this.wishlistBtn=this.querySelector(".plp-wishlist-btn"),this.currentSku=this.wishlistBtn?.dataset?.currentsku,this.productSku=this.currentSku;const n=this.querySelector(".show-more-colors"),a=this.querySelector(".color-swatch-list");n&&(n.addEventListener("click",()=>{a?.classList.remove("[&>*:nth-child(1n+5):not(.show-more-color-swatches-btn)]:hidden"),n?.classList.add("hidden")}),n.addEventListener("keydown",r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),n.click())})),this.papBanner=this.querySelector(".pap-banner"),this.papBanner?.addEventListener("click",async()=>{window.Tracker.handlers.promoClick({promotion:this.papBanner.innerText}),B(`/fragments/papModalContentFragment/?title=${encodeURIComponent(this.papBanner?.innerHTML||"")}&description=${encodeURIComponent(this.papBanner?.dataset?.description||"")}&url=${encodeURIComponent(this.papBanner?.dataset?.link||"")}&message=${encodeURIComponent(this.papBanner?.dataset?.text||"")}`)});const i=this.querySelector(".app-exclusive-btn");i&&i.addEventListener("click",r=>{U(r.currentTarget.dataset.productUrl)}),window?.tenantConfig?.features?.hasQuickBuy&&this.quickBuyBtn&&(R(),(e||t)&&this.quickBuyBtn?.addEventListener("pointerenter",()=>{const r=this.quickBuyBtn.dataset.sku;A(`/fragments/AddDirectlyToBasketFragment/?sku=${r}${this.rctxtParam()}`)},{once:!0}),this.quickBuyBtn?.addEventListener("click",async()=>{const r=this.quickBuyBtn.dataset.sku,o=this.quickBuyBtn.dataset?.triggerAddedToBag==="true";e||t?await this.openMiniPdpDrawer(r):B(`${L()}/?sku=${r}&triggerAddedToBag=${o}${this.rctxtParam()}`)})),this.hasAttribute("data-card-v4")&&this.initV4Card()}connectedCallback(){this.wishlistBtn?.addEventListener("click",this.handlePlpWishlistBtnClick);const e=this.querySelector(".color-swatch-list");e?.addEventListener("click",t=>{const s=t.target.closest(".color-swatch");if(s?.dataset?.colour){const n=s.dataset.colour;this.handleColourSwatch(n,s?.dataset?.sku),this.secondaryImage=s.dataset.secondsrc,this.originalImage=s.dataset.src,this.secondaryImage&&(this.preloadedImg=new Image,this.preloadedImg.src=this.secondaryImage),this.switchImage(this.originalImage),this.secondaryImgEl&&(this.secondaryImgEl.style.opacity="0");const a=this.querySelector(".plp-size-container");if(a){const i=new MutationObserver(r=>{for(const o of r)if(o.type==="childList"&&o.addedNodes.length>0){const l=this.querySelector(".plp-size-container a");l&&(l.focus(),i.disconnect())}});i.observe(a,{childList:!0,subtree:!0})}}}),e?.addEventListener("keydown",t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),t.target.classList.contains("color-swatch")&&t.target.click())}),this.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){this.wishlistBtn?.removeEventListener("click",this.handlePlpWishlistBtnClick),this.removeEventListener("keydown",this.handleKeyDown)}handlePlpWishlistBtnClick=async()=>{const e=this.wishlistBtn?.dataset?.currentsku||this.quickBuyBtn?.dataset?.sku||this.currentSku;if(e&&(this.currentSku=String(e)),O.get())this.wishlistBtn?.firstElementChild?.classList.value.includes("inWishlist")?(await q({operation:"RemoveProductFromWishlist",variables:{sku:parseInt(this.currentSku)}})).data.removeProductFromWishlist&&(window.Tracker.handlers.wishlistRemove(this.currentSku),this.wishlistBtn?.firstElementChild?.classList?.remove("inWishlist")):(await q({operation:"AddProductToWishlist",variables:{sku:parseInt(this.currentSku)}}))?.data?.addProductToWishlist&&(window.Tracker.handlers.wishlistAdded(this.currentSku),this.wishlistBtn?.firstElementChild?.classList?.add("inWishlist"));else{const t=encodeURIComponent(this.currentSku||""),s=encodeURIComponent(this.wishlistBtn?.dataset?.url||""),n=encodeURIComponent(this.wishlistBtn?.dataset?.title||""),a=encodeURIComponent(this.wishlistBtn?.dataset?.image||""),i=encodeURIComponent(this.wishlistBtn?.dataset?.alt||""),r=`/fragments/loginModalContentFragment/?sku=${t}&url=${s}&title=${n}&image=${a}&alt=${i}`;B(r)}};handleColourSwatch=(e,t)=>{this.lastColorClicked=e;const s=this.querySelector(".plp-size-container"),n=window.Tracker.store.get("productList").items?.[this.productSku]?.variants,a=j(n,e),i=a?.[0]?.sku||t;if(i){const r=String(i);this.currentSku=r;const o=n?.find(l=>Number(l?.sku)===Number(r));if(this.quickBuyBtn&&(this.quickBuyBtn.dataset.sku=r),this.wishlistBtn){this.wishlistBtn.dataset.currentsku=r;const l=o?.product?.images?.[0]?.original||o?.images?.[0]?.original,w=o?.product?.images?.[0]?.altText||o?.images?.[0]?.altText||o?.title;o?.title&&(this.wishlistBtn.dataset.title=o.title),l&&(this.wishlistBtn.dataset.image=l),w&&(this.wishlistBtn.dataset.alt=w);const u=this.wishlistBtn.dataset.url||this.imageAnchor?.getAttribute("href")||"";if(u)try{const c=new URL(u,window.location.origin);c.searchParams.set("variation",r),this.wishlistBtn.dataset.url=`${c.pathname}
1${c.search}`}catch(c){console.error("Failed to update wishlist URL with variation",{currentUrl:u,normalizedSku:r,error:c})}}}s&&this.imageAnchor&&x("/fragments/plpCardSizeListFragment",s,{url:this.imageAnchor.href,sizeList:a,productTitle:this.querySelector(".product-item-title")?.textContent?.trim()})};switchImage=e=>{e&&(this.imageContainer.src=e)};clearSecondaryImageReveal=()=>{this.secondaryImgEl&&(this.secondaryImgEl.onload=null)};revealSecondaryImage=()=>{const e=this.secondaryImgEl;if(!e)return;const t=()=>{this.isHoveringImage&&e.getAttribute("src")===this.secondaryImage&&(e.style.opacity="1")};this.clearSecondaryImageReveal(),e.complete?t():e.onload=t};initV4Card=()=>{R(),this.v4ImageTemplate={src:this.imageContainer?.getAttribute("src")||"",raw:$(this.imageAnchor?.dataset?.primarySrc||"")},this.querySelector(".card-thumb-row")?.addEventListener("click",s=>{if(s.target.closest(".card-thumb-more")){this.openAddToBagDrawer();return}const n=s.target.closest(".card-thumb");n&&this.selectV4Variant(n)});const t=this.querySelector(".card-quick-buy");t?.addEventListener("pointerenter",()=>A(this.cardDrawerUrl()),{once:!0}),t?.addEventListener("click",()=>this.openAddToBagDrawer())};addToBagDrawerQuery=()=>{const e=this.dataset.sku,t=this.dataset.selectedSku;return`${t&&String(t)!==String(e)?`?sku=${e}&variation=${t}`:`?sku=${e}`}&triggerAddedToBag=true`};addToBagDrawerUrl=()=>`/fragments/AddDirectlyToBasketFragment/${this.addToBagDrawerQuery()}${this.rctxtParam()}`;cardDrawerUrl=()=>{if(K()!=="drawer")return this.addToBagDrawerUrl();const e=this.dataset.selectedSku||this.dataset.sku;return`${L()}/?sku=${e}${this.rctxtParam()}`};v4SwappedSrc=e=>{const{src:t,raw:s}=this.v4ImageTemplate||{};return t&&s&&t.includes(s)?t.replace(s,$(e)):e};v4Macros=e=>{try{const t=JSON.parse(e.dataset.macros||"[]");return Array.isArray(t)?t:[]}catch{return[]}};setV4Stock=e=>{this.classList.toggle("is-out-of-stock",!e);const t=this.querySelector("[data-card-oos]");t&&(t.hidden=e);const s=this.querySelector(".card-quick-buy");if(s){s.disabled=!e,s.classList.toggle("cursor-not-allowed",!e),s.classList.toggle("text-[#8b9698]",!e);const n=e?s.dataset.labelAdd:s.dataset.labelOutOfStock;n&&s.setAttribute("aria-label",n)}};selectV4Variant=e=>{const{sku:t,image:s,secondaryImage:n,alt:a,price:i,saving:r,was:o,promo:l,flash:w,showFlash:u,inStock:c,perServing:y}=e.dataset;this.querySelectorAll(".card-thumb").forEach(d=>{const k=d===e;d.setAttribute("aria-checked",k?"true":"false"),d.classList.toggle("border-[#007831]",k),d.classList.toggle("border-transparent",!k)}),s&&this.imageContainer&&(this.imageContainer.src=this.v4SwappedSrc(s),a&&(this.imageContainer.alt=a)),this.secondaryImgEl&&(this.secondaryImage=n?this.v4SwappedSrc(n):null,this.clearSecondaryImageReveal(),this.secondaryImgEl.style.opacity="0",this.secondaryImage&&(this.secondaryImgEl.src=this.secondaryImage));const S=this.querySelector("[data-card-price]"),C=this.querySelector("[data-card-chips]"),I=this.querySelector("[data-card-saving]"),v=this.querySelector("[data-card-was]"),f=this.querySelector("[data-card-flash]");S&&(S.textContent=i||""),I&&(I.textContent=r||""),v&&(v.textContent=o||""),C&&(C.hidden=l!=="true"),this.setV4Stock(c!=="false"),f&&(f.textContent=w||"",f.hidden=u!=="true"||this.classList.contains("is-out-of-stock"));const g=this.querySelector("[data-card-macros]");if(g){const d=this.v4Macros(e);g.replaceChildren(...d.map(k=>{const E=document.createElement("span");return E.textContent=k,E})),g.hidden=d.length===0}const m=this.querySelector("[data-card-per-serving]");if(m&&(m.textContent=y||"",m.hidden=!y),this.querySelectorAll("[data-sizes-for]").forEach(d=>{d.hidden=d.dataset.sizesFor!==String(t)}),t){this.dataset.selectedSku=t,this.currentSku=String(t);const d=this.querySelector(".card-quick-buy");d&&(d.dataset.sku=t),this.wishlistBtn&&(this.wishlistBtn.dataset.currentsku=t,a&&(this.wishlistBtn.dataset.alt=a),s&&(this.wishlistBtn.dataset.image=s))}};openAddToBagDrawer=async()=>{if(this.dataset.sku)try{await b(this.cardDrawerUrl(),void 0,"fixed-width",null,!0),setTimeout(()=>{this.setupQuickBuyHandlers()},150)}catch(e){console.error("Error loading product card drawer:",e)}};rctxtParam=()=>{const e=this.quickBuyBtn?.dataset?.rctxt||this.dataset.rctxt;return e?`&rctxt=${encodeURIComponent(e)}`:""};openMiniPdpDrawer=async(e,t)=>{try{await b(`/fragments/AddDirectlyToBasketFragment/${t??`?sku=${e}`}${this.rctxtParam()}`,void 0,"fixed-width",null,!0),setTimeout(()=>{this.setupQuickBuyHandlers()},150)}catch(s){console.error("Error loading AddDirectlyToBasket drawer:",s)}};setupQuickBuyHandlers=()=>{window.sharedFunctions?.addToBasketBtn&&window.sharedFunctions.addToBasketBtn()};getNavOrder(){const e=this.querySelector('[data-name="image-anchor"]'),t=this.querySelector(".plp-wishlist-btn"),s=this.querySelector(".color-swatch-list"),n=s?Array.from(s.querySelectorAll('.color-swatch[tabindex="0"], .show-more-color-swatches-btn button')):[],a=Array.from(this.querySelectorAll(".plp-size-container a")),i=Array.from(this.querySelectorAll(".card-thumb, .card-thumb-more")),r=this.querySelector(".product-item-title"),o=this.querySelector(".reviews"),l=this.querySelector(".quick-buy")||this.querySelector(".card-quick-buy"),w=this.querySelector(".pap-banner"),u=y=>y.filter(S=>S&&S.offsetParent!==null),c=[];return c.push(e),c.push(t),c.push(...u(a)),c.push(...u(i)),u(n).forEac
1h(y=>{c.push(y)}),c.push(r),c.push(o),c.push(l),c.push(w),u(c)}handleKeyDown(e){if(e.key!=="Tab")return;const t=document.activeElement;if(!this.contains(t)||t.closest(".modal"))return;const s=this.getNavOrder(),n=s.indexOf(t);if(n===-1)return;const a=n===s.length-1,i=n===0;if(!e.shiftKey&&a||e.shiftKey&&i)return;e.preventDefault();const r=n+(e.shiftKey?-1:1);s[r]?.focus()}}!customElements.get("product-card-wrapper")&&customElements.define("product-card-wrapper",h)}window?.tenantConfig?.features?.enableHoverProductItem&&N();G();V();
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.