${function() {
const defaultSelectedVariant = data.variants.find(v => v.available) || data.variants[0];
const defaultIndex = !!defaultSelectedVariant ? data.images.findIndex(img => img.src == (defaultSelectedVariant.image && defaultSelectedVariant.image.src)) : -1;
const initialSlide = defaultIndex == -1 ? 0 : defaultIndex;
const attrs = data.images.length > 1 ? 'slide controls' : '';
return `
`;
}()}