PageSourceSearch

https://jennylemons.com/cdn/shop/t/140/assets/product-quick-buy.js?v=5685359552054432331790806675

js jennylemons.com collected 2026-10-02 17:09:39 UTC 2,704 bytes, 2 lines download raw bytes

1window.ThemeSection_ProductQuickBuy=({product,variant,featuredMediaID})=>({productRoot:null,product,current_variant:variant,featured_media_id:featuredMediaID,current_media_id:featuredMediaID,loading:!1,quantity:"1",options:[],optionHandles:[],addedToCart:!1,get currentVariantId(){return this.current_variant?this.current_variant.id:null},get currentVariantAvailable(){return this.current_variant?this.current_variant.available:null},get current_price(){return this.current_variant.price},formatMoney(price){return formatMoney(price,theme.moneyFormat)},init(){this.productRoot=this.$root,this.$refs.productForm&&this.$refs.productForm.addEventListener("submit",this.submitForm.bind(this)),this.getOptions()},mainSelectorChange(){const matchedVariant=ShopifyProduct.getVariantFromId(this.product,parseInt(this.$refs.singleVariantSelector.value));this.updateVariant(matchedVariant)},optionChange(){this.getOptions();const matchedVariant=ShopifyProduct.getVariantFromOptionArray(this.product,this.options);this.updateVariant(matchedVariant)},updateVariant(variant2){this.current_variant=variant2,this.current_variant&&this.current_variant.featured_media&&(this.current_media_id=this.current_variant.featured_media.id)},getOptions(){this.options=[],this.optionHandles=[],this.$root.querySelectorAll("[data-single-option-selector]").forEach(selector=>{if(selector.nodeName==="SELECT"){const value=selector.value;this.options.push(value),this.optionHandles.push(selector.options[selector.selectedIndex].dataset.handle)}else if(selector.checked){const value=selector.value;this.options.push(value),this.optionHandles.push(selector.dataset.handle)}})},submitForm(evt){evt.preventDefault(),this.loading=!0,liveRegion(window.theme.strings.loading);const formData=new FormData(this.$root.querySelector(".quick-buy-product-form"));let modalCart=theme.settings.cart_type==="modal";const config=fetchConfigDefaults("javascript");modalCart&&(formData.append("sections","cart-items,cart-footer,cart-item-count"),formData.append("sections_url",window.location.pathname)),config.body=formData,config.headers["X-Requested-With"]="XMLHttpRequest",delete config.headers["Content-Type"],fetch(`${theme.routes.cart_add_url}`,config).then(res=>res.json()).then(data=>{this.loading=!1,this.addedToCart=!0,modalCart&&document.body.dispatchEvent(new CustomEvent("shapes:modalcart:afteradditem",{bubbles:!0,detail:{response:data}})),document.querySelector('[data-show-on-add="true"]')||this.$refs.added&&this.$nextTick(()=>this.$refs.added.focus())}).catch(error=>{error.json().then(a=>{this.loading=!1,alert(a.description)})})}});
2//# sourceMappingURL=/cdn/shop/t/140/assets/product-quick-buy.js.map?v=5685359552054432331790806675

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.