PageSourceSearch

https://steinmart.com/cdn/shop/t/12/assets/quick-view.js?v=70568368836207601381789996020

js steinmart.com collected 2026-09-24 11:15:30 UTC 3,009 bytes, 2 lines download raw bytes

1customElements.get("quick-view-modal")||customElements.define("quick-view-modal",class extends DrawerComponent{constructor(){super(),this.classesToRemoveOnLoad="drawer--loading",this.drawerBody=this.querySelector(this.selector)}get selector(){return".quick-view__content"}get requiresBodyAppended(){return!(Shopify.designMode&&this.closest(".section-group-overlay-quick-view"))}prepareToShow(){super.prepareToShow(),this.quickview()}handleAfterShow(){super.handleAfterShow(),document.dispatchEvent(new CustomEvent("quick-view:open",{detail:{productUrl:this.dataset.productUrl}}))}handleAfterHide(){super.handleAfterHide();const drawerContent=this.querySelector(this.selector);drawerContent.innerHTML="",this.classList.add(this.classesToRemoveOnLoad)}getProductQuickViewSectionId(){let sectionId=FoxTheme.QuickViewSectionId||!1;if(!sectionId){const productQuickView=document.querySelector(".section-group-overlay-quick-view");productQuickView&&(sectionId=FoxTheme.utils.getSectionId(productQuickView)),FoxTheme.QuickViewSectionId=sectionId}return sectionId}quickview(){document.querySelectorAll("quick-view-modal .quick-view__content").forEach(content=>{content!==this.querySelector(this.selector)&&(content.innerHTML="")});const drawerContent=this.querySelector(this.selector),sectionId=this.getProductQuickViewSectionId(),sectionUrl=`${this.dataset.productUrl.split("?")[0]}?section_id=${sectionId}`;fetch(sectionUrl).then(response=>response.text()).then(responseText=>{const productElement=new DOMParser().parseFromString(responseText,"text/html").querySelector(this.selector);this.setInnerHTML(drawerContent,productElement.innerHTML),FoxTheme.a11y.trapFocus(this,this.focusElement),window.Shopify&&Shopify.PaymentButton&&Shopify.PaymentButton.init(),document.dispatchEvent(new CustomEvent("quick-view:loaded",{detail:{productUrl:this.dataset.productUrl}}))}).catch(e=>{console.error(e)})}setInnerHTML(element,innerHTML){element.querySelectorAll("variant-selects").forEach(vs=>vs.remove()),element.innerHTML=innerHTML,element.querySelectorAll("script").forEach(oldScriptTag=>{const newScriptTag=document.createElement("script");Array.from(oldScriptTag.attributes).forEach(attribute=>{newScriptTag.setAttribute(attribute.name,attribute.value)}),newScriptTag.appendChild(document.createTextNode(oldScriptTag.innerHTML)),oldScriptTag.parentNode.replaceChild(newScriptTag,oldScriptTag)}),this.classList.remove(this.classesToRemoveOnLoad)}setInnerHTML(element,innerHTML){element.innerHTML=innerHTML,element.querySelectorAll("script").forEach(oldScriptTag=>{const newScriptTag=document.createElement("script");Array.from(oldScriptTag.attributes).forEach(attribute=>{newScriptTag.setAttribute(attribute.name,attribute.value)}),newScriptTag.appendChild(document.createTextNode(oldScriptTag.innerHTML)),oldScriptTag.parentNode.replaceChild(newScriptTag,oldScriptTag)}),this.classList.remove(this.classesToRemoveOnLoad)}});
2//# sourceMappingURL=/cdn/shop/t/12/assets/quick-view.js.map?v=70568368836207601381789996020

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.