`
}()}
${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":"85b79387-b940-4199-b7de-d451dde70094","product_id":"048dcef1-19ff-420b-a3ec-5a610f13c582","title":"01#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)-1.8ml","weight_unit":"kg","inventory_quantity":97788,"sku":"796846869796_01#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, Purchase Is Equivalent to the Default Company Disclaimer)_1.8Ml","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.8ml","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2b98d08413197e1da728df201b49ce1c.jpeg","path":"2b98d08413197e1da728df201b49ce1c.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-8-color-pearlescent-liquid-eye-shadow-soft-brush-diamond-highlight-liquid-eye-shadow-rotating-lip-gloss?variant=85b79387-b940-4199-b7de-d451dde70094","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.8ml"}],"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 `