`
}()}
${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":"70a3f45a-8c6d-4f5b-94f8-28b8a45771ac","product_id":"f8843f1f-7668-45ea-8ba7-d599f9749133","title":"01#(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":9630,"sku":"744604893968_01#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, Purchase Is Equivalent to the Default Company Disclaimer)_1.3G","barcode":"","position":1,"option1":"01#(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\/6bde6fc2a397c590026c9244d5697628.jpeg","path":"6bde6fc2a397c590026c9244d5697628.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=70a3f45a-8c6d-4f5b-94f8-28b8a45771ac","available_quantity":999999999,"options":[{"name":"Color","value":"01#(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 `