`
}()}
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"27e2f051-23e0-4c9a-bd79-872da8d91b9f","product_id":"7e6ac7d5-bd0d-48b9-bfb3-b00ed76921fc","title":"02#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)","weight_unit":"kg","inventory_quantity":99324,"sku":"818167020254_02#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, Purchase Is Equivalent to the Default Company Disclaimer)","barcode":"","position":2,"option1":"02#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ce6cb5f1b16efeb0aaa485ee4c62c079.jpeg","path":"ce6cb5f1b16efeb0aaa485ee4c62c079.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":0.59,"min_quantity":1}],"weight":"0.02","compare_at_price":"0","price":"0.59","retail_price":"0","available":true,"url":"\/products\/mlsmile-exclusive-for-cross-border-color-mascara-pearlescent-thin-and-glittering-waterproof-not-smudge-christmas-cos-spiral-mascara-brush?variant=27e2f051-23e0-4c9a-bd79-872da8d91b9f","available_quantity":999999999,"options":[{"name":"Color","value":"02#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `