PageSourceSearch

https://therollingstonesshop.com/cdn/shop/t/168/assets/add-all.bundle.js?v=171953008872327254871789404571

js therollingstonesshop.com collected 2026-10-02 04:51:35 UTC 2,837 bytes, 1 lines download raw bytes

1(self.webpackChunkgcom_rhythm=self.webpackChunkgcom_rhythm||[]).push([[474],{4195(t,e,i){"use strict";i(5439)},5439(){customElements.get("add-all")||customElements.define("add-all",class extends HTMLElement{connectedCallback(){this.form=this.querySelector("form"),this.form.addEventListener("submit",this.onSubmitHandler.bind(this)),this.cartUI=document.querySelector("cart-notification")||document.querySelector("cart-drawer")||document.querySelector("cart-items"),this.purchase_limit_error=this.querySelector(".add-all-form__error-message"),this.numberProducts=this.getAttribute("data-products-count")}async onSubmitHandler(t){t.preventDefault();const e=this.querySelector('[type="submit"]'),i=e.querySelector(".buybutton_label"),r=e.querySelector(".icon--activity-spinning");if(e.classList.contains("loading"))return;e.setAttribute("aria-disabled",!0),e.classList.add("loading"),i.classList.add("opacity-0"),r.classList.remove("hidden");const s={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/javascript"}};s.headers["X-Requested-With"]="XMLHttpRequest",delete s.headers["Content-Type"];const n=new FormData(this.form);null!==this.quantitySpinner&&null!==this.cartUI&&void 0!==this.quantitySpinner&&void 0!==this.cartUI?n.append("sections",this.cartUI.getSectionsToRender().map(t=>t.id).concat(this.quantitySpinner.getSectionsToRender().map(t=>t.id))):null!==this.quantitySelector&&null!==this.cartUI&&void 0!==this.quantitySelector&&void 0!==this.cartUI?n.append("sections",this.cartUI.getSectionsToRender().map(t=>t.id).concat(this.quantitySelector.getSectionsToRender().map(t=>t.id))):n.append("sections",this.cartUI?this.cartUI.getSectionsToRender().map(t=>t.id):[]),n.append("sections_url",window.location.pathname),this.has_cart_error=!1,s.body=n,fetch(`${routes.cart_add_url}`,s).then(t=>t.json()).then(t=>{if(422===t.status){this.has_cart_error=!0;let i=[];try{i=JSON.parse(t.description)}catch(e){i.push(t.description)}let r="";for(let t=0;t<i.length;t++){const e=i[t].error?i[t].error:i[t];r=""===r?e:r+"<br>"+e}this.purchase_limit_error.innerHTML=r,this.purchase_limit_error.closest(".
1notification").removeAttribute("hidden"),e.classList.add("hidden")}else{null!==this.cartUI&&void 0!==this.cartUI&&this.cartUI.renderContents(t,!0,!0),null!==this.quantitySpinner&&void 0!==this.quantitySpinner?this.quantitySpinner.renderContent(t):null!==this.quantitySelector&&void 0!==this.quantitySelector&&this.quantitySelector.renderContent(t);const e=this.form.getAttribute("section-add-all-form");document.querySelectorAll(`[section-add-all-form="${e}"]`).forEach(t=>{t.classList.add("hidden")})}}).catch(t=>{}).finally(()=>{this.has_cart_error||(e.classList.remove("loading"),e.removeAttribute("disabled"),i.classList.remove("opacity-0"),r.classList.add("hidden"))})}})}},t=>{var e;e=4195,t(t.s=e)}]);

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.