1import { createViewEventElement } from '@shopify/events'; 2import { Component } from '@theme/component'; 3 4export const ProductComponent = createViewEventElement(Component, { 5 defaultTrigger: 'intersect', 6}); 7 8if (!customElements.get('product-component')) { 9 customElements.define('product-component', ProductComponent); 10} 11 12export const CollectionComponent = createViewEventElement(Component); 13 14if (!customElements.get('collection-component')) { 15 customElements.define('collection-component', CollectionComponent); 16}
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.