${function() {
let variantImageShowed = false;
const currentProduct = data.product;
return (currentProduct.options || []).map((option, index) => {
const optionName = option.name || '';
const position = `option${index + 1}`;
let isThumbImage = false;
if (currentProduct.need_variant_image && !variantImageShowed) {
const variantNames = ["color","\u039c\u03ad\u03b3\u03b5\u03b8\u03bf\u03c2","\u03c7\u03c1\u03ce\u03bc\u03b1","\u03c4\u03cd\u03c0\u03bf\u03c2","Color#1","\u03a7\u03c1\u03ce\u03bc\u03b1"] || [];
for (let i = 0, len = variantNames.length; i < len; i++) {
const name = variantNames[i].toLowerCase();
if (name === optionName.toLowerCase()) {
isThumbImage = true;
variantImageShowed = true;
}
}
}
const variantType = "button";
const thumbStyle = "image_with_text";
return `