`
}()}
${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":"ed3c3985-b85c-40c0-bf6e-c53784dd7926","product_id":"3a0c4d12-0156-4ed8-84fa-a81bdff7d911","title":"03#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)","weight_unit":"kg","inventory_quantity":953625,"sku":"744606909325_03#(Products Are Only for Export Sales, Domestic Sales Are Prohibited, Purchase Is Equivalent to the Default Company Disclaimer)","barcode":"","position":3,"option1":"03#(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\/ff0ca81c61afbe9e4d3c5c1999ac17d5.jpeg","path":"ff0ca81c61afbe9e4d3c5c1999ac17d5.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":0.44,"min_quantity":1}],"weight":"0.03","compare_at_price":"0","price":"0.44","retail_price":"0","available":true,"url":"\/products\/mlsmile-exclusive-for-cross-border-tear-and-pull-eyebrow-gel-long-lasting-non-smudge-waterproof-sweat-proof-easy-to-color-three-color-dyeing-eyebrow-gel?variant=ed3c3985-b85c-40c0-bf6e-c53784dd7926","available_quantity":999999999,"options":[{"name":"Color","value":"03#(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 `