PageSourceSearch

https://hannoushhadley.com/cdn/shop/t/3/assets/recently-viewed.js?v=86040239585602114031744981267

js hannoushhadley.com collected 2026-10-04 04:30:49 UTC 2,455 bytes, 2 lines download raw bytes

1"use strict";var BlsRVPageShopify=(function(){return{initRVItems:function(){if(window.location.search.indexOf("page=")==-1){const rv_items=JSON.parse(localStorage.getItem("bls__recently-viewed-products"));this.init(rv_items)}},init:function(rv_items){const _this=this,rv_div=document.querySelector(".bls__rv-page-main"),div_no_product=rv_div.querySelector(".bls__rv-no-product-js"),div_product=rv_div.querySelector(".row");if(rv_items===null||rv_items.length===0)div_no_product&&div_no_product.classList.remove("d-none"),div_product&&div_product.classList.add("d-none"),_this.skeletonFunction(0);else{div_product&&div_product.classList.remove("d-none");var query="";rv_items.forEach((e,key,rv_items2)=>{Object.is(rv_items2.length-1,key)?query+=e.id:query+=e.id+"%20OR%20id:"});var productAjaxURL="?view=rv-products&type=product&options[unavailable_products]=last&q=id:"+query;fetch(`${window.routes.search_url}${productAjaxURL}`).then(response=>response.text()).then(responseText=>{const html=parser.parseFromString(responseText,"text/html");document.createElement("div").classList.add("row");const exist_row=rv_div.querySelector(".row");exist_row&&exist_row.remove();const er=html.querySelector(".bls__rv-page-main > .row");rv_items.length!==0&&er?(rv_div.innerHTML=html.querySelector(".bls__rv-page-main").innerHTML,_this.skeletonFunction(700)):(_this.skeletonFunction(0),div_no_product.classList.remove("d-none"))}).catch(e=>{console.error(e)}).finally(e=>{BlsColorSwatchesShopify.init(),BlsSubActionProduct.handleInitQuickviewAction(),BlsSubActionProduct.init(),BlsLazyloadImg.init(),BlsRVPageShopify.clearAll()})}},clearAll:function(){const rv_div=document.querySelector(".bls__rv-page-main");if(rv_div){if(!rv_div.querySelector(".bls__clear-all-rvp"))return;rv_div.querySelector(".bls__clear-all-rvp").addEventListener("click",function(){rv_div.querySelector(".bls__clear-all-rvp").classList.add("d-none"),localStorage.removeItem("bls__recently-viewed-products"),BlsRVPageShopify.initRVItems()})}},skeletonFunction:function(timer){window.setTimeout(function(){this.document.querySelector("skeleton-page")&&this.document.querySelector("skeleton-page").remove(),this.document.querySelector(".bls__rv-page-section-inner")&&this.document.querySelector(".bls__rv-page-section-inner").classList.remove("d-none")},timer)}}})();BlsRVPageShopify.initRVItems();
2//# sourceMappingURL=/cdn/shop/t/3/assets/recently-viewed.js.map?v=86040239585602114031744981267

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.