PageSourceSearch

https://www.herdy.com/cdn/shop/t/85/assets/quantity-selector.js?v=108001814289740243131779789130

js herdy.com collected 2026-10-09 17:56:12 UTC 1,945 bytes, 2 lines download raw bytes

1window.Eurus.loadedScript.has("quantity-selector.js")||(window.Eurus.loadedScript.add("quantity-selector.js"),requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.data("xQuantitySelector",(productId,sectionId,qtyRuleMin,qtyRuleMax,isQtyRule,currencyCodeEnable,moneyWithCurrency,moneyFormat)=>({qty:qtyRuleMin,min:qtyRuleMin,max:qtyRuleMax,initQtyChangeEvent(selector){this.$nextTick(()=>{this.qty=document.getElementById(selector)?.value,document.addEventListener(`eurus:product:quantity-changed-${sectionId}`,e=>{this.qty=e.detail.quantity})})},minus(value){this.qty<=this.min?this.qty=this.min:(this.qty=parseInt(this.qty),this.qty==1?this.qty=1:this.qty-=value),this.updatePrice()},plus(value){this.qty>=this.max&&isQtyRule?this.qty=parseInt(this.max):(this.qty=parseInt(this.qty),this.qty+=value),this.updatePrice()},invalid(el){number=parseFloat(el.value),(!Number.isInteger(number)||number<this.min)&&(this.qty=this.min),number>this.max&&isQtyRule&&(this.qty=parseInt(this.max)),this.updatePrice()},updatePrice(){const product_template=document.getElementById(`x-product-template-${productId}-${sectionId}`),money_format=currencyCodeEnable?moneyWithCurrency:moneyFormat,getPrice=selector=>Number(product_template.querySelector(selector).innerHTML)*this.qty,update=(selector,value)=>{const el=product_template.querySelector(selector);el&&(el.innerHTML=value)};let product_price=Alpine.store("xHelper").formatMoney(getPrice(".target-price"),money_format),product_compare_at_price=Alpine.store("xHelper").formatMoney(getPrice(".target-compare-at-price"),money_format);update(".add_to_cart_button .main-product-price .price",product_price),update(".add_to_cart_button .main-product-price .price-sale",product_price),update(".add_to_cart_button .main-product-price .price-compare",product_compare_at_price)}}))})}));
2//# sourceMappingURL=/cdn/shop/t/85/assets/quantity-selector.js.map?v=108001814289740243131779789130

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.