`
}()}
${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":"140d10d8-7db5-4437-8d43-9e1eb1f59d2d","product_id":"f8843f1f-7668-45ea-8ba7-d599f9749133","title":"02#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)-1.3g","weight_unit":"kg","inventory_quantity":9814,"sku":"744604893968_02#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, Purchase Is Equivalent to the Default Company Disclaimer)_1.3G","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":"1.3g","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e81b75f201ab3a8d5b9d4560ff941afe.jpeg","path":"e81b75f201ab3a8d5b9d4560ff941afe.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":0.49,"min_quantity":1}],"weight":"0.02","compare_at_price":"0","price":"0.49","retail_price":"0","available":true,"url":"\/products\/mlsmile-exclusive-for-cross-border-eight-colors-thin-and-glittering-eye-shadow-stick-waterproof-not-smudge-with-penknife-eye-shadow-pen-eyeliner?variant=140d10d8-7db5-4437-8d43-9e1eb1f59d2d","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)"},{"name":"Size","value":"1.3g"}],"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 `