`
}()}
${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":"bf8e2a7b-0405-4dfe-8785-ecc58c94e89a","product_id":"7027034b-10e7-4f5b-b3fa-8f0f5b6220e4","title":"11g (The product is not allowed to be sold domestically and is only for export. Purchasing it is equivalent to acknowledging the company's disclaimer)","weight_unit":"kg","inventory_quantity":999,"sku":"1858416953619009537","barcode":"","position":1,"option1":"11g (The product is not allowed to be sold domestically and is only for export. Purchasing it is equivalent to acknowledging the company's disclaimer)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a85e1c433c0321d35c5e0684671bb278.jpeg","path":"a85e1c433c0321d35c5e0684671bb278.jpeg","width":800,"height":800,"alt":"9119e7e22c2328963eef00d12222e97b","aspect_ratio":1},"wholesale_price":[{"price":17.98,"min_quantity":1}],"weight":"15","compare_at_price":"0","price":"17.98","retail_price":"0","available":true,"url":"\/products\/black-technology-strong-shaping-long-lasting-waterproof-eyebrow-liquid?variant=bf8e2a7b-0405-4dfe-8785-ecc58c94e89a","available_quantity":999999999,"options":[{"name":"Size","value":"11g (The product is not allowed to be sold domestically and is only for export. Purchasing it is equivalent to acknowledging the company's 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 `