`
}()}
${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":"882bbe50-d5d9-4061-97a8-92a29abe969f","product_id":"ba609696-43a7-4ee7-9ced-baf850ae4fda","title":"Suit B (Products Are for Export Sales Only, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)","weight_unit":"kg","inventory_quantity":97243,"sku":"779860602995_suit B (Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)","barcode":"","position":2,"option1":"Suit B (Products Are for Export Sales Only, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cf435e9cf87330b1e20e7a3b05883aec.jpeg","path":"cf435e9cf87330b1e20e7a3b05883aec.jpeg","width":1600,"height":1600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":3.93,"min_quantity":1}],"weight":"0.05","compare_at_price":"9.27","price":"3.93","retail_price":"9.27","available":true,"url":"\/products\/mlsmile-cross-border-special-for-pressing-lipstick-solid-lip-gloss-moisturizing-lipstick-pearlescent-mirror-lip-oil-3-pack?variant=882bbe50-d5d9-4061-97a8-92a29abe969f","available_quantity":999999999,"options":[{"name":"Color","value":"Suit B (Products Are for Export Sales Only, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)"}],"off_ratio":58,"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 `