`
}()}
${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":"b5368325-3072-4d71-ab73-04254cd3050d","product_id":"ba609696-43a7-4ee7-9ced-baf850ae4fda","title":"Suit A (Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)","weight_unit":"kg","inventory_quantity":93439,"sku":"779860602995_suit a (Products Are Only for Export Sales, Domestic Sales Are Prohibited, and Purchase Is Equivalent to the Default Company Disclaimer)","barcode":"","position":1,"option1":"Suit A (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\/3e9e892f8e91d7c7da893ab5a2874a59.jpeg","path":"3e9e892f8e91d7c7da893ab5a2874a59.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=b5368325-3072-4d71-ab73-04254cd3050d","available_quantity":999999999,"options":[{"name":"Color","value":"Suit A (Products Are Only for Export Sales, 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 `