`
}()}
${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":"79d743b1-0455-4189-83fe-9c36e9425d5c","product_id":"4cc6f5dd-7447-41f2-921e-8f442d1cc8d3","title":"Color-changing blush oil 8ml (the product is for export only domestic sales are prohibited. Buyers who choose this option to place an order are deemed to have read and agreed to the disclaimer on our details page)","weight_unit":"kg","inventory_quantity":999,"sku":"1886671873746481153","barcode":"","position":1,"option1":"Color-changing blush oil 8ml (the product is for export only domestic sales are prohibited. Buyers who choose this option to place an order are deemed to have read and agreed to the disclaimer on our details page)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/99430363771a28752e696e2120fe7110.jpeg","path":"99430363771a28752e696e2120fe7110.jpeg","width":1543,"height":1543,"alt":"602457cdd2a6a90c2c98d5157caca5da","aspect_ratio":1},"wholesale_price":[{"price":27.58,"min_quantity":1}],"weight":"40","compare_at_price":"0","price":"27.58","retail_price":"0","available":true,"url":"\/products\/far-more-liquid-than-cambia-color?variant=79d743b1-0455-4189-83fe-9c36e9425d5c","available_quantity":999999999,"options":[{"name":"Size","value":"Color-changing blush oil 8ml (the product is for export only domestic sales are prohibited. Buyers who choose this option to place an order are deemed to have read and agreed to the disclaimer on our details page)"}],"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 `