`
}()}
${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":"f0871813-3b62-46ac-93c6-1bd0741f1cae","product_id":"3b78c3c4-8ebf-4a46-802f-31b20a0ae05b","title":"English Style 01# Black (Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)","weight_unit":"kg","inventory_quantity":998166,"sku":"732704512264_english Style 01# Black (Products Are Only for Export Sales, Domestic Sales Are Prohibited, Purchase Is Equivalent to the Default Company Disclaimer)","barcode":"","position":1,"option1":"English Style 01# Black (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\/9c02bf04b989dcba8d735b0e1529ca7d.jpeg","path":"9c02bf04b989dcba8d735b0e1529ca7d.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":0.77,"min_quantity":1}],"weight":"0.02","compare_at_price":"0","price":"0.77","retail_price":"0","available":true,"url":"\/products\/exclusive-for-cross-border-hairline-contour-stick-nose-shadow-sculpting-contour-powder-hair-replacement-hairline-powder-eyebrow-powder-hairline-headline-powder?variant=f0871813-3b62-46ac-93c6-1bd0741f1cae","available_quantity":999999999,"options":[{"name":"Color","value":"English Style 01# Black (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 `