PageSourceSearch

https://prya.co.uk/cdn/shop/t/1413/assets/line-item.js?v=64816253942375555941779441289

js prya.co.uk collected 2026-10-04 00:03:18 UTC 1,660 bytes, 2 lines download raw bytes

1customElements.get("line-item")||customElements.define("line-item",class extends HTMLElement{connectedCallback(){this.setNodeSelectors(),this.setEventListeners()}setNodeSelectors(){this.nodeSelectors={quantity:this.querySelector('[js-line-item="quantity"]'),remove:this.querySelector('[js-line-item="remove"]')}}setEventListeners(){this.nodeSelectors.quantity&&this.nodeSelectors.quantity.addEventListener("change",event=>{this.updateItem({quantity:Number(event.target.value)})}),this.nodeSelectors.remove&&this.nodeSelectors.remove.addEventListener("click",event=>{event.preventDefault(),this.updateItem({quantity:0})})}async updateItem({quantity}){const addOnItems=[];if(typeof quantity>"u")return;this.hasAttribute("data-custom-key")&&(await fetch(`${theme.routes.cart_url}.js`).then(response=>response.json())).items.forEach(item=>{item.properties._add_on_parent&&item.properties._add_on_parent===this.dataset.customKey&&addOnItems.push(item)});function prevent(event){event.preventDefault()}this.classList.add("is-loading"),this.addEventListener("mousedown",prevent),await fetch(theme.routes.cart_update_url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({updates:{[this.dataset.key]:quantity,...addOnItems.reduce((updates,current)=>(updates[current.key]=Number(this.nodeSelectors.quantity.value),updates),{})}})}).catch(()=>{this.classList.remove("is-loading")}),this.hasAttribute("data-remove-loading")&&(this.classList.remove("is-loading"),this.removeEventListener("mousedown",prevent)),theme.eventBus.emit("cart:update")}});
2//# sourceMappingURL=/cdn/shop/t/1413/assets/line-item.js.map?v=64816253942375555941779441289

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.