${function() {
if (data === undefined || typeof data !== 'string' || data == '') return '';
const searchEmpty = ("Your search for \"{test}\" did not yield any results.").replace('{test}', data);
return `
${(function() {
try {
var products = (data.products || []).filter(p => p.has_only_default_variant);
var counts = products.length;
if (counts === 0) return `Sorry, there are no products in this collection.`;
return `
${products.map(item => {
var img = item.image || {};
var variant = item.variants && item.variants[0] || {};
var variant_title = variant.title;
var variant_price = variant.price;
var varant_id = variant.id;
return `