1import {generateProductModal} from './modules/product/generate-product-modal.js?v=36'; 2import {fetchProductModal} from './modules/product/fetch-product-modal.js?v=36'; 3import {initPopovers} from "./modules/utilities.js?v=36"; 4 5 6jQuery(document).ready(function ($) { 7 const linksModalToggle = document.querySelectorAll('.link-modal-toggle'); 8 9 if (!linksModalToggle || linksModalToggle.length === 0) { 10 return; 11 } 12 13 linksModalToggle.forEach((item) => { 14 item.addEventListener('click', async (event) => { 15 event.preventDefault(); 16 const id = item.getAttribute('href'); 17 18 // Get data from id 19 const offer = await fetchProductModal(id); 20 21 // Generate modal 22 generateProductModal(offer); 23 initPopovers(); 24 }); 25 }); 26});
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.