PageSourceSearch

https://www.flyingnun.co.nz/cdn/shop/t/38/assets/component-cart-re…?v=151411547966132855211787110399

js flyingnun.co.nz collected 2026-09-25 20:28:33 UTC 1,591 bytes, 2 lines download raw bytes

1(()=>{class CartRecommendations extends HTMLElement{constructor(){super(),this.recommendationsDrawer=this.closest("[data-cart-drawer-recommendations]"),this.fetchRecommendations=this.fetchRecommendations.bind(this),this.renderRecommendations=this.renderRecommendations.bind(this)}connectedCallback(){window.wetheme.webcomponentRegistry.register({key:"component-cart-recommendations"}),this.fetchRecommendations()}async fetchRecommendations(){if(this.url)try{const response=await fetch(this.url);if(response.ok){const responseText=await response.text();this.renderRecommendations(responseText)}}catch(error){console.error("Failed to fetch cart drawer:",error)}}renderRecommendations(html){const updatedContent=new DOMParser().parseFromString(html,"text/html").querySelector("cart-recommendations")?.innerHTML;!updatedContent||updatedContent.trim().length===0?this.closest("cart-drawer")?.classList.add("hide-recommendations"):(this.innerHTML=updatedContent,this.closest("cart-drawer")?.classList.remove("hide-recommendations"),window.matchMedia("only screen and (max-width: 767px)").matches&&(this.parentElement.style.height="auto",this.parentHeight=this.parentElement.getBoundingClientRect().height,this.parentElement.style.height="",document.documentElement.style.setProperty("--cart-recommendations-height",`${this.parentHeight}px`)))}get url(){return this.getAttribute("data-cart-recommendations-url")}}customElements.define("cart-recommendations",CartRecommendations)})();
2//# sourceMappingURL=/cdn/shop/t/38/assets/component-cart-recommendations.js.map?v=151411547966132855211787110399

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.