`
}()}
${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":"8701355c-896d-473f-92f2-f986b4a12db3","product_id":"8932b964-07b7-4f8a-b1c0-b64608e44da3","title":"01#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)-2.5ml","weight_unit":"kg","inventory_quantity":997849,"sku":"734214985133_01#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, Purchase Is Equivalent to the Default Company Disclaimer)_2.5ml","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":"2.5ml","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/68024278a31e2bcbb0ce76c37e6d8d0c.jpeg","path":"68024278a31e2bcbb0ce76c37e6d8d0c.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":0.28,"min_quantity":1}],"weight":"0.01","compare_at_price":"0","price":"0.28","retail_price":"0","available":true,"url":"\/products\/mlsmile-cross-border-pearl-liquid-eyeliner-flash-color-sequin-eyeshadow-waterproof-not-smudge-eyeliner-wholesale?variant=8701355c-896d-473f-92f2-f986b4a12db3","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":"2.5ml"}],"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 `