`
}()}
${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":"e830790a-6be5-456c-8e7e-7899065a21a8","product_id":"99e25eda-6163-48a7-ac1c-f91d3fcc8882","title":"01#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)","weight_unit":"kg","inventory_quantity":98736,"sku":"741085469023_01#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)","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":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6c44da0e004b493e5fd305d2a647cb73.jpeg","path":"6c44da0e004b493e5fd305d2a647cb73.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":0.35,"min_quantity":1}],"weight":"0.03","compare_at_price":"0","price":"0.35","retail_price":"0","available":true,"url":"\/products\/mlsmile-exclusive-for-cross-border-3-colors-mascara-eyelash-base-not-smudge-natural-long-curling-eyelash-shaping-fluid?variant=e830790a-6be5-456c-8e7e-7899065a21a8","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)"}],"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 `