PageSourceSearch

https://theanimalrescuesite.com/cdn/shop/t/57/assets/cusa-guardian…?v=132335666405860395751750709474

js theanimalrescuesite.com collected 2026-09-24 17:19:04 UTC 2,188 bytes, 2 lines download raw bytes

1if(!window.CusaGuardiansQuickAdd){class CusaGuardiansQuickAdd extends HTMLElement{constructor(){super(),this.variantId=this.dataset.variantId,this.variantTitle=this.dataset.variantTitle,this.sellingPlanId=this.dataset.sellingPlanId,this.checkbox=this.querySelector("#guardians-quick-add-checkbox")}connectedCallback(){if(console.group("Guardians Quick-Add Widget"),console.log(">>> this.variantId = ",this.variantId),console.log(">>> this.variantTitle = ",this.variantTitle),console.log(">>> this.sellingPlanId = ",this.sellingPlanId),console.groupEnd(),subscribe(PUB_SUB_EVENTS.cartUpdate,e=>{console.log(e),this.checkbox?.checked&&e.complete&&requestAnimationFrame(()=>{this.checkbox.checked=!1,this.classList.add("hidden")})}),this.checkbox){if(this.productForm=document.querySelector("product-form")?.querySelector("form"),!this.productForm)return;this.inputConfigs=[["items[1][id]",this.variantId],["items[1][quantity]","1"],["items[1][selling_plan]",this.sellingPlanId],["items[1][properties][_Guardians-quick-add]",document.querySelector("[data-guardians-quick-add-widget-page-content-handle]")?.dataset.guardiansQuickAddWidgetPageContentHandle||""],["items[1][properties][_product-template]",document.querySelector("[data-guardians-quick-add-widget-page-content-handle]")?.dataset.productTemplate||""]],this.productForm.addEventListener("submit",()=>{this.removeHiddenInputs(),this.checkbox.checked&&this.createHiddenInputs()}),this.checkbox.addEventListener("change",()=>{this.checkbox.checked||this.removeHiddenInputs()})}}disconnectedCallback(){}createHiddenInputs(){this.inputConfigs.forEach(([name,value])=>{const input=document.createElement("input");input.type="hidden",input.name=name,input.value=value,this.productForm.appendChild(input)})}removeHiddenInputs(){this.inputConfigs.forEach(([name])=>{const input=this.productForm.querySelector(`input[name="${name}"]`);input&&input.remove()})}}window.CusaGuardiansQuickAdd=CusaGuardiansQuickAdd,customElements.get("cusa-guardians-quick-add")||customElements.define("cusa-guardians-quick-add",CusaGuardiansQuickAdd)}
2//# sourceMappingURL=/cdn/shop/t/57/assets/cusa-guardians-quick-add.js.map?v=132335666405860395751750709474

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.