${function() {
const options = data?.product?.options || [];
const optLen = options.length;
const selectedValues = Object.values(data?.selectedValues || {}) || [];
const available = data?.variant?.available || true;
const suffixId = Math.floor(Math.random() * 1000000);
return `
${options.map((opt,index)=>{
return `
${opt.values.map((val)=>{
const selected = data.selectedValues[opt.name][0] === val ? 'selected' : '';
return `
${val}
`
}).join("")}
${selectedValues[index][0]}
`
}).join("")}
`;
}()}