1import CartForm from '@archetype-themes/modules/cart-form' 2import { EVENTS } from '@archetype-themes/utils/events' 3 4if (document.body.classList.contains('template-cart')) { 5 var cartPageForm = document.getElementById('CartPageForm') 6 if (cartPageForm) { 7 var cartForm = new CartForm(cartPageForm) 8 9 document.addEventListener(EVENTS.ajaxProductAdded, () => cartForm.buildCart()) 10 } 11}
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.