PageSourceSearch

https://jaybe.com/cdn/shop/t/10/assets/quick-add.js?v=48795084114788795151780062824

js jaybe.com collected 2026-10-05 05:46:30 UTC 5,036 bytes, 14 lines download raw bytes

1function quickAddSliderInit_G(){const dir=document.querySelector("html").getAttribute("dir");let nextEl=".swiper-btn--next",prevEl=".swiper-btn--prev";dir==="rtl"&&([nextEl,prevEl]=[prevEl,nextEl]);var slider=new Swiper(".quick-add-modal .js-media-list",{slidesPerView:1,autoHeight:!0,navigation:{nextEl,prevEl},pagination:{el:".quick-add-modal .swiper-pagination",clickable:"true",type:"bullets",renderBullet:function(activeIndex,className){return'<span class="'+className+'"><em>'+activeIndex+"</em><i></i><b></b></span>"}},on:{slideChange:function(){window.pauseAllMedia()}}})}customElements.get("quick-add-modal")||customElements.define("quick-add-modal",class extends ModalDialog{constructor(){super(),this.modalContent=this.querySelector('[id^="QuickAddInfo-"]')}hide(preventFocus=!1){const cartDrawer=document.querySelector("cart-drawer");cartDrawer&&cartDrawer.setActiveElement(this.openedBy),this.modalContent.innerHTML="",preventFocus&&(this.openedBy=null),super.hide()}show(opener){opener.setAttribute("aria-disabled",!0),opener.classList.add("loading"),opener.querySelector(".loading-overlay__spinner")&&opener.querySelector(".loading-overlay__spinner").classList.remove("hidden"),fetch(opener.getAttribute("data-product-url")).then(response=>response.text()).then(responseText=>{const responseHTML=new DOMParser().parseFromString(responseText,"text/html");this.productElement=responseHTML.querySelector('section[id^="MainProduct-"]'),this.preventDuplicatedIDs(),this.removeDOMElements(),this.setInnerHTML(this.modalContent,this.productElement.innerHTML,opener),window.Shopify&&Shopify.PaymentButton&&Shopify.PaymentButton.init(),window.ProductModel&&window.ProductModel.loadShopifyXR(),this.removeGalleryListSemantic(),this.updateImageSizes(),this.preventVariantURLSwitching(),super.show(opener)}).finally(()=>{opener.removeAttribute("aria-disabled"),opener.classList.remove("loading"),opener.querySelector(".loading-overlay__spinner")&&opener.querySelector(".loading-overlay__spinner").classList.add("hidden"),quickAddSliderInit_G()})}setInnerHTML(element,html,opener){element.innerHTML=html,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)});const moreBtn=document.createElement("a");moreBtn.textContent=`${theme.quickviewMore}`,moreBtn.setAttribute("href",opener.getAttribute("data-product-url")),moreBtn.setAttribute("class","product__read-more button button--simple"),moreBtn.innerHTML+=`<span class="button-icon">
2					<svg
3						class="icon icon-button-arrow"
4						width="14"
5						height="12"
6						viewBox="0 0 14 12"
7						fill="none"
8						xmlns="http://www.w3.org/2000/svg"
9					>
10						<path d="M7.97218 1L12.8333 6M12.8333 6L7.97218 11M12.8333 6L1.16663 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
11					</svg>
12
13					</span>`,element.querySelector(".product__info-container").appendChild(moreBtn)}removeDOMElements(){const pickupAvailability=this.productElement.querySelector("pickup-availability");pickupAvailability&&pickupAvailability.remove();const productModal=this.productElement.querySelector("product-modal");productModal&&productModal.remove();const gift=this.productElement.querySelector(".customer");gift&&gift.remove()}preventDuplicatedIDs(){const sectionId=this.productElement.dataset.section;this.productElement.innerHTML=this.productElement.innerHTML.replaceAll(sectionId,`quickadd-${sectionId}`),this.productElement.querySelectorAll("variant-selects, variant-radios").forEach(variantSelect=>{variantSelect.dataset.originalSection=sectionId})}preventVariantURLSwitching(){this.modalContent.querySelector("variant-radios,variant-selects")&&this.modalContent.querySelector("variant-radios,variant-selects").setAttribute("data-update-url","false")}removeGalleryListSemantic(){const galleryList=this.modalContent.querySelector('[id^="Slider-Gallery"]');galleryList&&(galleryList.setAttribute("role","presentation"),galleryList.querySelectorAll('[id^="Slide-"]').forEach(li=>li.setAttribute("role","presentation")))}updateImageSizes(){const product=this.modalContent.querySelector(".product");
13if(!product.classList.contains("product--columns"))return;const mediaImages=product.querySelectorAll(".product__media img");if(!mediaImages.length)return;let mediaImageSizes="(min-width: 1000px) 715px, (min-width: 750px) calc((100vw - 11.5rem) / 2), calc(100vw - 4rem)";product.classList.contains("product--medium")?mediaImageSizes=mediaImageSizes.replace("715px","605px"):product.classList.contains("product--small")&&(mediaImageSizes=mediaImageSizes.replace("715px","495px")),mediaImages.forEach(img=>img.setAttribute("sizes",mediaImageSizes))}});
14//# sourceMappingURL=/cdn/shop/t/10/assets/quick-add.js.map?v=48795084114788795151780062824

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.