\n function funTagGTM_Garnier()\n {\n if(jQuery('#hdnGTM_Garnier').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-TX3ZS4');\n jQuery('#hdnGTM_Garnier').val(1);\n }\n }\n\n function funTagGTM_LP()\n {\n if(jQuery('#hdnGTM_LP').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-5HSSFS');\n jQuery('#hdnGTM_LP').val(1);\n }\n }\n\n function funTagGTM_MNY()\n {\n if(jQuery('#hdnGTM_MNY').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-52JDQS');\n jQuery('#hdnGTM_MNY').val(1);\n }\n }\n\n function ajaxLoadings() {\n var over = '
';\n over += 'Loading ....';\n over += '
';\n jQuery(over).appendTo('body');\n setTimeout(function(){\n window.location='/checkoutmobile' ;\n }, 1000);\n }\n\n function ajaxWishlist(action, id, parentId, type) {\n var url = jQuery('#' + parentId + ' a').attr('data-url');\n url = url.replace(\"wishlist/index\", \"advancedwishlist/index\");\n url += 'isAjax/1/';\n ajaxLoading();\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (data.error == 1) {\n lightbox(null, '/customer/account/signupformpopup', 1);\n } else {\n if (action == 'remove') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Removed from wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishremoved');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishremoved');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('added');\n jQuery('#' + parentId + ' a').addClass('add');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"add\", \"' + id + '\", \"' + parentId + '\");');\n }\n if (action == 'add') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Added to wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishadded');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishadded');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('add');\n jQuery('#' + parentId + ' a').addClass('added');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"remove\", \"' + id + '\", \"' + parentId + '\");');\n }\n jQuery('#' + parentId + ' a').attr('data-url', data.href);\n if (jQuery('.block-wishlist').length) {\n jQuery('.block-wishlist').replaceWith(data.sidebar);\n } else {\n if (jQuery('.col-right').length) {\n jQuery('.col-right').prepend(data.sidebar);\n }\n }\n if (type == 'customer') {\n ajaxRemoveWishlist(action, id, parentId);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n function showOptions(url, id, flag) {\n if (jQuery('#product_view_' + id).is(':hidden')) {\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product_view_' + id).show();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, null);\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n jQuery('#product-opt-' + id).prepend(data);\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n alert('AJAX Failure!');\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function setMobileLocationAjax(url, id,wishlist,trackparam,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\nbreak;\n}\n}\nurl = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\nvar qty = jQuery('.product_block_' + id + ' .qty').val();\nif (window.location.protocol !== 'http:') {\nurl = url.replace(\"http:\", \"https:\");\n}\najaxLoading();\ntry {\njQuery.ajax({\nurl: url,\ndataType: 'json',\nbeforeSend: function () {\npace.on();\n},\nsuccess: function (data) {\ncloseAjaxLoading();\nif(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\nif(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\nvar image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n}else{\nvar image_pro_src = jQuery('.product_cart_front_'+id).find('.product-image img').attr('src');\n}\nlightbox(null,'/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n}\nsetMobileAjaxData(data, id, false);\nsetGamoogaPixel(id,url,trackparam);\nif(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\nrediMessage(element);\n},\ncomplete: function () {\npace.off();\npace.init();\n}\n});\n} catch (e) {\n}\n}\n\n function setLocationAjax(url, id,trackparam,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n url += '?customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '?listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n setAjaxData(data, false, id);\n if (data.status == 'ERROR') {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n if(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(element).closest('.n_prod_block').find('.product-image img').attr('src');\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }else{\n jQuery('#product_view_alert_' + id + ' div').html(data.message);\n jQuery('#product_view_alert_' + id).show();\n jQuery('.tagoffer'+id).addClass('tag-offer-veg-hide');\n }\n } else {\n\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (trackparam.search(\"catg_people\") >= 0)){}\n else{\n if(window.location.href.indexOf('n=beautyservices') > -1){\n\n }else{\n jQuery('.listing-page-widget').hide(1000);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }\n\n }\n\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n setGamoogaPixel(id,url,trackparam);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n if((window.location.href.indexOf('n=beautyservices') > 0 || jQuery('#beautyservices_gc').val() == 1)&&(jQuery(window).width() > 480)){\n showCart();\n }\n }\n });\n } catch (e) {\n }\n }\n\n function setMobilebundleLocationAjax(url, id,button,wid,wishlist,element,trackparam) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n if(url.indexOf('?') < 0){ url += '?';}\n url += '&isAjax=1&check_param='+button+'&wid='+wid;\n\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(button==\"wishlist\"){\n window.location.href= '/checkoutmobile';\n }\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str1 = jQuery(\"#old-price-\"+id).html();\n if(str1 == \"\")\n {\n str = jQuery(\"#old-price-\"+id).val();\n ppriceid = str.replace(\"Rs. \", \"\");\n }else\n {\n str =str1;\n ppriceid = str;\n }\n\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(jQuery(\"body\").hasClass('catalog-product-view') ){\n recommendedWidgetOnClick();\n }\n setBundlePixel(id,url,button,ppriceid,trackparam);\n setMobileBundleAjaxData(data, id, false,button);\n if(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\n rediMessage(element);\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function setbundleLocationAjax(url, id,tparam,wid,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n var pincodesource = jQuery(\"#pincodesource\").val();\n if(url.indexOf('?') < 0){\n url += '?';\n }\n url += '&isAjax=1&check_param='+tparam+'&wid='+wid;\n if(pincodesource ==\"\" || pincodesource === undefined){\n }else{\n url +=\"&pincodesource=\"+pincodesource;\n }\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (tparam) {\n case 'prod_people also bought':\n url += '&customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '&listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '&recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '&cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(tparam==\"wishlist\"){\n ajaxRemoveWishlist('', '0', '');\n }\n if(data.message !=\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n setAjaxData(data, false, id);\n }else if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\n if(wishlist){\n var image_pro_src = jQuery(\"#product-opt-\"+id).find('.product-image img').attr('src');\n }else if(tparam==\"prod_customer+also+viewed\" || tparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.product-image img').attr('src');\n if(typeof image_pro_src === \"undefined\"){\n image_pro_src = jQuery(\".product-image img\").attr('src');\n }\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }\n if(data.status != 'ERROR'){\n\n\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (tparam.search(\"catg_people\") >= 0)){}\n else{\n jQuery('.listing-page-widget').hide(1500);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }else if(jQuery(\"body\").hasClass('catalog-product-view') ){\n if((jQuery(element).closest('li.widget-sliderbox').length == 0)&&(jQuery(element).closest('#cbar_widget01').length == 0)){\n console.log(\"recommendedWidgetOnClick\");\n recommendedWidgetOnClick();\n }else{\n console.log(\"Not recommendedWidgetOnClick\");\n }\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n console.log(\"---------\"+window.amo_tag_params['ut1']);\n console.log(\"---------\"+window.amo_tag_params['ut2']);\n console.log(\"---------\"+window.amo_tag_params['ut3']);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str = jQuery(\"#old-price-\"+id).html();\n if(typeof str != 'undefined'){\n ppriceid = str.replace(\"Rs. \", \"\");\n }\n }\n setBundlePixel(id,url,'',ppriceid,tparam);\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n } else {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function showMobileOptions(url, id, flag, obj) {\n var objId = jQuery(obj).parent().parent();\n if (jQuery(objId).find('#product_view_' + id).is(':hidden') && false) {\n\n jQuery(objId).find('img.discount-tag').hide();\n jQuery(objId).find('#product_view_' + id).show();\n jQuery(objId).find('.org_add').hide();\n jQuery(objId).find('.discount_offer_tag_label').hide();\n jQuery(objId).find('.nykaa-tags').hide();\n jQuery('.wishlist-id-' + id + '').hide();\n jQuery(objId).css({border: 'none'});\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n url += '?eq=mobile';\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, 2);\n jQuery('#lightbox').css('position', 'fixed');\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n lightbox(data, null, 2);\n jQuery('#lightbox #closelb').remove();\n jQuery('body #lightbox').css('width', '300px !important');\n jQuery('body #lightbox').css('height', '300px !important');\n jQuery('#lightbox').css('position', 'fixed');\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function getNotifyForm(id) {\n jQuery('#outofstockSubscriptionOnCategory .product_subscr_id').val(id);\n lightbox(jQuery('#outofstockSubscriptionOnCategory').html(), null, null);\n }\n\n function outofstockSubscriptionOnCategory() {\n var validate = validateSubscrEmail(jQuery('#lightbox #subscription_email').val());\n if (!validate) {\n return false;\n }\n var p_id = jQuery('#lightbox .product_subscr_id').val();\n ga('send','event','Notify Me',p_id,'Category Page');\n var url = '/ajaxaddcart/index/outofStockSubscription/';\n var req_data = 'subscription_email=' + jQuery('#lightbox #subscription_email').val();\n req_data += '&product=' + jQuery('#lightbox .product_subscr_id').val();\n req_data += '&isAjax=1';\n if (!jQuery('#lightbox .product_subscr_id').val()) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('Please Select Shade.');\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n return;\n }\n jQuery.ajax({\n type: 'POST',\n data: req_data,\n dataType: \"json\",\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n if (data.error) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n } else {\n try\n {\n _taq.events.push(['notifyme',{'product_id':data.product_id ,'email':data.email ,'device':\"desktop\" , 'product_name':data.product_name ,'Associated_categories':data.associated_categories, 'Associated_brand':data.associated_brand , 'MRP':data.mrp , 'selling_price':data.selling_price }]);\n }catch(err){}\n jQuery('#lightbox #subscription_email').val('');\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('success-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('successf-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n }\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n\n if(jQuery('body.luxury').length > 0){\n var star_off = jQuery(\"#star-off img\");\n star_off.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-off-luxury.svg');\n var star_on = jQuery(\"#star-on img\");\n star_on.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-off-luxury.svg');\n }else{\n var star_off = jQuery(\"#star-off img\");\n star_off.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-off.svg');\n var star_on = jQuery(\"#star-on img\");\n star_on.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-on.svg');\n }\n \n function funTagGTM_Garnier()\n {\n if(jQuery('#hdnGTM_Garnier').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-TX3ZS4');\n jQuery('#hdnGTM_Garnier').val(1);\n }\n }\n\n function funTagGTM_LP()\n {\n if(jQuery('#hdnGTM_LP').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-5HSSFS');\n jQuery('#hdnGTM_LP').val(1);\n }\n }\n\n function funTagGTM_MNY()\n {\n if(jQuery('#hdnGTM_MNY').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-52JDQS');\n jQuery('#hdnGTM_MNY').val(1);\n }\n }\n\n function ajaxLoadings() {\n var over = '
';\n over += 'Loading ....';\n over += '
';\n jQuery(over).appendTo('body');\n setTimeout(function(){\n window.location='/checkoutmobile' ;\n }, 1000);\n }\n\n function ajaxWishlist(action, id, parentId, type) {\n var url = jQuery('#' + parentId + ' a').attr('data-url');\n url = url.replace(\"wishlist/index\", \"advancedwishlist/index\");\n url += 'isAjax/1/';\n ajaxLoading();\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (data.error == 1) {\n lightbox(null, '/customer/account/signupformpopup', 1);\n } else {\n if (action == 'remove') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Removed from wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishremoved');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishremoved');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('added');\n jQuery('#' + parentId + ' a').addClass('add');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"add\", \"' + id + '\", \"' + parentId + '\");');\n }\n if (action == 'add') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Added to wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishadded');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishadded');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('add');\n jQuery('#' + parentId + ' a').addClass('added');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"remove\", \"' + id + '\", \"' + parentId + '\");');\n }\n jQuery('#' + parentId + ' a').attr('data-url', data.href);\n if (jQuery('.block-wishlist').length) {\n jQuery('.block-wishlist').replaceWith(data.sidebar);\n } else {\n if (jQuery('.col-right').length) {\n jQuery('.col-right').prepend(data.sidebar);\n }\n }\n if (type == 'customer') {\n ajaxRemoveWishlist(action, id, parentId);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n function showOptions(url, id, flag) {\n if (jQuery('#product_view_' + id).is(':hidden')) {\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product_view_' + id).show();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, null);\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n jQuery('#product-opt-' + id).prepend(data);\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n alert('AJAX Failure!');\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function setMobileLocationAjax(url, id,wishlist,trackparam,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\nbreak;\n}\n}\nurl = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\nvar qty = jQuery('.product_block_' + id + ' .qty').val();\nif (window.location.protocol !== 'http:') {\nurl = url.replace(\"http:\", \"https:\");\n}\najaxLoading();\ntry {\njQuery.ajax({\nurl: url,\ndataType: 'json',\nbeforeSend: function () {\npace.on();\n},\nsuccess: function (data) {\ncloseAjaxLoading();\nif(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\nif(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\nvar image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n}else{\nvar image_pro_src = jQuery('.product_cart_front_'+id).find('.product-image img').attr('src');\n}\nlightbox(null,'/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n}\nsetMobileAjaxData(data, id, false);\nsetGamoogaPixel(id,url,trackparam);\nif(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\nrediMessage(element);\n},\ncomplete: function () {\npace.off();\npace.init();\n}\n});\n} catch (e) {\n}\n}\n\n function setLocationAjax(url, id,trackparam,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n url += '?customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '?listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n setAjaxData(data, false, id);\n if (data.status == 'ERROR') {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n if(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(element).closest('.n_prod_block').find('.product-image img').attr('src');\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }else{\n jQuery('#product_view_alert_' + id + ' div').html(data.message);\n jQuery('#product_view_alert_' + id).show();\n jQuery('.tagoffer'+id).addClass('tag-offer-veg-hide');\n }\n } else {\n\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (trackparam.search(\"catg_people\") >= 0)){}\n else{\n if(window.location.href.indexOf('n=beautyservices') > -1){\n\n }else{\n jQuery('.listing-page-widget').hide(1000);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }\n\n }\n\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n setGamoogaPixel(id,url,trackparam);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n if((window.location.href.indexOf('n=beautyservices') > 0 || jQuery('#beautyservices_gc').val() == 1)&&(jQuery(window).width() > 480)){\n showCart();\n }\n }\n });\n } catch (e) {\n }\n }\n\n function setMobilebundleLocationAjax(url, id,button,wid,wishlist,element,trackparam) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n if(url.indexOf('?') < 0){ url += '?';}\n url += '&isAjax=1&check_param='+button+'&wid='+wid;\n\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(button==\"wishlist\"){\n window.location.href= '/checkoutmobile';\n }\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str1 = jQuery(\"#old-price-\"+id).html();\n if(str1 == \"\")\n {\n str = jQuery(\"#old-price-\"+id).val();\n ppriceid = str.replace(\"Rs. \", \"\");\n }else\n {\n str =str1;\n ppriceid = str;\n }\n\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(jQuery(\"body\").hasClass('catalog-product-view') ){\n recommendedWidgetOnClick();\n }\n setBundlePixel(id,url,button,ppriceid,trackparam);\n setMobileBundleAjaxData(data, id, false,button);\n if(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\n rediMessage(element);\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function setbundleLocationAjax(url, id,tparam,wid,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n var pincodesource = jQuery(\"#pincodesource\").val();\n if(url.indexOf('?') < 0){\n url += '?';\n }\n url += '&isAjax=1&check_param='+tparam+'&wid='+wid;\n if(pincodesource ==\"\" || pincodesource === undefined){\n }else{\n url +=\"&pincodesource=\"+pincodesource;\n }\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (tparam) {\n case 'prod_people also bought':\n url += '&customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '&listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '&recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '&cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(tparam==\"wishlist\"){\n ajaxRemoveWishlist('', '0', '');\n }\n if(data.message !=\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n setAjaxData(data, false, id);\n }else if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\n if(wishlist){\n var image_pro_src = jQuery(\"#product-opt-\"+id).find('.product-image img').attr('src');\n }else if(tparam==\"prod_customer+also+viewed\" || tparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.product-image img').attr('src');\n if(typeof image_pro_src === \"undefined\"){\n image_pro_src = jQuery(\".product-image img\").attr('src');\n }\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }\n if(data.status != 'ERROR'){\n\n\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (tparam.search(\"catg_people\") >= 0)){}\n else{\n jQuery('.listing-page-widget').hide(1500);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }else if(jQuery(\"body\").hasClass('catalog-product-view') ){\n if((jQuery(element).closest('li.widget-sliderbox').length == 0)&&(jQuery(element).closest('#cbar_widget01').length == 0)){\n console.log(\"recommendedWidgetOnClick\");\n recommendedWidgetOnClick();\n }else{\n console.log(\"Not recommendedWidgetOnClick\");\n }\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n console.log(\"---------\"+window.amo_tag_params['ut1']);\n console.log(\"---------\"+window.amo_tag_params['ut2']);\n console.log(\"---------\"+window.amo_tag_params['ut3']);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str = jQuery(\"#old-price-\"+id).html();\n if(typeof str != 'undefined'){\n ppriceid = str.replace(\"Rs. \", \"\");\n }\n }\n setBundlePixel(id,url,'',ppriceid,tparam);\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n } else {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function showMobileOptions(url, id, flag, obj) {\n var objId = jQuery(obj).parent().parent();\n if (jQuery(objId).find('#product_view_' + id).is(':hidden') && false) {\n\n jQuery(objId).find('img.discount-tag').hide();\n jQuery(objId).find('#product_view_' + id).show();\n jQuery(objId).find('.org_add').hide();\n jQuery(objId).find('.discount_offer_tag_label').hide();\n jQuery(objId).find('.nykaa-tags').hide();\n jQuery('.wishlist-id-' + id + '').hide();\n jQuery(objId).css({border: 'none'});\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n url += '?eq=mobile';\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, 2);\n jQuery('#lightbox').css('position', 'fixed');\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n lightbox(data, null, 2);\n jQuery('#lightbox #closelb').remove();\n jQuery('body #lightbox').css('width', '300px !important');\n jQuery('body #lightbox').css('height', '300px !important');\n jQuery('#lightbox').css('position', 'fixed');\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function getNotifyForm(id) {\n jQuery('#outofstockSubscriptionOnCategory .product_subscr_id').val(id);\n lightbox(jQuery('#outofstockSubscriptionOnCategory').html(), null, null);\n }\n\n function outofstockSubscriptionOnCategory() {\n var validate = validateSubscrEmail(jQuery('#lightbox #subscription_email').val());\n if (!validate) {\n return false;\n }\n var p_id = jQuery('#lightbox .product_subscr_id').val();\n ga('send','event','Notify Me',p_id,'Category Page');\n var url = '/ajaxaddcart/index/outofStockSubscription/';\n var req_data = 'subscription_email=' + jQuery('#lightbox #subscription_email').val();\n req_data += '&product=' + jQuery('#lightbox .product_subscr_id').val();\n req_data += '&isAjax=1';\n if (!jQuery('#lightbox .product_subscr_id').val()) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('Please Select Shade.');\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n return;\n }\n jQuery.ajax({\n type: 'POST',\n data: req_data,\n dataType: \"json\",\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n if (data.error) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n } else {\n try\n {\n _taq.events.push(['notifyme',{'product_id':data.product_id ,'email':data.email ,'device':\"desktop\" , 'product_name':data.product_name ,'Associated_categories':data.associated_categories, 'Associated_brand':data.associated_brand , 'MRP':data.mrp , 'selling_price':data.selling_price }]);\n }catch(err){}\n jQuery('#lightbox #subscription_email').val('');\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('success-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('successf-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n }\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n\n function funTagGTM_Garnier()\n {\n if(jQuery('#hdnGTM_Garnier').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-TX3ZS4');\n jQuery('#hdnGTM_Garnier').val(1);\n }\n }\n\n function funTagGTM_LP()\n {\n if(jQuery('#hdnGTM_LP').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-5HSSFS');\n jQuery('#hdnGTM_LP').val(1);\n }\n }\n\n function funTagGTM_MNY()\n {\n if(jQuery('#hdnGTM_MNY').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-52JDQS');\n jQuery('#hdnGTM_MNY').val(1);\n }\n }\n\n function ajaxLoadings() {\n var over = '
';\n over += 'Loading ....';\n over += '
';\n jQuery(over).appendTo('body');\n setTimeout(function(){\n window.location='/checkoutmobile' ;\n }, 1000);\n }\n\n function ajaxWishlist(action, id, parentId, type) {\n var url = jQuery('#' + parentId + ' a').attr('data-url');\n url = url.replace(\"wishlist/index\", \"advancedwishlist/index\");\n url += 'isAjax/1/';\n ajaxLoading();\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (data.error == 1) {\n lightbox(null, '/customer/account/signupformpopup', 1);\n } else {\n if (action == 'remove') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Removed from wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishremoved');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishremoved');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('added');\n jQuery('#' + parentId + ' a').addClass('add');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"add\", \"' + id + '\", \"' + parentId + '\");');\n }\n if (action == 'add') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Added to wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishadded');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishadded');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('add');\n jQuery('#' + parentId + ' a').addClass('added');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"remove\", \"' + id + '\", \"' + parentId + '\");');\n }\n jQuery('#' + parentId + ' a').attr('data-url', data.href);\n if (jQuery('.block-wishlist').length) {\n jQuery('.block-wishlist').replaceWith(data.sidebar);\n } else {\n if (jQuery('.col-right').length) {\n jQuery('.col-right').prepend(data.sidebar);\n }\n }\n if (type == 'customer') {\n ajaxRemoveWishlist(action, id, parentId);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n function showOptions(url, id, flag) {\n if (jQuery('#product_view_' + id).is(':hidden')) {\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product_view_' + id).show();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, null);\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n jQuery('#product-opt-' + id).prepend(data);\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n alert('AJAX Failure!');\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function setMobileLocationAjax(url, id,wishlist,trackparam,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\nbreak;\n}\n}\nurl = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\nvar qty = jQuery('.product_block_' + id + ' .qty').val();\nif (window.location.protocol !== 'http:') {\nurl = url.replace(\"http:\", \"https:\");\n}\najaxLoading();\ntry {\njQuery.ajax({\nurl: url,\ndataType: 'json',\nbeforeSend: function () {\npace.on();\n},\nsuccess: function (data) {\ncloseAjaxLoading();\nif(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\nif(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\nvar image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n}else{\nvar image_pro_src = jQuery('.product_cart_front_'+id).find('.product-image img').attr('src');\n}\nlightbox(null,'/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n}\nsetMobileAjaxData(data, id, false);\nsetGamoogaPixel(id,url,trackparam);\nif(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\nrediMessage(element);\n},\ncomplete: function () {\npace.off();\npace.init();\n}\n});\n} catch (e) {\n}\n}\n\n function setLocationAjax(url, id,trackparam,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n url += '?customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '?listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n setAjaxData(data, false, id);\n if (data.status == 'ERROR') {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n if(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(element).closest('.n_prod_block').find('.product-image img').attr('src');\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }else{\n jQuery('#product_view_alert_' + id + ' div').html(data.message);\n jQuery('#product_view_alert_' + id).show();\n jQuery('.tagoffer'+id).addClass('tag-offer-veg-hide');\n }\n } else {\n\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (trackparam.search(\"catg_people\") >= 0)){}\n else{\n if(window.location.href.indexOf('n=beautyservices') > -1){\n\n }else{\n jQuery('.listing-page-widget').hide(1000);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }\n\n }\n\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n setGamoogaPixel(id,url,trackparam);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n if((window.location.href.indexOf('n=beautyservices') > 0 || jQuery('#beautyservices_gc').val() == 1)&&(jQuery(window).width() > 480)){\n showCart();\n }\n }\n });\n } catch (e) {\n }\n }\n\n function setMobilebundleLocationAjax(url, id,button,wid,wishlist,element,trackparam) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n if(url.indexOf('?') < 0){ url += '?';}\n url += '&isAjax=1&check_param='+button+'&wid='+wid;\n\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(button==\"wishlist\"){\n window.location.href= '/checkoutmobile';\n }\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str1 = jQuery(\"#old-price-\"+id).html();\n if(str1 == \"\")\n {\n str = jQuery(\"#old-price-\"+id).val();\n ppriceid = str.replace(\"Rs. \", \"\");\n }else\n {\n str =str1;\n ppriceid = str;\n }\n\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(jQuery(\"body\").hasClass('catalog-product-view') ){\n recommendedWidgetOnClick();\n }\n setBundlePixel(id,url,button,ppriceid,trackparam);\n setMobileBundleAjaxData(data, id, false,button);\n if(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\n rediMessage(element);\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function setbundleLocationAjax(url, id,tparam,wid,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n var pincodesource = jQuery(\"#pincodesource\").val();\n if(url.indexOf('?') < 0){\n url += '?';\n }\n url += '&isAjax=1&check_param='+tparam+'&wid='+wid;\n if(pincodesource ==\"\" || pincodesource === undefined){\n }else{\n url +=\"&pincodesource=\"+pincodesource;\n }\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (tparam) {\n case 'prod_people also bought':\n url += '&customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '&listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '&recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '&cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(tparam==\"wishlist\"){\n ajaxRemoveWishlist('', '0', '');\n }\n if(data.message !=\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n setAjaxData(data, false, id);\n }else if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\n if(wishlist){\n var image_pro_src = jQuery(\"#product-opt-\"+id).find('.product-image img').attr('src');\n }else if(tparam==\"prod_customer+also+viewed\" || tparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.product-image img').attr('src');\n if(typeof image_pro_src === \"undefined\"){\n image_pro_src = jQuery(\".product-image img\").attr('src');\n }\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }\n if(data.status != 'ERROR'){\n\n\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (tparam.search(\"catg_people\") >= 0)){}\n else{\n jQuery('.listing-page-widget').hide(1500);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }else if(jQuery(\"body\").hasClass('catalog-product-view') ){\n if((jQuery(element).closest('li.widget-sliderbox').length == 0)&&(jQuery(element).closest('#cbar_widget01').length == 0)){\n console.log(\"recommendedWidgetOnClick\");\n recommendedWidgetOnClick();\n }else{\n console.log(\"Not recommendedWidgetOnClick\");\n }\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n console.log(\"---------\"+window.amo_tag_params['ut1']);\n console.log(\"---------\"+window.amo_tag_params['ut2']);\n console.log(\"---------\"+window.amo_tag_params['ut3']);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str = jQuery(\"#old-price-\"+id).html();\n if(typeof str != 'undefined'){\n ppriceid = str.replace(\"Rs. \", \"\");\n }\n }\n setBundlePixel(id,url,'',ppriceid,tparam);\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n } else {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function showMobileOptions(url, id, flag, obj) {\n var objId = jQuery(obj).parent().parent();\n if (jQuery(objId).find('#product_view_' + id).is(':hidden') && false) {\n\n jQuery(objId).find('img.discount-tag').hide();\n jQuery(objId).find('#product_view_' + id).show();\n jQuery(objId).find('.org_add').hide();\n jQuery(objId).find('.discount_offer_tag_label').hide();\n jQuery(objId).find('.nykaa-tags').hide();\n jQuery('.wishlist-id-' + id + '').hide();\n jQuery(objId).css({border: 'none'});\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n url += '?eq=mobile';\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, 2);\n jQuery('#lightbox').css('position', 'fixed');\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n lightbox(data, null, 2);\n jQuery('#lightbox #closelb').remove();\n jQuery('body #lightbox').css('width', '300px !important');\n jQuery('body #lightbox').css('height', '300px !important');\n jQuery('#lightbox').css('position', 'fixed');\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function getNotifyForm(id) {\n jQuery('#outofstockSubscriptionOnCategory .product_subscr_id').val(id);\n lightbox(jQuery('#outofstockSubscriptionOnCategory').html(), null, null);\n }\n\n function outofstockSubscriptionOnCategory() {\n var validate = validateSubscrEmail(jQuery('#lightbox #subscription_email').val());\n if (!validate) {\n return false;\n }\n var p_id = jQuery('#lightbox .product_subscr_id').val();\n ga('send','event','Notify Me',p_id,'Category Page');\n var url = '/ajaxaddcart/index/outofStockSubscription/';\n var req_data = 'subscription_email=' + jQuery('#lightbox #subscription_email').val();\n req_data += '&product=' + jQuery('#lightbox .product_subscr_id').val();\n req_data += '&isAjax=1';\n if (!jQuery('#lightbox .product_subscr_id').val()) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('Please Select Shade.');\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n return;\n }\n jQuery.ajax({\n type: 'POST',\n data: req_data,\n dataType: \"json\",\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n if (data.error) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n } else {\n try\n {\n _taq.events.push(['notifyme',{'product_id':data.product_id ,'email':data.email ,'device':\"desktop\" , 'product_name':data.product_name ,'Associated_categories':data.associated_categories, 'Associated_brand':data.associated_brand , 'MRP':data.mrp , 'selling_price':data.selling_price }]);\n }catch(err){}\n jQuery('#lightbox #subscription_email').val('');\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('success-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('successf-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n }\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n\n function funTagGTM_Garnier()\n {\n if(jQuery('#hdnGTM_Garnier').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-TX3ZS4');\n jQuery('#hdnGTM_Garnier').val(1);\n }\n }\n\n function funTagGTM_LP()\n {\n if(jQuery('#hdnGTM_LP').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-5HSSFS');\n jQuery('#hdnGTM_LP').val(1);\n }\n }\n\n function funTagGTM_MNY()\n {\n if(jQuery('#hdnGTM_MNY').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-52JDQS');\n jQuery('#hdnGTM_MNY').val(1);\n }\n }\n\n function ajaxLoadings() {\n var over = '
';\n over += 'Loading ....';\n over += '
';\n jQuery(over).appendTo('body');\n setTimeout(function(){\n window.location='/checkoutmobile' ;\n }, 1000);\n }\n\n function ajaxWishlist(action, id, parentId, type) {\n var url = jQuery('#' + parentId + ' a').attr('data-url');\n url = url.replace(\"wishlist/index\", \"advancedwishlist/index\");\n url += 'isAjax/1/';\n ajaxLoading();\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (data.error == 1) {\n lightbox(null, '/customer/account/signupformpopup', 1);\n } else {\n if (action == 'remove') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Removed from wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishremoved');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishremoved');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('added');\n jQuery('#' + parentId + ' a').addClass('add');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"add\", \"' + id + '\", \"' + parentId + '\");');\n }\n if (action == 'add') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Added to wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishadded');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishadded');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('add');\n jQuery('#' + parentId + ' a').addClass('added');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"remove\", \"' + id + '\", \"' + parentId + '\");');\n }\n jQuery('#' + parentId + ' a').attr('data-url', data.href);\n if (jQuery('.block-wishlist').length) {\n jQuery('.block-wishlist').replaceWith(data.sidebar);\n } else {\n if (jQuery('.col-right').length) {\n jQuery('.col-right').prepend(data.sidebar);\n }\n }\n if (type == 'customer') {\n ajaxRemoveWishlist(action, id, parentId);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n function showOptions(url, id, flag) {\n if (jQuery('#product_view_' + id).is(':hidden')) {\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product_view_' + id).show();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, null);\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n jQuery('#product-opt-' + id).prepend(data);\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n alert('AJAX Failure!');\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function setMobileLocationAjax(url, id,wishlist,trackparam,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\nbreak;\n}\n}\nurl = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\nvar qty = jQuery('.product_block_' + id + ' .qty').val();\nif (window.location.protocol !== 'http:') {\nurl = url.replace(\"http:\", \"https:\");\n}\najaxLoading();\ntry {\njQuery.ajax({\nurl: url,\ndataType: 'json',\nbeforeSend: function () {\npace.on();\n},\nsuccess: function (data) {\ncloseAjaxLoading();\nif(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\nif(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\nvar image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n}else{\nvar image_pro_src = jQuery('.product_cart_front_'+id).find('.product-image img').attr('src');\n}\nlightbox(null,'/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n}\nsetMobileAjaxData(data, id, false);\nsetGamoogaPixel(id,url,trackparam);\nif(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\nrediMessage(element);\n},\ncomplete: function () {\npace.off();\npace.init();\n}\n});\n} catch (e) {\n}\n}\n\n function setLocationAjax(url, id,trackparam,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n url += '?customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '?listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n setAjaxData(data, false, id);\n if (data.status == 'ERROR') {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n if(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(element).closest('.n_prod_block').find('.product-image img').attr('src');\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }else{\n jQuery('#product_view_alert_' + id + ' div').html(data.message);\n jQuery('#product_view_alert_' + id).show();\n jQuery('.tagoffer'+id).addClass('tag-offer-veg-hide');\n }\n } else {\n\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (trackparam.search(\"catg_people\") >= 0)){}\n else{\n if(window.location.href.indexOf('n=beautyservices') > -1){\n\n }else{\n jQuery('.listing-page-widget').hide(1000);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }\n\n }\n\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n setGamoogaPixel(id,url,trackparam);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n if((window.location.href.indexOf('n=beautyservices') > 0 || jQuery('#beautyservices_gc').val() == 1)&&(jQuery(window).width() > 480)){\n showCart();\n }\n }\n });\n } catch (e) {\n }\n }\n\n function setMobilebundleLocationAjax(url, id,button,wid,wishlist,element,trackparam) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n if(url.indexOf('?') < 0){ url += '?';}\n url += '&isAjax=1&check_param='+button+'&wid='+wid;\n\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(button==\"wishlist\"){\n window.location.href= '/checkoutmobile';\n }\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str1 = jQuery(\"#old-price-\"+id).html();\n if(str1 == \"\")\n {\n str = jQuery(\"#old-price-\"+id).val();\n ppriceid = str.replace(\"Rs. \", \"\");\n }else\n {\n str =str1;\n ppriceid = str;\n }\n\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(jQuery(\"body\").hasClass('catalog-product-view') ){\n recommendedWidgetOnClick();\n }\n setBundlePixel(id,url,button,ppriceid,trackparam);\n setMobileBundleAjaxData(data, id, false,button);\n if(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\n rediMessage(element);\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function setbundleLocationAjax(url, id,tparam,wid,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n var pincodesource = jQuery(\"#pincodesource\").val();\n if(url.indexOf('?') < 0){\n url += '?';\n }\n url += '&isAjax=1&check_param='+tparam+'&wid='+wid;\n if(pincodesource ==\"\" || pincodesource === undefined){\n }else{\n url +=\"&pincodesource=\"+pincodesource;\n }\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (tparam) {\n case 'prod_people also bought':\n url += '&customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '&listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '&recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '&cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(tparam==\"wishlist\"){\n ajaxRemoveWishlist('', '0', '');\n }\n if(data.message !=\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n setAjaxData(data, false, id);\n }else if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\n if(wishlist){\n var image_pro_src = jQuery(\"#product-opt-\"+id).find('.product-image img').attr('src');\n }else if(tparam==\"prod_customer+also+viewed\" || tparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.product-image img').attr('src');\n if(typeof image_pro_src === \"undefined\"){\n image_pro_src = jQuery(\".product-image img\").attr('src');\n }\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }\n if(data.status != 'ERROR'){\n\n\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (tparam.search(\"catg_people\") >= 0)){}\n else{\n jQuery('.listing-page-widget').hide(1500);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }else if(jQuery(\"body\").hasClass('catalog-product-view') ){\n if((jQuery(element).closest('li.widget-sliderbox').length == 0)&&(jQuery(element).closest('#cbar_widget01').length == 0)){\n console.log(\"recommendedWidgetOnClick\");\n recommendedWidgetOnClick();\n }else{\n console.log(\"Not recommendedWidgetOnClick\");\n }\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n console.log(\"---------\"+window.amo_tag_params['ut1']);\n console.log(\"---------\"+window.amo_tag_params['ut2']);\n console.log(\"---------\"+window.amo_tag_params['ut3']);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str = jQuery(\"#old-price-\"+id).html();\n if(typeof str != 'undefined'){\n ppriceid = str.replace(\"Rs. \", \"\");\n }\n }\n setBundlePixel(id,url,'',ppriceid,tparam);\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n } else {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function showMobileOptions(url, id, flag, obj) {\n var objId = jQuery(obj).parent().parent();\n if (jQuery(objId).find('#product_view_' + id).is(':hidden') && false) {\n\n jQuery(objId).find('img.discount-tag').hide();\n jQuery(objId).find('#product_view_' + id).show();\n jQuery(objId).find('.org_add').hide();\n jQuery(objId).find('.discount_offer_tag_label').hide();\n jQuery(objId).find('.nykaa-tags').hide();\n jQuery('.wishlist-id-' + id + '').hide();\n jQuery(objId).css({border: 'none'});\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n url += '?eq=mobile';\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, 2);\n jQuery('#lightbox').css('position', 'fixed');\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n lightbox(data, null, 2);\n jQuery('#lightbox #closelb').remove();\n jQuery('body #lightbox').css('width', '300px !important');\n jQuery('body #lightbox').css('height', '300px !important');\n jQuery('#lightbox').css('position', 'fixed');\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function getNotifyForm(id) {\n jQuery('#outofstockSubscriptionOnCategory .product_subscr_id').val(id);\n lightbox(jQuery('#outofstockSubscriptionOnCategory').html(), null, null);\n }\n\n function outofstockSubscriptionOnCategory() {\n var validate = validateSubscrEmail(jQuery('#lightbox #subscription_email').val());\n if (!validate) {\n return false;\n }\n var p_id = jQuery('#lightbox .product_subscr_id').val();\n ga('send','event','Notify Me',p_id,'Category Page');\n var url = '/ajaxaddcart/index/outofStockSubscription/';\n var req_data = 'subscription_email=' + jQuery('#lightbox #subscription_email').val();\n req_data += '&product=' + jQuery('#lightbox .product_subscr_id').val();\n req_data += '&isAjax=1';\n if (!jQuery('#lightbox .product_subscr_id').val()) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('Please Select Shade.');\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n return;\n }\n jQuery.ajax({\n type: 'POST',\n data: req_data,\n dataType: \"json\",\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n if (data.error) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n } else {\n try\n {\n _taq.events.push(['notifyme',{'product_id':data.product_id ,'email':data.email ,'device':\"desktop\" , 'product_name':data.product_name ,'Associated_categories':data.associated_categories, 'Associated_brand':data.associated_brand , 'MRP':data.mrp , 'selling_price':data.selling_price }]);\n }catch(err){}\n jQuery('#lightbox #subscription_email').val('');\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('success-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('successf-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n }\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n\n if(jQuery('body.luxury').length > 0){\n var star_off = jQuery(\"#star-off img\");\n star_off.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-off-luxury.svg');\n var star_on = jQuery(\"#star-on img\");\n star_on.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-off-luxury.svg');\n }else{\n var star_off = jQuery(\"#star-off img\");\n star_off.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-off.svg');\n var star_on = jQuery(\"#star-on img\");\n star_on.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-on.svg');\n }\n \n function funTagGTM_Garnier()\n {\n if(jQuery('#hdnGTM_Garnier').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-TX3ZS4');\n jQuery('#hdnGTM_Garnier').val(1);\n }\n }\n\n function funTagGTM_LP()\n {\n if(jQuery('#hdnGTM_LP').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-5HSSFS');\n jQuery('#hdnGTM_LP').val(1);\n }\n }\n\n function funTagGTM_MNY()\n {\n if(jQuery('#hdnGTM_MNY').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-52JDQS');\n jQuery('#hdnGTM_MNY').val(1);\n }\n }\n\n function ajaxLoadings() {\n var over = '
';\n over += 'Loading ....';\n over += '
';\n jQuery(over).appendTo('body');\n setTimeout(function(){\n window.location='/checkoutmobile' ;\n }, 1000);\n }\n\n function ajaxWishlist(action, id, parentId, type) {\n var url = jQuery('#' + parentId + ' a').attr('data-url');\n url = url.replace(\"wishlist/index\", \"advancedwishlist/index\");\n url += 'isAjax/1/';\n ajaxLoading();\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (data.error == 1) {\n lightbox(null, '/customer/account/signupformpopup', 1);\n } else {\n if (action == 'remove') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Removed from wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishremoved');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishremoved');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('added');\n jQuery('#' + parentId + ' a').addClass('add');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"add\", \"' + id + '\", \"' + parentId + '\");');\n }\n if (action == 'add') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Added to wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishadded');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishadded');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('add');\n jQuery('#' + parentId + ' a').addClass('added');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"remove\", \"' + id + '\", \"' + parentId + '\");');\n }\n jQuery('#' + parentId + ' a').attr('data-url', data.href);\n if (jQuery('.block-wishlist').length) {\n jQuery('.block-wishlist').replaceWith(data.sidebar);\n } else {\n if (jQuery('.col-right').length) {\n jQuery('.col-right').prepend(data.sidebar);\n }\n }\n if (type == 'customer') {\n ajaxRemoveWishlist(action, id, parentId);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n function showOptions(url, id, flag) {\n if (jQuery('#product_view_' + id).is(':hidden')) {\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product_view_' + id).show();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, null);\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n jQuery('#product-opt-' + id).prepend(data);\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n alert('AJAX Failure!');\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function setMobileLocationAjax(url, id,wishlist,trackparam,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\nbreak;\n}\n}\nurl = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\nvar qty = jQuery('.product_block_' + id + ' .qty').val();\nif (window.location.protocol !== 'http:') {\nurl = url.replace(\"http:\", \"https:\");\n}\najaxLoading();\ntry {\njQuery.ajax({\nurl: url,\ndataType: 'json',\nbeforeSend: function () {\npace.on();\n},\nsuccess: function (data) {\ncloseAjaxLoading();\nif(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\nif(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\nvar image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n}else{\nvar image_pro_src = jQuery('.product_cart_front_'+id).find('.product-image img').attr('src');\n}\nlightbox(null,'/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n}\nsetMobileAjaxData(data, id, false);\nsetGamoogaPixel(id,url,trackparam);\nif(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\nrediMessage(element);\n},\ncomplete: function () {\npace.off();\npace.init();\n}\n});\n} catch (e) {\n}\n}\n\n function setLocationAjax(url, id,trackparam,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n url += '?customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '?listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n setAjaxData(data, false, id);\n if (data.status == 'ERROR') {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n if(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(element).closest('.n_prod_block').find('.product-image img').attr('src');\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }else{\n jQuery('#product_view_alert_' + id + ' div').html(data.message);\n jQuery('#product_view_alert_' + id).show();\n jQuery('.tagoffer'+id).addClass('tag-offer-veg-hide');\n }\n } else {\n\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (trackparam.search(\"catg_people\") >= 0)){}\n else{\n if(window.location.href.indexOf('n=beautyservices') > -1){\n\n }else{\n jQuery('.listing-page-widget').hide(1000);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }\n\n }\n\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n setGamoogaPixel(id,url,trackparam);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n if((window.location.href.indexOf('n=beautyservices') > 0 || jQuery('#beautyservices_gc').val() == 1)&&(jQuery(window).width() > 480)){\n showCart();\n }\n }\n });\n } catch (e) {\n }\n }\n\n function setMobilebundleLocationAjax(url, id,button,wid,wishlist,element,trackparam) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n if(url.indexOf('?') < 0){ url += '?';}\n url += '&isAjax=1&check_param='+button+'&wid='+wid;\n\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(button==\"wishlist\"){\n window.location.href= '/checkoutmobile';\n }\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str1 = jQuery(\"#old-price-\"+id).html();\n if(str1 == \"\")\n {\n str = jQuery(\"#old-price-\"+id).val();\n ppriceid = str.replace(\"Rs. \", \"\");\n }else\n {\n str =str1;\n ppriceid = str;\n }\n\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(jQuery(\"body\").hasClass('catalog-product-view') ){\n recommendedWidgetOnClick();\n }\n setBundlePixel(id,url,button,ppriceid,trackparam);\n setMobileBundleAjaxData(data, id, false,button);\n if(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\n rediMessage(element);\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function setbundleLocationAjax(url, id,tparam,wid,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n var pincodesource = jQuery(\"#pincodesource\").val();\n if(url.indexOf('?') < 0){\n url += '?';\n }\n url += '&isAjax=1&check_param='+tparam+'&wid='+wid;\n if(pincodesource ==\"\" || pincodesource === undefined){\n }else{\n url +=\"&pincodesource=\"+pincodesource;\n }\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (tparam) {\n case 'prod_people also bought':\n url += '&customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '&listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '&recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '&cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(tparam==\"wishlist\"){\n ajaxRemoveWishlist('', '0', '');\n }\n if(data.message !=\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n setAjaxData(data, false, id);\n }else if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\n if(wishlist){\n var image_pro_src = jQuery(\"#product-opt-\"+id).find('.product-image img').attr('src');\n }else if(tparam==\"prod_customer+also+viewed\" || tparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.product-image img').attr('src');\n if(typeof image_pro_src === \"undefined\"){\n image_pro_src = jQuery(\".product-image img\").attr('src');\n }\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }\n if(data.status != 'ERROR'){\n\n\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (tparam.search(\"catg_people\") >= 0)){}\n else{\n jQuery('.listing-page-widget').hide(1500);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }else if(jQuery(\"body\").hasClass('catalog-product-view') ){\n if((jQuery(element).closest('li.widget-sliderbox').length == 0)&&(jQuery(element).closest('#cbar_widget01').length == 0)){\n console.log(\"recommendedWidgetOnClick\");\n recommendedWidgetOnClick();\n }else{\n console.log(\"Not recommendedWidgetOnClick\");\n }\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n console.log(\"---------\"+window.amo_tag_params['ut1']);\n console.log(\"---------\"+window.amo_tag_params['ut2']);\n console.log(\"---------\"+window.amo_tag_params['ut3']);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str = jQuery(\"#old-price-\"+id).html();\n if(typeof str != 'undefined'){\n ppriceid = str.replace(\"Rs. \", \"\");\n }\n }\n setBundlePixel(id,url,'',ppriceid,tparam);\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n } else {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function showMobileOptions(url, id, flag, obj) {\n var objId = jQuery(obj).parent().parent();\n if (jQuery(objId).find('#product_view_' + id).is(':hidden') && false) {\n\n jQuery(objId).find('img.discount-tag').hide();\n jQuery(objId).find('#product_view_' + id).show();\n jQuery(objId).find('.org_add').hide();\n jQuery(objId).find('.discount_offer_tag_label').hide();\n jQuery(objId).find('.nykaa-tags').hide();\n jQuery('.wishlist-id-' + id + '').hide();\n jQuery(objId).css({border: 'none'});\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n url += '?eq=mobile';\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, 2);\n jQuery('#lightbox').css('position', 'fixed');\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n lightbox(data, null, 2);\n jQuery('#lightbox #closelb').remove();\n jQuery('body #lightbox').css('width', '300px !important');\n jQuery('body #lightbox').css('height', '300px !important');\n jQuery('#lightbox').css('position', 'fixed');\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function getNotifyForm(id) {\n jQuery('#outofstockSubscriptionOnCategory .product_subscr_id').val(id);\n lightbox(jQuery('#outofstockSubscriptionOnCategory').html(), null, null);\n }\n\n function outofstockSubscriptionOnCategory() {\n var validate = validateSubscrEmail(jQuery('#lightbox #subscription_email').val());\n if (!validate) {\n return false;\n }\n var p_id = jQuery('#lightbox .product_subscr_id').val();\n ga('send','event','Notify Me',p_id,'Category Page');\n var url = '/ajaxaddcart/index/outofStockSubscription/';\n var req_data = 'subscription_email=' + jQuery('#lightbox #subscription_email').val();\n req_data += '&product=' + jQuery('#lightbox .product_subscr_id').val();\n req_data += '&isAjax=1';\n if (!jQuery('#lightbox .product_subscr_id').val()) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('Please Select Shade.');\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n return;\n }\n jQuery.ajax({\n type: 'POST',\n data: req_data,\n dataType: \"json\",\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n if (data.error) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n } else {\n try\n {\n _taq.events.push(['notifyme',{'product_id':data.product_id ,'email':data.email ,'device':\"desktop\" , 'product_name':data.product_name ,'Associated_categories':data.associated_categories, 'Associated_brand':data.associated_brand , 'MRP':data.mrp , 'selling_price':data.selling_price }]);\n }catch(err){}\n jQuery('#lightbox #subscription_email').val('');\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('success-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('successf-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n }\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n\n if(jQuery('body.luxury').length > 0){\n var star_off = jQuery(\"#star-off img\");\n star_off.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-off-luxury.svg');\n var star_on = jQuery(\"#star-on img\");\n star_on.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-off-luxury.svg');\n }else{\n var star_off = jQuery(\"#star-off img\");\n star_off.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-off.svg');\n var star_on = jQuery(\"#star-on img\");\n star_on.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-on.svg');\n }\n \n function funTagGTM_Garnier()\n {\n if(jQuery('#hdnGTM_Garnier').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-TX3ZS4');\n jQuery('#hdnGTM_Garnier').val(1);\n }\n }\n\n function funTagGTM_LP()\n {\n if(jQuery('#hdnGTM_LP').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-5HSSFS');\n jQuery('#hdnGTM_LP').val(1);\n }\n }\n\n function funTagGTM_MNY()\n {\n if(jQuery('#hdnGTM_MNY').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-52JDQS');\n jQuery('#hdnGTM_MNY').val(1);\n }\n }\n\n function ajaxLoadings() {\n var over = '
';\n over += 'Loading ....';\n over += '
';\n jQuery(over).appendTo('body');\n setTimeout(function(){\n window.location='/checkoutmobile' ;\n }, 1000);\n }\n\n function ajaxWishlist(action, id, parentId, type) {\n var url = jQuery('#' + parentId + ' a').attr('data-url');\n url = url.replace(\"wishlist/index\", \"advancedwishlist/index\");\n url += 'isAjax/1/';\n ajaxLoading();\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (data.error == 1) {\n lightbox(null, '/customer/account/signupformpopup', 1);\n } else {\n if (action == 'remove') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Removed from wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishremoved');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishremoved');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('added');\n jQuery('#' + parentId + ' a').addClass('add');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"add\", \"' + id + '\", \"' + parentId + '\");');\n }\n if (action == 'add') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Added to wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishadded');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishadded');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('add');\n jQuery('#' + parentId + ' a').addClass('added');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"remove\", \"' + id + '\", \"' + parentId + '\");');\n }\n jQuery('#' + parentId + ' a').attr('data-url', data.href);\n if (jQuery('.block-wishlist').length) {\n jQuery('.block-wishlist').replaceWith(data.sidebar);\n } else {\n if (jQuery('.col-right').length) {\n jQuery('.col-right').prepend(data.sidebar);\n }\n }\n if (type == 'customer') {\n ajaxRemoveWishlist(action, id, parentId);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n function showOptions(url, id, flag) {\n if (jQuery('#product_view_' + id).is(':hidden')) {\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product_view_' + id).show();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, null);\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n jQuery('#product-opt-' + id).prepend(data);\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n alert('AJAX Failure!');\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function setMobileLocationAjax(url, id,wishlist,trackparam,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\nbreak;\n}\n}\nurl = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\nvar qty = jQuery('.product_block_' + id + ' .qty').val();\nif (window.location.protocol !== 'http:') {\nurl = url.replace(\"http:\", \"https:\");\n}\najaxLoading();\ntry {\njQuery.ajax({\nurl: url,\ndataType: 'json',\nbeforeSend: function () {\npace.on();\n},\nsuccess: function (data) {\ncloseAjaxLoading();\nif(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\nif(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\nvar image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n}else{\nvar image_pro_src = jQuery('.product_cart_front_'+id).find('.product-image img').attr('src');\n}\nlightbox(null,'/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n}\nsetMobileAjaxData(data, id, false);\nsetGamoogaPixel(id,url,trackparam);\nif(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\nrediMessage(element);\n},\ncomplete: function () {\npace.off();\npace.init();\n}\n});\n} catch (e) {\n}\n}\n\n function setLocationAjax(url, id,trackparam,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n url += '?customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '?listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n setAjaxData(data, false, id);\n if (data.status == 'ERROR') {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n if(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(element).closest('.n_prod_block').find('.product-image img').attr('src');\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }else{\n jQuery('#product_view_alert_' + id + ' div').html(data.message);\n jQuery('#product_view_alert_' + id).show();\n jQuery('.tagoffer'+id).addClass('tag-offer-veg-hide');\n }\n } else {\n\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (trackparam.search(\"catg_people\") >= 0)){}\n else{\n if(window.location.href.indexOf('n=beautyservices') > -1){\n\n }else{\n jQuery('.listing-page-widget').hide(1000);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }\n\n }\n\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n setGamoogaPixel(id,url,trackparam);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n if((window.location.href.indexOf('n=beautyservices') > 0 || jQuery('#beautyservices_gc').val() == 1)&&(jQuery(window).width() > 480)){\n showCart();\n }\n }\n });\n } catch (e) {\n }\n }\n\n function setMobilebundleLocationAjax(url, id,button,wid,wishlist,element,trackparam) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n if(url.indexOf('?') < 0){ url += '?';}\n url += '&isAjax=1&check_param='+button+'&wid='+wid;\n\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(button==\"wishlist\"){\n window.location.href= '/checkoutmobile';\n }\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str1 = jQuery(\"#old-price-\"+id).html();\n if(str1 == \"\")\n {\n str = jQuery(\"#old-price-\"+id).val();\n ppriceid = str.replace(\"Rs. \", \"\");\n }else\n {\n str =str1;\n ppriceid = str;\n }\n\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(jQuery(\"body\").hasClass('catalog-product-view') ){\n recommendedWidgetOnClick();\n }\n setBundlePixel(id,url,button,ppriceid,trackparam);\n setMobileBundleAjaxData(data, id, false,button);\n if(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\n rediMessage(element);\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function setbundleLocationAjax(url, id,tparam,wid,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n var pincodesource = jQuery(\"#pincodesource\").val();\n if(url.indexOf('?') < 0){\n url += '?';\n }\n url += '&isAjax=1&check_param='+tparam+'&wid='+wid;\n if(pincodesource ==\"\" || pincodesource === undefined){\n }else{\n url +=\"&pincodesource=\"+pincodesource;\n }\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (tparam) {\n case 'prod_people also bought':\n url += '&customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '&listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '&recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '&cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(tparam==\"wishlist\"){\n ajaxRemoveWishlist('', '0', '');\n }\n if(data.message !=\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n setAjaxData(data, false, id);\n }else if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\n if(wishlist){\n var image_pro_src = jQuery(\"#product-opt-\"+id).find('.product-image img').attr('src');\n }else if(tparam==\"prod_customer+also+viewed\" || tparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.product-image img').attr('src');\n if(typeof image_pro_src === \"undefined\"){\n image_pro_src = jQuery(\".product-image img\").attr('src');\n }\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }\n if(data.status != 'ERROR'){\n\n\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (tparam.search(\"catg_people\") >= 0)){}\n else{\n jQuery('.listing-page-widget').hide(1500);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }else if(jQuery(\"body\").hasClass('catalog-product-view') ){\n if((jQuery(element).closest('li.widget-sliderbox').length == 0)&&(jQuery(element).closest('#cbar_widget01').length == 0)){\n console.log(\"recommendedWidgetOnClick\");\n recommendedWidgetOnClick();\n }else{\n console.log(\"Not recommendedWidgetOnClick\");\n }\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n console.log(\"---------\"+window.amo_tag_params['ut1']);\n console.log(\"---------\"+window.amo_tag_params['ut2']);\n console.log(\"---------\"+window.amo_tag_params['ut3']);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str = jQuery(\"#old-price-\"+id).html();\n if(typeof str != 'undefined'){\n ppriceid = str.replace(\"Rs. \", \"\");\n }\n }\n setBundlePixel(id,url,'',ppriceid,tparam);\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n } else {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function showMobileOptions(url, id, flag, obj) {\n var objId = jQuery(obj).parent().parent();\n if (jQuery(objId).find('#product_view_' + id).is(':hidden') && false) {\n\n jQuery(objId).find('img.discount-tag').hide();\n jQuery(objId).find('#product_view_' + id).show();\n jQuery(objId).find('.org_add').hide();\n jQuery(objId).find('.discount_offer_tag_label').hide();\n jQuery(objId).find('.nykaa-tags').hide();\n jQuery('.wishlist-id-' + id + '').hide();\n jQuery(objId).css({border: 'none'});\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n url += '?eq=mobile';\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, 2);\n jQuery('#lightbox').css('position', 'fixed');\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n lightbox(data, null, 2);\n jQuery('#lightbox #closelb').remove();\n jQuery('body #lightbox').css('width', '300px !important');\n jQuery('body #lightbox').css('height', '300px !important');\n jQuery('#lightbox').css('position', 'fixed');\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function getNotifyForm(id) {\n jQuery('#outofstockSubscriptionOnCategory .product_subscr_id').val(id);\n lightbox(jQuery('#outofstockSubscriptionOnCategory').html(), null, null);\n }\n\n function outofstockSubscriptionOnCategory() {\n var validate = validateSubscrEmail(jQuery('#lightbox #subscription_email').val());\n if (!validate) {\n return false;\n }\n var p_id = jQuery('#lightbox .product_subscr_id').val();\n ga('send','event','Notify Me',p_id,'Category Page');\n var url = '/ajaxaddcart/index/outofStockSubscription/';\n var req_data = 'subscription_email=' + jQuery('#lightbox #subscription_email').val();\n req_data += '&product=' + jQuery('#lightbox .product_subscr_id').val();\n req_data += '&isAjax=1';\n if (!jQuery('#lightbox .product_subscr_id').val()) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('Please Select Shade.');\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n return;\n }\n jQuery.ajax({\n type: 'POST',\n data: req_data,\n dataType: \"json\",\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n if (data.error) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n } else {\n try\n {\n _taq.events.push(['notifyme',{'product_id':data.product_id ,'email':data.email ,'device':\"desktop\" , 'product_name':data.product_name ,'Associated_categories':data.associated_categories, 'Associated_brand':data.associated_brand , 'MRP':data.mrp , 'selling_price':data.selling_price }]);\n }catch(err){}\n jQuery('#lightbox #subscription_email').val('');\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('success-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('successf-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n }\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n\n function funTagGTM_Garnier()\n {\n if(jQuery('#hdnGTM_Garnier').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-TX3ZS4');\n jQuery('#hdnGTM_Garnier').val(1);\n }\n }\n\n function funTagGTM_LP()\n {\n if(jQuery('#hdnGTM_LP').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-5HSSFS');\n jQuery('#hdnGTM_LP').val(1);\n }\n }\n\n function funTagGTM_MNY()\n {\n if(jQuery('#hdnGTM_MNY').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-52JDQS');\n jQuery('#hdnGTM_MNY').val(1);\n }\n }\n\n function ajaxLoadings() {\n var over = '
';\n over += 'Loading ....';\n over += '
';\n jQuery(over).appendTo('body');\n setTimeout(function(){\n window.location='/checkoutmobile' ;\n }, 1000);\n }\n\n function ajaxWishlist(action, id, parentId, type) {\n var url = jQuery('#' + parentId + ' a').attr('data-url');\n url = url.replace(\"wishlist/index\", \"advancedwishlist/index\");\n url += 'isAjax/1/';\n ajaxLoading();\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (data.error == 1) {\n lightbox(null, '/customer/account/signupformpopup', 1);\n } else {\n if (action == 'remove') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Removed from wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishremoved');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishremoved');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('added');\n jQuery('#' + parentId + ' a').addClass('add');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"add\", \"' + id + '\", \"' + parentId + '\");');\n }\n if (action == 'add') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Added to wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishadded');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishadded');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('add');\n jQuery('#' + parentId + ' a').addClass('added');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"remove\", \"' + id + '\", \"' + parentId + '\");');\n }\n jQuery('#' + parentId + ' a').attr('data-url', data.href);\n if (jQuery('.block-wishlist').length) {\n jQuery('.block-wishlist').replaceWith(data.sidebar);\n } else {\n if (jQuery('.col-right').length) {\n jQuery('.col-right').prepend(data.sidebar);\n }\n }\n if (type == 'customer') {\n ajaxRemoveWishlist(action, id, parentId);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n function showOptions(url, id, flag) {\n if (jQuery('#product_view_' + id).is(':hidden')) {\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product_view_' + id).show();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, null);\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n jQuery('#product-opt-' + id).prepend(data);\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n alert('AJAX Failure!');\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function setMobileLocationAjax(url, id,wishlist,trackparam,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\nbreak;\n}\n}\nurl = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\nvar qty = jQuery('.product_block_' + id + ' .qty').val();\nif (window.location.protocol !== 'http:') {\nurl = url.replace(\"http:\", \"https:\");\n}\najaxLoading();\ntry {\njQuery.ajax({\nurl: url,\ndataType: 'json',\nbeforeSend: function () {\npace.on();\n},\nsuccess: function (data) {\ncloseAjaxLoading();\nif(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\nif(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\nvar image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n}else{\nvar image_pro_src = jQuery('.product_cart_front_'+id).find('.product-image img').attr('src');\n}\nlightbox(null,'/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n}\nsetMobileAjaxData(data, id, false);\nsetGamoogaPixel(id,url,trackparam);\nif(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\nrediMessage(element);\n},\ncomplete: function () {\npace.off();\npace.init();\n}\n});\n} catch (e) {\n}\n}\n\n function setLocationAjax(url, id,trackparam,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n url += '?customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '?listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n setAjaxData(data, false, id);\n if (data.status == 'ERROR') {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n if(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(element).closest('.n_prod_block').find('.product-image img').attr('src');\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }else{\n jQuery('#product_view_alert_' + id + ' div').html(data.message);\n jQuery('#product_view_alert_' + id).show();\n jQuery('.tagoffer'+id).addClass('tag-offer-veg-hide');\n }\n } else {\n\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (trackparam.search(\"catg_people\") >= 0)){}\n else{\n if(window.location.href.indexOf('n=beautyservices') > -1){\n\n }else{\n jQuery('.listing-page-widget').hide(1000);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }\n\n }\n\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n setGamoogaPixel(id,url,trackparam);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n if((window.location.href.indexOf('n=beautyservices') > 0 || jQuery('#beautyservices_gc').val() == 1)&&(jQuery(window).width() > 480)){\n showCart();\n }\n }\n });\n } catch (e) {\n }\n }\n\n function setMobilebundleLocationAjax(url, id,button,wid,wishlist,element,trackparam) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n if(url.indexOf('?') < 0){ url += '?';}\n url += '&isAjax=1&check_param='+button+'&wid='+wid;\n\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(button==\"wishlist\"){\n window.location.href= '/checkoutmobile';\n }\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str1 = jQuery(\"#old-price-\"+id).html();\n if(str1 == \"\")\n {\n str = jQuery(\"#old-price-\"+id).val();\n ppriceid = str.replace(\"Rs. \", \"\");\n }else\n {\n str =str1;\n ppriceid = str;\n }\n\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(jQuery(\"body\").hasClass('catalog-product-view') ){\n recommendedWidgetOnClick();\n }\n setBundlePixel(id,url,button,ppriceid,trackparam);\n setMobileBundleAjaxData(data, id, false,button);\n if(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\n rediMessage(element);\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function setbundleLocationAjax(url, id,tparam,wid,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n var pincodesource = jQuery(\"#pincodesource\").val();\n if(url.indexOf('?') < 0){\n url += '?';\n }\n url += '&isAjax=1&check_param='+tparam+'&wid='+wid;\n if(pincodesource ==\"\" || pincodesource === undefined){\n }else{\n url +=\"&pincodesource=\"+pincodesource;\n }\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (tparam) {\n case 'prod_people also bought':\n url += '&customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '&listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '&recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '&cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(tparam==\"wishlist\"){\n ajaxRemoveWishlist('', '0', '');\n }\n if(data.message !=\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n setAjaxData(data, false, id);\n }else if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\n if(wishlist){\n var image_pro_src = jQuery(\"#product-opt-\"+id).find('.product-image img').attr('src');\n }else if(tparam==\"prod_customer+also+viewed\" || tparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.product-image img').attr('src');\n if(typeof image_pro_src === \"undefined\"){\n image_pro_src = jQuery(\".product-image img\").attr('src');\n }\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }\n if(data.status != 'ERROR'){\n\n\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (tparam.search(\"catg_people\") >= 0)){}\n else{\n jQuery('.listing-page-widget').hide(1500);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }else if(jQuery(\"body\").hasClass('catalog-product-view') ){\n if((jQuery(element).closest('li.widget-sliderbox').length == 0)&&(jQuery(element).closest('#cbar_widget01').length == 0)){\n console.log(\"recommendedWidgetOnClick\");\n recommendedWidgetOnClick();\n }else{\n console.log(\"Not recommendedWidgetOnClick\");\n }\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n console.log(\"---------\"+window.amo_tag_params['ut1']);\n console.log(\"---------\"+window.amo_tag_params['ut2']);\n console.log(\"---------\"+window.amo_tag_params['ut3']);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str = jQuery(\"#old-price-\"+id).html();\n if(typeof str != 'undefined'){\n ppriceid = str.replace(\"Rs. \", \"\");\n }\n }\n setBundlePixel(id,url,'',ppriceid,tparam);\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n } else {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function showMobileOptions(url, id, flag, obj) {\n var objId = jQuery(obj).parent().parent();\n if (jQuery(objId).find('#product_view_' + id).is(':hidden') && false) {\n\n jQuery(objId).find('img.discount-tag').hide();\n jQuery(objId).find('#product_view_' + id).show();\n jQuery(objId).find('.org_add').hide();\n jQuery(objId).find('.discount_offer_tag_label').hide();\n jQuery(objId).find('.nykaa-tags').hide();\n jQuery('.wishlist-id-' + id + '').hide();\n jQuery(objId).css({border: 'none'});\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n url += '?eq=mobile';\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, 2);\n jQuery('#lightbox').css('position', 'fixed');\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n lightbox(data, null, 2);\n jQuery('#lightbox #closelb').remove();\n jQuery('body #lightbox').css('width', '300px !important');\n jQuery('body #lightbox').css('height', '300px !important');\n jQuery('#lightbox').css('position', 'fixed');\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function getNotifyForm(id) {\n jQuery('#outofstockSubscriptionOnCategory .product_subscr_id').val(id);\n lightbox(jQuery('#outofstockSubscriptionOnCategory').html(), null, null);\n }\n\n function outofstockSubscriptionOnCategory() {\n var validate = validateSubscrEmail(jQuery('#lightbox #subscription_email').val());\n if (!validate) {\n return false;\n }\n var p_id = jQuery('#lightbox .product_subscr_id').val();\n ga('send','event','Notify Me',p_id,'Category Page');\n var url = '/ajaxaddcart/index/outofStockSubscription/';\n var req_data = 'subscription_email=' + jQuery('#lightbox #subscription_email').val();\n req_data += '&product=' + jQuery('#lightbox .product_subscr_id').val();\n req_data += '&isAjax=1';\n if (!jQuery('#lightbox .product_subscr_id').val()) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('Please Select Shade.');\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n return;\n }\n jQuery.ajax({\n type: 'POST',\n data: req_data,\n dataType: \"json\",\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n if (data.error) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n } else {\n try\n {\n _taq.events.push(['notifyme',{'product_id':data.product_id ,'email':data.email ,'device':\"desktop\" , 'product_name':data.product_name ,'Associated_categories':data.associated_categories, 'Associated_brand':data.associated_brand , 'MRP':data.mrp , 'selling_price':data.selling_price }]);\n }catch(err){}\n jQuery('#lightbox #subscription_email').val('');\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('success-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('successf-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n }\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n\n function funTagGTM_Garnier()\n {\n if(jQuery('#hdnGTM_Garnier').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-TX3ZS4');\n jQuery('#hdnGTM_Garnier').val(1);\n }\n }\n\n function funTagGTM_LP()\n {\n if(jQuery('#hdnGTM_LP').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-5HSSFS');\n jQuery('#hdnGTM_LP').val(1);\n }\n }\n\n function funTagGTM_MNY()\n {\n if(jQuery('#hdnGTM_MNY').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-52JDQS');\n jQuery('#hdnGTM_MNY').val(1);\n }\n }\n\n function ajaxLoadings() {\n var over = '
';\n over += 'Loading ....';\n over += '
';\n jQuery(over).appendTo('body');\n setTimeout(function(){\n window.location='/checkoutmobile' ;\n }, 1000);\n }\n\n function ajaxWishlist(action, id, parentId, type) {\n var url = jQuery('#' + parentId + ' a').attr('data-url');\n url = url.replace(\"wishlist/index\", \"advancedwishlist/index\");\n url += 'isAjax/1/';\n ajaxLoading();\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (data.error == 1) {\n lightbox(null, '/customer/account/signupformpopup', 1);\n } else {\n if (action == 'remove') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Removed from wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishremoved');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishremoved');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('added');\n jQuery('#' + parentId + ' a').addClass('add');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"add\", \"' + id + '\", \"' + parentId + '\");');\n }\n if (action == 'add') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Added to wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishadded');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishadded');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('add');\n jQuery('#' + parentId + ' a').addClass('added');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"remove\", \"' + id + '\", \"' + parentId + '\");');\n }\n jQuery('#' + parentId + ' a').attr('data-url', data.href);\n if (jQuery('.block-wishlist').length) {\n jQuery('.block-wishlist').replaceWith(data.sidebar);\n } else {\n if (jQuery('.col-right').length) {\n jQuery('.col-right').prepend(data.sidebar);\n }\n }\n if (type == 'customer') {\n ajaxRemoveWishlist(action, id, parentId);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n function showOptions(url, id, flag) {\n if (jQuery('#product_view_' + id).is(':hidden')) {\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product_view_' + id).show();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, null);\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n jQuery('#product-opt-' + id).prepend(data);\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n alert('AJAX Failure!');\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function setMobileLocationAjax(url, id,wishlist,trackparam,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\nbreak;\n}\n}\nurl = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\nvar qty = jQuery('.product_block_' + id + ' .qty').val();\nif (window.location.protocol !== 'http:') {\nurl = url.replace(\"http:\", \"https:\");\n}\najaxLoading();\ntry {\njQuery.ajax({\nurl: url,\ndataType: 'json',\nbeforeSend: function () {\npace.on();\n},\nsuccess: function (data) {\ncloseAjaxLoading();\nif(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\nif(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\nvar image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n}else{\nvar image_pro_src = jQuery('.product_cart_front_'+id).find('.product-image img').attr('src');\n}\nlightbox(null,'/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n}\nsetMobileAjaxData(data, id, false);\nsetGamoogaPixel(id,url,trackparam);\nif(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\nrediMessage(element);\n},\ncomplete: function () {\npace.off();\npace.init();\n}\n});\n} catch (e) {\n}\n}\n\n function setLocationAjax(url, id,trackparam,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n url += '?customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '?listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n setAjaxData(data, false, id);\n if (data.status == 'ERROR') {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n if(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(element).closest('.n_prod_block').find('.product-image img').attr('src');\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }else{\n jQuery('#product_view_alert_' + id + ' div').html(data.message);\n jQuery('#product_view_alert_' + id).show();\n jQuery('.tagoffer'+id).addClass('tag-offer-veg-hide');\n }\n } else {\n\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (trackparam.search(\"catg_people\") >= 0)){}\n else{\n if(window.location.href.indexOf('n=beautyservices') > -1){\n\n }else{\n jQuery('.listing-page-widget').hide(1000);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }\n\n }\n\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n setGamoogaPixel(id,url,trackparam);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n if((window.location.href.indexOf('n=beautyservices') > 0 || jQuery('#beautyservices_gc').val() == 1)&&(jQuery(window).width() > 480)){\n showCart();\n }\n }\n });\n } catch (e) {\n }\n }\n\n function setMobilebundleLocationAjax(url, id,button,wid,wishlist,element,trackparam) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n if(url.indexOf('?') < 0){ url += '?';}\n url += '&isAjax=1&check_param='+button+'&wid='+wid;\n\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(button==\"wishlist\"){\n window.location.href= '/checkoutmobile';\n }\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str1 = jQuery(\"#old-price-\"+id).html();\n if(str1 == \"\")\n {\n str = jQuery(\"#old-price-\"+id).val();\n ppriceid = str.replace(\"Rs. \", \"\");\n }else\n {\n str =str1;\n ppriceid = str;\n }\n\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(jQuery(\"body\").hasClass('catalog-product-view') ){\n recommendedWidgetOnClick();\n }\n setBundlePixel(id,url,button,ppriceid,trackparam);\n setMobileBundleAjaxData(data, id, false,button);\n if(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\n rediMessage(element);\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function setbundleLocationAjax(url, id,tparam,wid,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n var pincodesource = jQuery(\"#pincodesource\").val();\n if(url.indexOf('?') < 0){\n url += '?';\n }\n url += '&isAjax=1&check_param='+tparam+'&wid='+wid;\n if(pincodesource ==\"\" || pincodesource === undefined){\n }else{\n url +=\"&pincodesource=\"+pincodesource;\n }\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (tparam) {\n case 'prod_people also bought':\n url += '&customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '&listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '&recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '&cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(tparam==\"wishlist\"){\n ajaxRemoveWishlist('', '0', '');\n }\n if(data.message !=\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n setAjaxData(data, false, id);\n }else if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\n if(wishlist){\n var image_pro_src = jQuery(\"#product-opt-\"+id).find('.product-image img').attr('src');\n }else if(tparam==\"prod_customer+also+viewed\" || tparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.product-image img').attr('src');\n if(typeof image_pro_src === \"undefined\"){\n image_pro_src = jQuery(\".product-image img\").attr('src');\n }\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }\n if(data.status != 'ERROR'){\n\n\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (tparam.search(\"catg_people\") >= 0)){}\n else{\n jQuery('.listing-page-widget').hide(1500);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }else if(jQuery(\"body\").hasClass('catalog-product-view') ){\n if((jQuery(element).closest('li.widget-sliderbox').length == 0)&&(jQuery(element).closest('#cbar_widget01').length == 0)){\n console.log(\"recommendedWidgetOnClick\");\n recommendedWidgetOnClick();\n }else{\n console.log(\"Not recommendedWidgetOnClick\");\n }\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n console.log(\"---------\"+window.amo_tag_params['ut1']);\n console.log(\"---------\"+window.amo_tag_params['ut2']);\n console.log(\"---------\"+window.amo_tag_params['ut3']);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str = jQuery(\"#old-price-\"+id).html();\n if(typeof str != 'undefined'){\n ppriceid = str.replace(\"Rs. \", \"\");\n }\n }\n setBundlePixel(id,url,'',ppriceid,tparam);\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n } else {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function showMobileOptions(url, id, flag, obj) {\n var objId = jQuery(obj).parent().parent();\n if (jQuery(objId).find('#product_view_' + id).is(':hidden') && false) {\n\n jQuery(objId).find('img.discount-tag').hide();\n jQuery(objId).find('#product_view_' + id).show();\n jQuery(objId).find('.org_add').hide();\n jQuery(objId).find('.discount_offer_tag_label').hide();\n jQuery(objId).find('.nykaa-tags').hide();\n jQuery('.wishlist-id-' + id + '').hide();\n jQuery(objId).css({border: 'none'});\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n url += '?eq=mobile';\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, 2);\n jQuery('#lightbox').css('position', 'fixed');\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n lightbox(data, null, 2);\n jQuery('#lightbox #closelb').remove();\n jQuery('body #lightbox').css('width', '300px !important');\n jQuery('body #lightbox').css('height', '300px !important');\n jQuery('#lightbox').css('position', 'fixed');\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function getNotifyForm(id) {\n jQuery('#outofstockSubscriptionOnCategory .product_subscr_id').val(id);\n lightbox(jQuery('#outofstockSubscriptionOnCategory').html(), null, null);\n }\n\n function outofstockSubscriptionOnCategory() {\n var validate = validateSubscrEmail(jQuery('#lightbox #subscription_email').val());\n if (!validate) {\n return false;\n }\n var p_id = jQuery('#lightbox .product_subscr_id').val();\n ga('send','event','Notify Me',p_id,'Category Page');\n var url = '/ajaxaddcart/index/outofStockSubscription/';\n var req_data = 'subscription_email=' + jQuery('#lightbox #subscription_email').val();\n req_data += '&product=' + jQuery('#lightbox .product_subscr_id').val();\n req_data += '&isAjax=1';\n if (!jQuery('#lightbox .product_subscr_id').val()) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('Please Select Shade.');\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n return;\n }\n jQuery.ajax({\n type: 'POST',\n data: req_data,\n dataType: \"json\",\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n if (data.error) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n } else {\n try\n {\n _taq.events.push(['notifyme',{'product_id':data.product_id ,'email':data.email ,'device':\"desktop\" , 'product_name':data.product_name ,'Associated_categories':data.associated_categories, 'Associated_brand':data.associated_brand , 'MRP':data.mrp , 'selling_price':data.selling_price }]);\n }catch(err){}\n jQuery('#lightbox #subscription_email').val('');\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('success-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('successf-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n }\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n\n if(jQuery('body.luxury').length > 0){\n var star_off = jQuery(\"#star-off img\");\n star_off.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-off-luxury.svg');\n var star_on = jQuery(\"#star-on img\");\n star_on.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-off-luxury.svg');\n }else{\n var star_off = jQuery(\"#star-off img\");\n star_off.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-off.svg');\n var star_on = jQuery(\"#star-on img\");\n star_on.attr('src', 'https://www.nykaa.com/skin/frontend/nykaa/theme202/images/star-on.svg');\n }\n \n function funTagGTM_Garnier()\n {\n if(jQuery('#hdnGTM_Garnier').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-TX3ZS4');\n jQuery('#hdnGTM_Garnier').val(1);\n }\n }\n\n function funTagGTM_LP()\n {\n if(jQuery('#hdnGTM_LP').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-5HSSFS');\n jQuery('#hdnGTM_LP').val(1);\n }\n }\n\n function funTagGTM_MNY()\n {\n if(jQuery('#hdnGTM_MNY').val()==0){\n (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-52JDQS');\n jQuery('#hdnGTM_MNY').val(1);\n }\n }\n\n function ajaxLoadings() {\n var over = '
';\n over += 'Loading ....';\n over += '
';\n jQuery(over).appendTo('body');\n setTimeout(function(){\n window.location='/checkoutmobile' ;\n }, 1000);\n }\n\n function ajaxWishlist(action, id, parentId, type) {\n var url = jQuery('#' + parentId + ' a').attr('data-url');\n url = url.replace(\"wishlist/index\", \"advancedwishlist/index\");\n url += 'isAjax/1/';\n ajaxLoading();\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (data.error == 1) {\n lightbox(null, '/customer/account/signupformpopup', 1);\n } else {\n if (action == 'remove') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Removed from wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishremoved');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishremoved');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('added');\n jQuery('#' + parentId + ' a').addClass('add');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"add\", \"' + id + '\", \"' + parentId + '\");');\n }\n if (action == 'add') {\n jQuery('#wishlist_msg_' + id).show();\n jQuery('#wishlist_msg_' + id).text('Added to wishlist');\n jQuery('#wishlist_msg_' + id).addClass('wishadded');\n setTimeout(function () {\n jQuery('#wishlist_msg_' + id).hide();\n jQuery('#wishlist_msg_' + id).text('');\n jQuery('#wishlist_msg_' + id).removeClass('wishadded');\n }, 2000);\n jQuery('#' + parentId + ' a').removeClass('add');\n jQuery('#' + parentId + ' a').addClass('added');\n jQuery('#' + parentId + ' a').attr('onclick', 'ajaxWishlist(\"remove\", \"' + id + '\", \"' + parentId + '\");');\n }\n jQuery('#' + parentId + ' a').attr('data-url', data.href);\n if (jQuery('.block-wishlist').length) {\n jQuery('.block-wishlist').replaceWith(data.sidebar);\n } else {\n if (jQuery('.col-right').length) {\n jQuery('.col-right').prepend(data.sidebar);\n }\n }\n if (type == 'customer') {\n ajaxRemoveWishlist(action, id, parentId);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n function showOptions(url, id, flag) {\n if (jQuery('#product_view_' + id).is(':hidden')) {\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product_view_' + id).show();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, null);\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n\n jQuery('#product-opt-' + id + ' img.discount-tag').hide();\n jQuery('#product-opt-' + id + ' .org_add').hide();\n jQuery('#product-opt-' + id + ' .discount_offer_tag_label').hide();\n jQuery('#wishlist-id-' + id + '').hide();\n jQuery('#product-opt-' + id).prepend(data);\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n alert('AJAX Failure!');\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function setMobileLocationAjax(url, id,wishlist,trackparam,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\nbreak;\n}\n}\nurl = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\nvar qty = jQuery('.product_block_' + id + ' .qty').val();\nif (window.location.protocol !== 'http:') {\nurl = url.replace(\"http:\", \"https:\");\n}\najaxLoading();\ntry {\njQuery.ajax({\nurl: url,\ndataType: 'json',\nbeforeSend: function () {\npace.on();\n},\nsuccess: function (data) {\ncloseAjaxLoading();\nif(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\nif(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\nvar image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n}else{\nvar image_pro_src = jQuery('.product_cart_front_'+id).find('.product-image img').attr('src');\n}\nlightbox(null,'/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n}\nsetMobileAjaxData(data, id, false);\nsetGamoogaPixel(id,url,trackparam);\nif(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\nrediMessage(element);\n},\ncomplete: function () {\npace.off();\npace.init();\n}\n});\n} catch (e) {\n}\n}\n\n function setLocationAjax(url, id,trackparam,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n url += 'isAjax/1';\n if( wishlist.wishlist == 1 ){ url += '?wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n url += '?customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '?listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n setAjaxData(data, false, id);\n if (data.status == 'ERROR') {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n if(trackparam==\"prod_customer+also+viewed\" || trackparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(element).closest('.n_prod_block').find('.product-image img').attr('src');\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }else{\n jQuery('#product_view_alert_' + id + ' div').html(data.message);\n jQuery('#product_view_alert_' + id).show();\n jQuery('.tagoffer'+id).addClass('tag-offer-veg-hide');\n }\n } else {\n\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (trackparam.search(\"catg_people\") >= 0)){}\n else{\n if(window.location.href.indexOf('n=beautyservices') > -1){\n\n }else{\n jQuery('.listing-page-widget').hide(1000);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }\n\n }\n\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n setGamoogaPixel(id,url,trackparam);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n if((window.location.href.indexOf('n=beautyservices') > 0 || jQuery('#beautyservices_gc').val() == 1)&&(jQuery(window).width() > 480)){\n showCart();\n }\n }\n });\n } catch (e) {\n }\n }\n\n function setMobilebundleLocationAjax(url, id,button,wid,wishlist,element,trackparam) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n if(url.indexOf('?') < 0){ url += '?';}\n url += '&isAjax=1&check_param='+button+'&wid='+wid;\n\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (trackparam) {\n case 'prod_people also bought':\n case 'catg_people also bought':\n url += '?customeralsoboughtm=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '?recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '?cavmobile=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(button==\"wishlist\"){\n window.location.href= '/checkoutmobile';\n }\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str1 = jQuery(\"#old-price-\"+id).html();\n if(str1 == \"\")\n {\n str = jQuery(\"#old-price-\"+id).val();\n ppriceid = str.replace(\"Rs. \", \"\");\n }else\n {\n str =str1;\n ppriceid = str;\n }\n\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(jQuery(\"body\").hasClass('catalog-product-view') ){\n recommendedWidgetOnClick();\n }\n setBundlePixel(id,url,button,ppriceid,trackparam);\n setMobileBundleAjaxData(data, id, false,button);\n if(jQuery(\"#checkout_mobile_config\").val() == 'yes') {document.location.href='/checkoutmobile';}\n rediMessage(element);\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function setbundleLocationAjax(url, id,tparam,wid,wishlist,element) {\n if (typeof(wishlist)==='undefined') wishlist = 0;\n var pincodesource = jQuery(\"#pincodesource\").val();\n if(url.indexOf('?') < 0){\n url += '?';\n }\n url += '&isAjax=1&check_param='+tparam+'&wid='+wid;\n if(pincodesource ==\"\" || pincodesource === undefined){\n }else{\n url +=\"&pincodesource=\"+pincodesource;\n }\n if( wishlist.wishlist == 1 ){ url += '&wishlist=1'; }\n else{\n switch (tparam) {\n case 'prod_people also bought':\n url += '&customeralsobought=yes';\n break;\n case 'catg_people also bought':\n url += '&listcustomerbought=yes';\n break;\n case 'prod_recentlyviewed':\n case 'catg_recentlyviewed':\n url += '&recentview=yes';\n break;\n case 'prod_customer+also+viewed':\n case 'prod_customer also viewed':\n url += '&cavdesktop=yes';\n break;\ndefault:\n break;\n }\n }\n url = url.replace(\"checkout/cart\", \"ajaxaddcart/index\");\n var qty = jQuery('.product_block_' + id + ' .qty').val();\n ajaxLoading();\n try {\n jQuery.ajax({\n url: url,\n type: 'post',\n dataType: 'json',\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if(tparam==\"wishlist\"){\n ajaxRemoveWishlist('', '0', '');\n }\n if(data.message !=\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\"){\n setAjaxData(data, false, id);\n }else if(data.message==\"This is a Nykaa PRO exclusive product. Please join PRO to avail this product.\" && data.status == 'ERROR'){\n if(wishlist){\n var image_pro_src = jQuery(\"#product-opt-\"+id).find('.product-image img').attr('src');\n }else if(tparam==\"prod_customer+also+viewed\" || tparam==\"prod_customer also viewed\"){\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.left-img-second img').attr(\"src\");\n }else{\n var image_pro_src = jQuery(\".addtocart_product_front_\"+id).find('.product-image img').attr('src');\n if(typeof image_pro_src === \"undefined\"){\n image_pro_src = jQuery(\".product-image img\").attr('src');\n }\n }\n lightbox(null, '/bulkbuyer/index/shownykaapropopup/imgsrc/'+btoa(image_pro_src)+'/prod_name/'+btoa(data.prod_name), 1);\n }\n if(data.status != 'ERROR'){\n\n\n if(jQuery(\"body\").hasClass('catalog-category-view')||jQuery(\"body\").hasClass('solr-result-index')){\n if((jQuery(element).parents('.listing-page-widget').length) || (tparam.search(\"catg_people\") >= 0)){}\n else{\n jQuery('.listing-page-widget').hide(1500);\n var widget_element = jQuery(element).closest('.n_prod_block').nextAll('.listing-page-widget').first();\n if(widget_element.length){}\n else{\n var widget_element = jQuery(element).closest('.bestseller-slider').nextAll('.listing-page-widget').first();\n }\n widget_element.animate({height:'0px'},1000,function(){recommendedWidgetOnClickList(element,id)});\n }\n }else if(jQuery(\"body\").hasClass('catalog-product-view') ){\n if((jQuery(element).closest('li.widget-sliderbox').length == 0)&&(jQuery(element).closest('#cbar_widget01').length == 0)){\n console.log(\"recommendedWidgetOnClick\");\n recommendedWidgetOnClick();\n }else{\n console.log(\"Not recommendedWidgetOnClick\");\n }\n }\n Unbxd.track(\"click\",{\"pid\": +id ,\"prank\":\"\"});\n Unbxd.track(\"addToCart\", {\"pid\": id});\n if(window.amo_tag_params==undefined)\n {\n window.amo_tag_params = {\n ut1 : data.itemids,\n ut2 : data.category,\n ut3 : data.brand,\n };\n }\n else{\n window.amo_tag_params['ut1'] = data.itemids;\n window.amo_tag_params['ut2'] = data.category;\n window.amo_tag_params['ut3'] = data.brand;\n window.amo_tag_params['flag'] = 'yes';\n }\n console.log(\"---------\"+window.amo_tag_params['ut1']);\n console.log(\"---------\"+window.amo_tag_params['ut2']);\n console.log(\"---------\"+window.amo_tag_params['ut3']);\n\n var ga_name = jQuery('#product-opt-'+id+' .ga_product_name').val();\n var ga_price = jQuery('#product-opt-'+id+' .ga_product_price').val();\n var ga_price = parseInt(ga_price);\n var cat_hn = jQuery('#product-opt-'+id).parents('.home-bestseller').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var cat_wn = jQuery('#product-opt-'+id).parents('.product_widget_slider_home').eq(0).find('.nykaa-choice a').text().replace(/'/g,\"\");\n var ppriceid = jQuery(\"#bundleviewprice_\"+id).val();\n if(ppriceid == undefined){\n var str = jQuery(\"#old-price-\"+id).html();\n if(typeof str != 'undefined'){\n ppriceid = str.replace(\"Rs. \", \"\");\n }\n }\n setBundlePixel(id,url,'',ppriceid,tparam);\n if(cat_hn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/hp/'+cat_hn,ga_price);\n } else if (cat_wn) {\n ga('send', 'event', 'Add to Cart',ga_name, 'post/category/'+cat_wn,ga_price);\n } else {\n ga('send', 'event', 'Add to Cart',ga_name, 'post',ga_price);\n }\n } else {\n ga('send', 'event', 'Checkout Error', 'Add to Cart', data.message);\n }\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n } catch (e) {\n }\n }\n\n function showMobileOptions(url, id, flag, obj) {\n var objId = jQuery(obj).parent().parent();\n if (jQuery(objId).find('#product_view_' + id).is(':hidden') && false) {\n\n jQuery(objId).find('img.discount-tag').hide();\n jQuery(objId).find('#product_view_' + id).show();\n jQuery(objId).find('.org_add').hide();\n jQuery(objId).find('.discount_offer_tag_label').hide();\n jQuery(objId).find('.nykaa-tags').hide();\n jQuery('.wishlist-id-' + id + '').hide();\n jQuery(objId).css({border: 'none'});\n } else {\n if (flag == 'notify') {\n url += 'outofstock/1';\n } else if (flag) {\n url += 'WishId/' + flag;\n }\n jQuery('#ajax_loader' + id).show();\n ajaxLoading();\n url += '?eq=mobile';\n jQuery.ajax({\n type: 'GET',\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n closeAjaxLoading();\n if (flag == 'notify') {\n lightbox(data, null, 2);\n jQuery('#lightbox').css('position', 'fixed');\n return;\n } else {\n jQuery('#ajax_loader' + id).hide();\n lightbox(data, null, 2);\n jQuery('#lightbox #closelb').remove();\n jQuery('body #lightbox').css('width', '300px !important');\n jQuery('body #lightbox').css('height', '300px !important');\n jQuery('#lightbox').css('position', 'fixed');\n jQuery(\"#shade-scrollbar .demooo\").mCustomScrollbar({\n live: true,\n liveSelector: '#shade-scrollbar .demooo',\n autoDraggerLength: true,\n advanced: {\n updateOnContentResize: true,\n updateOnImageLoad: false\n }\n });\n }\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n }\n\n function getNotifyForm(id) {\n jQuery('#outofstockSubscriptionOnCategory .product_subscr_id').val(id);\n lightbox(jQuery('#outofstockSubscriptionOnCategory').html(), null, null);\n }\n\n function outofstockSubscriptionOnCategory() {\n var validate = validateSubscrEmail(jQuery('#lightbox #subscription_email').val());\n if (!validate) {\n return false;\n }\n var p_id = jQuery('#lightbox .product_subscr_id').val();\n ga('send','event','Notify Me',p_id,'Category Page');\n var url = '/ajaxaddcart/index/outofStockSubscription/';\n var req_data = 'subscription_email=' + jQuery('#lightbox #subscription_email').val();\n req_data += '&product=' + jQuery('#lightbox .product_subscr_id').val();\n req_data += '&isAjax=1';\n if (!jQuery('#lightbox .product_subscr_id').val()) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('Please Select Shade.');\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n return;\n }\n jQuery.ajax({\n type: 'POST',\n data: req_data,\n dataType: \"json\",\n url: url,\n beforeSend: function () {\n pace.on();\n },\n success: function (data) {\n if (data.error) {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('error-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n } else {\n try\n {\n _taq.events.push(['notifyme',{'product_id':data.product_id ,'email':data.email ,'device':\"desktop\" , 'product_name':data.product_name ,'Associated_categories':data.associated_categories, 'Associated_brand':data.associated_brand , 'MRP':data.mrp , 'selling_price':data.selling_price }]);\n }catch(err){}\n jQuery('#lightbox #subscription_email').val('');\n jQuery('#lightbox #ajax_msg_blck .aj_msg').addClass('success-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text(data.message);\n setTimeout(function () {\n jQuery('#lightbox #ajax_msg_blck .aj_msg').removeClass('successf-msg');\n jQuery('#lightbox #ajax_msg_blck .aj_msg ul li span').text('');\n jQuery('#lightbox #ajax_msg_blck').hide('slow');\n }, 3000);\n }\n jQuery('#lightbox #ajax_msg_blck').show('slow');\n },\n error: function () {\n },\n complete: function () {\n pace.off();\n pace.init();\n }\n });\n }\n\n\r\njQuery(window).load(function(){\r\n\r\n//jQuery ('body').addClass('catalog-category-view'); \r\n//jQuery ('body').addClass('luxury'); \r\n\r\nif(jQuery('.newluxecss.luxury').length > 0){\r\n var star_off = jQuery(\"#star-off img\");\r\n star_off.attr('src', '/skin/frontend/nykaa/theme202/images/star-off-luxury.svg');\r\n var star_on = jQuery(\"#star-on img\");\r\n star_on.attr('src', '/skin/frontend/nykaa/theme202/images/star-on-luxury.svg');\r\n }else{\r\n var star_off = jQuery(\"#star-off img\");\r\n star_off.attr('src', '/skin/frontend/nykaa/theme202/images/star-off.svg');\r\n var star_on = jQuery(\"#star-on img\");\r\n star_on.attr('src', '/skin/frontend/nykaa/theme202/images/star-on.svg');\r\n }\r\n\r\n\r\n\r\n\r\n});\r\n\r\n jQuery('.slider').slick({\r\n slidesToShow: 1,autoplay:true,\r\n dots:true,\r\n slide: 'li',\r\n arrows:false,\r\n });\r\n jQuery('.product_list_ul').slick({\r\n slidesToShow: 3,\r\n dots:false,\r\n slide: 'li',\r\n arrows:true,\r\n responsive: [\r\n {\r\n breakpoint: 1024,\r\n settings: {\r\n arrows: true,\r\n centerMode: true,\r\n centerPadding: '0px',\r\n slidesToShow: 4\r\n }\r\n },\r\n {\r\n breakpoint: 480,\r\n settings: {\r\n arrows: true,\r\n centerMode: true,\r\n centerPadding: '0px',\r\n slidesToShow: 2\r\n }\r\n },\r\n {\r\n breakpoint: 320,\r\n settings: {\r\n arrows: true,\r\n centerMode: true,\r\n centerPadding: '0px',\r\n slidesToShow: 2\r\n }\r\n }\r\n ]\r\n});\r\n\r\ndocument.addEventListener(\"DOMContentLoaded\",\r\n function() {\r\n var div, n,\r\n v = document.getElementsByClassName(\"youtube-player\");\r\n for (n = 0; n < v.length; n++) {\r\n div = document.createElement(\"div\");\r\n div.setAttribute(\"data-id\", v[n].dataset.id);\r\n div.innerHTML = labnolThumb(v[n].dataset.id);\r\n div.onclick = labnolIframe;\r\n v[n].appendChild(div);\r\n }\r\n });\r\n function labnolThumb(id) {\r\n var thumb = '',\r\n play = '';\r\n return thumb.replace(\"ID\", id) + play;\r\n }\r\n function labnolIframe() {\r\n var iframe = document.createElement(\"iframe\");\r\n var embed = \"https://www.youtube.com/embed/ID?autoplay=1&enablejsapi=1&loop=1&playlist=\"+this.dataset.id;\r\n iframe.setAttribute(\"src\", embed.replace(\"ID\", this.dataset.id));\r\n iframe.setAttribute(\"frameborder\", \"0\");\r\n iframe.setAttribute(\"allowfullscreen\", \"1\");\r\n this.parentNode.replaceChild(iframe, this);\r\n }\r\n \r\njQuery(function() {\r\n jQuery('a[href*=\"#\"]:not([href=\"#\"])').click(function() {\r\n if (location.pathname.replace(/^\\//,'') == this.pathname.replace(/^\\//,'') && location.hostname == this.hostname) {\r\n var target = jQuery(this.hash);\r\n target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']');\r\n if (target.length) {\r\n jQuery('html, body').animate({\r\n scrollTop: target.offset().top-85\r\n }, 1000);\r\n tt = target.attr('id');\r\n ga('send', 'event', 'Sale', 'Jump to', tt);\r\n return false;\r\n }\r\n }\r\n });\r\n});\r\n\r\n/**\r\n * SMK Accordion jQuery Plugin v1.3\r\n * ----------------------------------------------------\r\n * Author: Smartik\r\n * Author URL: http://smartik.ws/\r\n * License: MIT\r\n */\r\n;(function ( $ ) {\r\n\r\n $.fn.smk_Accordion = function( options ) {\r\n \r\n if (this.length > 1){\r\n this.each(function() { \r\n $(this).smk_Accordion(options);\r\n });\r\n return this;\r\n }\r\n \r\n // Defaults\r\n var settings = $.extend({\r\n animation: true,\r\n showIcon: true,\r\n closeAble: false,\r\n closeOther: true,\r\n slideSpeed: 150,\r\n activeIndex: false\r\n }, options );\r\n\r\n if( $(this).data('close-able') ) settings.closeAble = $(this).data('close-able');\r\n if( $(this).data('animation') ) settings.animation = $(this).data('animation');\r\n if( $(this).data('show-icon') ) settings.showIcon = $(this).data('show-icon');\r\n if( $(this).data('close-other') ) settings.closeOther = $(this).data('close-other');\r\n if( $(this).data('slide-speed') ) settings.slideSpeed = $(this).data('slide-speed');\r\n if( $(this).data('active-index') ) settings.activeIndex = $(this).data('active-index');\r\n\r\n // Cache current instance\r\n // To avoid scope issues, use 'plugin' instead of 'this'\r\n // to reference this class from internal events and functions.\r\n var plugin = this;\r\n\r\n //\"Constructor\"\r\n var init = function() {\r\n plugin.createStructure();\r\n plugin.clickHead();\r\n }\r\n\r\n // Add .smk_accordion class\r\n this.createStructure = function() {\r\n\r\n //Add Class\r\n plugin.addClass('smk_accordion');\r\n if( settings.showIcon ){\r\n\r\n plugin.addClass('acc_with_icon');\r\n }\r\n\r\n //Create sections if they were not created already\r\n if( plugin.find('.accordion_in').length < 1 ){\r\n plugin.children().addClass('accordion_in');\r\n }\r\n\r\n //Add classes to accordion head and content for each section\r\n plugin.find('.accordion_in').each(function(index, elem){\r\n var childs = $(elem).children();\r\n $(childs[0]).addClass('acc_head');\r\n $(childs[1]).addClass('acc_content');\r\n });\r\n \r\n //Append icon\r\n if( settings.showIcon ){\r\n plugin.find('.acc_head').prepend('');\r\n }\r\n\r\n //Hide inactive\r\n plugin.find('.accordion_in .acc_content').not('.acc_active .acc_content').hide();\r\n\r\n //Active index\r\n if( settings.activeIndex === parseInt(settings.activeIndex) ){\r\n if(settings.activeIndex === 0){\r\n plugin.find('.accordion_in').addClass('acc_active').show();\r\n plugin.find('.accordion_in .acc_content').addClass('acc_active').show();\r\n }\r\n else{\r\n plugin.find('.accordion_in').eq(settings.activeIndex - 1).addClass('acc_active').show();\r\n plugin.find('.accordion_in .acc_content').eq(settings.activeIndex - 1).addClass('acc_active').show();\r\n }\r\n }\r\n \r\n }\r\n\r\n // Action when the user click accordion head\r\n this.clickHead = function() {\r\n\r\n plugin.on('click', '.acc_head', function(){\r\n \r\n var s_parent = $(this).parent();\r\n \r\n if( s_parent.hasClass('acc_active') == false ){\r\n if( settings.closeOther ){\r\n plugin.find('.acc_content').slideUp(settings.slideSpeed);\r\n plugin.find('.accordion_in').removeClass('acc_active');\r\n } \r\n }\r\n\r\n if( s_parent.hasClass('acc_active') ){\r\n if( false !== settings.closeAble ){\r\n s_parent.children('.acc_content').slideUp(settings.slideSpeed);\r\n s_parent.removeClass('acc_active');\r\n }\r\n }\r\n else{\r\n $(this).next('.acc_content').slideDown(settings.slideSpeed);\r\n s_parent.addClass('acc_active');\r\n }\r\n\r\n });\r\n\r\n }\r\n\r\n //\"Constructor\" init\r\n init();\r\n return this;\r\n\r\n };\r\n\r\n\r\n}( jQuery ));\r\n \r\n jQuery(document).ready(function($){\r\n\r\n jQuery(\".accordion_example1\").smk_Accordion();\r\n\r\n jQuery(\".accordion_example2\").smk_Accordion({\r\n closeAble: true, //boolean\r\n activeIndex: 1 //second section open\r\n });\r\n\r\n jQuery(\".accordion_example3\").smk_Accordion({\r\n showIcon: false, //boolean\r\n });\r\n\r\n jQuery(\".accordion_example4\").smk_Accordion({\r\n closeAble: true, //boolean\r\n closeOther: false, //boolean\r\n });\r\n\r\n jQuery(\".accordion_example5\").smk_Accordion({closeAble: true});\r\n\r\n jQuery(\".accordion_example6\").smk_Accordion();\r\n \r\n jQuery(\".accordion_example7\").smk_Accordion({\r\n activeIndex: 2 //second section open\r\n });\r\n jQuery(\".accordion_example8, .accordion_example9\").smk_Accordion();\r\n\r\n\r\n // Demo text. Let's save some space to make the code readable. ;)\r\n jQuery('.acc_content').not('.nodemohtml').html('
Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Fusce aliquet neque et accumsan fermentum. Aliquam lobortis neque in nulla tempus, molestie fermentum purus euismod.
We are setting up the Pink Friday Sale especially for you. We'll notify you once it's ready.
","block_percentage":0,"error_img_url":"https://adn-static1.nykaa.com/media/wysiwyg/2024/VP/Nov/wwrb-mob.jpg","ruleID":"hahaajhhjsdsssadadkk","state":0,"webEnable":1,"webWhitelistPrive":false,"web_api_mapping":{},"web_apis":["fe-api/omsApis/v1/orderList","gateway-api/omsApis/v1/orderList"]},"visitor_prioritization":{"comment":"This is added for webview implementation, not being used any where else","attributedTitle":"
We caught you in the middle of the Sale!
We are setting up the Pink Friday Sale especially for you. We'll notify you once it's ready.
","error_img_url":"https://images-static.naikaa.com/media/wysiwyg/uiTools/2023-11/Visitor-Prioritisation_M1.png","enabled":false,"MSITE":{"state":0,"status":1,"block_percentage":0,"webWhitelistPrive":false,"web_apis":[]},"WEBSITE":{"state":0,"status":1,"block_percentage":1,"webWhitelistPrive":false,"web_apis":[]},"ANDROID":{"state":0,"status":1,"block_percentage":1,"webWhitelistPrive":false,"minimumSupportedVersion":"3.0.20","web_apis":[]},"IOS":{"state":0,"status":1,"block_percentage":1,"webWhitelistPrive":false,"minimumSupportedVersion":"3.0.20","web_apis":[]}}}};
window.langConfig = {"en":{"REMOVE_ITEM_FROM_BAG":"Remove Item from Bag?","SELECT_QUANTITY":"Select Quantity","VIEW_COUPONS":"View Coupons","DYNAMIC_REWARD_POINTS":"{count} Reward Points on new registration","LOGIN_OR_REGISTER":"Login / Register","PAYMENT_DETAILS":"Payment Details","BAG_TOTAL":"Bag Total","SUB_TOTAL":"Sub Total","SHIPPING_CHARGE":"Shipping Charge","GRAND_TOTAL":"Grand Total","HAVE_COUPON":"Have a coupon?","HAVE_A_COUPON":"Have a coupon?","ENTER_COUPON":"Enter coupon","APPLY":"Apply","SELECT_SHIPPING_ADDRESS":"Select shipping Address","SELECT_COUNTRY":"Select Country","NAME":"Name","EMAIL":"Email","MOBILE_NUMBER":"Mobile Number","POSTAL_CODE":"Postal Code","ADDRESS":"Address","SHIP_TO_THIS_ADDRESS":"SHIP TO THIS ADDRESS","CREDIT_DEBIT_CARD":"CREDIT/DEBIT CARD","BHIM_UPI":"UPI","GOOGLE_PAY":"Google Pay","NETBANKING":"NETBANKING","MOBILE_WALLETS":"MOBILE WALLETS","CASH_ON_DELIVERY":"CASH ON DELIVERY","REDEEM_GIFT_CARD":"REDEEM GIFT CARD!","USE_DIGITAL_PAYMENT_METHOD":"Please use a digital payment method & help us ensure contactless delivery for your safety","DYNAMIC_OFFER_AVAILABLE":"{count} offer available","DYNAMIC_OFFER_APPLIED":"{count} offer applied","SHIPPING_ADDRESS":"Shipping Address","CHANGE":"CHANGE","YOUR_FAVOURITE_PAYMENT_METHODS":"YOUR FAVOURITE PAYMENT METHODS","OTHER_PAYMENT_METHODS":"OTHER PAYMENT METHODS","PAY_NOW":"Pay Now","DYNAMIC_PAY_BY_CASH":"PAY {count} BY CASH","DYNAMIC_PAY_NOW":"PAY {count} NOW","ORDER_CONFIRMED":"Order Confirmed!","WE_ARE_PLEASED_TO_CONFIRM_YOUR_ORDER_NUMBER":"We are pleased to confirm your order no.","AMOUNT_DUE":"Amount Due","YOU_WILL_RECIEVE_UPDATE_ON":"You Will Receive Updates On","PAYMENT_METHODS":"Payment Methods","PRODUCTS_IN_THIS_PURCHASE":"Products In This Purchase","SUB_TOTAL_INCLUDED_TAX":"Subtotal (Incl. Tax)","DISCOUNT":"Discount","NET_SAVINGS":"Net Savings","CONFIRMATION":"Confirmation","SAVED_ADDRESSES":"Saved Addresses","NEW_ADDRESS":"New Address","EDIT":"EDIT","ARE_YOU_SURE_WANT_TO_REMOVE_THIS_ADDRESS":"ARE YOU SURE YOU WANT TO REMOVE THIS ADDRESS?","CANCEL":"CANCEL","REMOVE":"Remove","PROCEED":"Proceed","DYNAMIC_PERCENTAGE_OFF":"{count}% off","FREE":"Free","DYNAMIC_ITEMS_IN_YOUR_BAG":"{count} Items in your bag","DYNAMIC_PAY_THROUGH_PAYTM":"Pay {count} Through Paytm","SUBMIT":"Submit","REQUIRED":"Required","CARD_NUMBER":"Card Number","INVALID_CARD_NUMBER":"Card number is not valid.","INVALID_CVV":"Not a valid CVV","INVALID_YEAR":"Invalid Year","INVALID_MONTH":"Invalid month","PHONE_NUMBER_NOT_VALID":"PHONE NUMBER NOT VALID","PROCEED_TO_PAY":"Proceed to Pay","SELECT_ADDRESS_AND_PAY":"Select Address & Pay","DYNAMIC_PAYMENT_RS":"Payment Rs {count}","BAG_DISCOUNT":"Bag Discount","DYNAMIC_DISCOUNT":"Discount {count}","DYNAMIC_SHIPPING_CHARGE":"Shipping Charge of Rs.{shippingCharge} will apply on subtotal below Rs.{shippingLimit}","DYNAMIC_SHIPPING_CHARGE_FREE":"Shipping over order of Rs. {shippingLimit} is free","GIFT_CARD_VALUE":"Gift Card Value","GIFT_CARD_NUMBER":"Gift Card Number","GIFT_CARD_PIN":"Pin","PHONE_NUMBER":"Phone Number","MOBILE_NUMBER_OR_GPAY_ID":"Enter Mobile Number/Google Pay UPI ID ","GIFT_CARD_BALANCE":"Gift Card Balance","NYKAA_WALLET_USED":"Nykaa Wallet Used","AMOUNT_PAYABLE":"Amount Payable","PLACE_ORDER":"Place Order","SEND_PAYMENT_REQUEST":"SEND PAYMENT REQUEST","CONNECT_PAYTM":"Connect Paytm","CONNECT_TO_ONE_CLICK_PAYTM":"Connect Your Paytm Account to Enable One-Click Payment","NOTE_CONNECT_TO_ONE_CLICK_PAYTM":"Note: Connect Your Paytm Account to Enable One-Click Payment","OTHER_BANKS":"OTHER BANKS","SELECT_YOUR_BANK":"Select your bank","PAY_WITH_ANY_UPI_APP":"Pay with any UPI App you have on your phone","UPI_INTENT_REDIRECT_TO_PAYU":"You will be redirected to PayU’s payment page to complete the payment","DYNAMIC_OPEN_APP_OR_TAP":"OPEN {title} or tap on the payment request notification","DYNAMIC_OPEN_MOBILE_APP_LINKED":"Open Mobile App linked with {count}","CHECK_FOR_PAYMENT_REQUEST":"Check for “Payment Request”","CHECK_FOR_NYKAA_PAYMENT_REQUEST":"Check for “Payment Request” from NYKAA E RETAIL PRIVATE LIMITED","COMPLETE_UPI_PAYMENT":"Complete the payment entering UPI PIN","NOTE_FOR_UPI_PAYMENT":"NOTE: If you have entered UPI ID of a friend or relative they will have to approve payment using their UPI linked App","DYNAMIC_UPI_PAYMENT_EXPIRE_MSG":"This payment request will automatically expire in {count} minutes","RESEND_REQUEST":"Resend Request","DYNAMIC_SELECT_ADDRESS_AND_PAY":"Select Address & Pay Rs {count}","SHOPPING_BAG":"Shopping Bag","DYNAMIC_ShOPPING_BAG":"SHOPPING BAG {item_count}","PICK_YOUR_FREE_PRODUCT":"PICK YOUR FREE PRODUCT","PICKED":"Picked","DYNAMIC_APPLY_REWARD_POINTS":"{rewardPoints} Reward Points Rs{rewardRupees}","QUANTITY":"Quantity","DONE":"Done","WITHOUT_FREEBIES":"Without Freebies","EXPIRES_ON":"EXPIRES ON","USES_LEFT":"USES LEFT","FETCHING_COUPONS":"Fetching coupons","APPLYING_COUPON":"Applying coupon","NO_COUPONS_AVAILABLE":"No coupon available","DYNAMIC_COUPON_APPLIED_SUCCESSFULLY":"coupon code {couponcode} is applied successfully","DYNAMIC_REWARD_POINT_ON_NEW_REGISTERATION":"2000 Reward Points on new registration","ADD_TO_BAG":"ADD TO BAG","START_SHOPPING":"Start Shopping","YOUR_SHOPPING_BAG_IS_EMPTY":"Your Shopping Bag is empty","DYNAMIC_INTERNATIONAL_SHIPPING_CHARGE":"A shipping charge of Rs{shippingCharge} will be applied on orders below Rs{shippingLimit} for delivery outside India","USE_THIS_AS_MY_DEFAULT_SHIPPING_ADDRESS":"Use this as my default shipping address","SELECT_ADDRESS":"Select Address","SELECT_COUNTRY_OF_SHIPPING":"Select country of shipping","UNLIMITED":"Unlimited","INCLUDE_TAX":"(Incl. Tax)","TIP":"TIP :","ADD_IT_TO_YOUR_WISHLIST_TO_PURCHASE_IT_LATER":"Add it to your wishlist to purchase it later!","YES":"Yes","NO":"No","RESTORE_BAG":"Restore Bag","DYNAMIC_NO_DONT_WANT_FREEBIES":"NO I DON’T WANT {count} FREEBIES","NYKAA_WALLET":"NYKAA WALLET","EDIT_ADDRESS":"Edit Address","REMOVE_COUPON":"Remove Coupon","REMOVE_COUPON_NOTE":"To use other payment options kindly remove coupon","EMPTY_EXPIRY_DATE_OR_CVV_EMPTY":"If there is no expiry date or cvv on your card leave the fields blank.","SAVE_THIS_CARD_FOR_FUTURE":"Save this as per RBI guidelines","OUT_OF_STOCK":"Out of stock","QTY":"Qty","APPLIED":"Applied","VIEW_PRODUCTS":"View products","OKAY_GOT_IT":"OKAY, GOT IT","COULD_NOT_LOAD_OFFER_MESSAGE":"Could not load offer details, please try again…","OFFER_IS_NOT_AVAILABLE_ANYMORE_MESSAGE":"The offer you are looking for is not available anymore","ADD_TO_WISHLIST":"Add To Wishlist","VIEW":"View","AVAILABLE_BALANCE":"Available Balance","DYNAMIC_NOT_ENOUGH_BALANCE_IN_PAYTM":"You Don’t have Enough Balance to complete this transanction. Add ₹ {count} to Paytm Account to Continue","ENTER_PAYTM_AMOUNT":"Enter Amount (Max 10000)","ADD_PAYTM_BALANCE":"Add Paytm balance","LAST_USED_PAYMENT_METHOD":"LAST USED PAYMENT METHOD","LAST_DIGIT_IN_BACK_OF_THE_CARD":"Last cvvLength Digits at the back of the Card","DYNAMIC_PAY_NOW_WITH_STRIKED_AMOUNT":"PAY ₹{oldAmount} ₹{newAmount} NOW","DYNAMIC_SELECT_APP_TO_PAY_NOW_WITH_STRIKED_AMOUNT":"SELECT APP TO PAY ₹{oldAmount} ₹{newAmount} NOW","DYNAMIC_SELECT_APP_TO_PAY_NOW":"SELECT APP TO PAY ₹{count} NOW","OFFERS_TAG":"OFFERS","FOR_SECURITY_REASON_VERIFY_YOUR_NUMBER":"For security reasons we recommend you verify your phone number.","VERIFY_YOUR_NUMBER":"VERIFY YOUR NUMBER","WE_PROMISE_NOT_TO_SEND_ANY_SPAM":"We promise we would not send any spam.","YOU_HAVE_UNLOCKED_A_COUPON":"YOU HAVE UNLOCKED A COUPON","CHARGE":"Charge","ADDED_TO_BAG":"ADDED TO BAG","INVALID_EMAIL":"Not a valid email","INVALID_PHONE_NUMBER":"Phone Number not valid","DYNAMIC_DISCOUNT_OFF":"{count} off","INVALID_PINCODE":"Not a valid pincode","OR":"OR","AND_MORE":"And more","REQUEST_OTP":"REQUEST OTP","RESEND_OTP":"Resend OTP","THIS_FIELD_IS_REQUIRED":"This field is required","ADDRESS_MIN_CHARS":"Address should have at least 5 characters","NAME_MIN_CHARS":"Name should have at least three characters","NAME_MAX_CHARS":"Name should have maximum of 100 characters","SOMETHING_WENT_WRONG":"SOMETHING WENT WRONG","UPI_ADDRESS_NOT_VALID":"UPI ADDRESS NOT VALID","PAYMENT_FAILED":"PAYMENT FAILED","SERVER_ERROR":"SERVER ERROR","COMPLETE_YOUR_PAYMENT":"Complete your payment","DIDNOT_RECIEVED_REQUEST_OR_TIME_UP":"In case you have not received the request, or the time is up, you can","OFFER_APPLIED":"OFFER APPLIED","DYNAMIC_UP_TO_PERCENTAGE_OFF":"UP TO {count}% OFF","DYNAMIC_UP_TO_DISCOUNT_OFF":"UP TO {count} OFF","INVALID_INPUT_PLEASE_RETRY":"Invalid input. Please retry","UPI_SUBTITLE":"Pay by any UPI app","UPI_INFO_BOTTOM_SHEET_TITLE":"Where can I find my UPI Id","SELECT_UPI_TITLE":"1. Select UPI App","ENTER_UPI_TITLE":"2. Enter UPI/VPA Id","APPROVE_REQUEST_BEFORE_TIMER_END":"Approve request before timer ends","HOW_IT_WORKS":"How it works ?","UPI_PAYMENT_REQUEST_NOTE":"Note: If you have entered the UPI Id of a friend or family member, they will have to approve the payment using the UPI app on their phone","SURE_TO_CANCEL_TRANSACTION":"Are you sure you want to cancel transaction?","CANCEL_PAYMENTS":"Cancel Payment","COMPLETE_PAYMENT_REQUEST":"Complete the payment by accepting the request & entering your UPI pin","PAYMENT_COMPLETE_WARNING_NOTE":"Note: If you have entered the UPI Id of a friend or family member, they will have to approve the payment using the UPI app on their phone","SURE_TO_CANCEL_PAYMENT_NOTE":"The payment request will only get cancelled if you don't complete the transaction on your UPI app","CHECK_COLLECT_REQUEST_FROM_NYKAA":"Check the collect request from Nykaa in your pending transactions linked in the app","YES_CANCEL":"Yes, cancel","GOT_IT":"Got it!","OTHER_PAYMENT_OPTIONS_TITLE":"More Ways to Pay","OTHER_PAYMENT_OPTIONS_SUBTITLE":"COD, UPI, Cards & More","CREDIT_DEBIT_CARD_TITLE":"Credit/Debit Card","CREDIT_DEBIT_CARD_SUBTITLE":"Visa, Mastercard, Rupay & more","NETBANKING_TITLE":"Net Banking","NETBANKING_SUBTITLE":"Pay through your favourite bank","NYKAA_WALLET_TITLE":"Nykaa Wallet","CASH_ON_DELIVERY_TITLE":"Cash On Delivery","CASH_ON_DELIVERY_SUBTITLE":"Pay at your doorstep","DYNAMIC_RESEND_OTP":"Resend OTP in {timer}","PAYTM_WALLET_TITLE":"Paytm Wallet","PAYTM_WALLET_SUBTITLE":"Pay with wallet money","AMOUNT":"Amount","LINK_PAYTM_WALLET":"Link Paytm Wallet","CONFIRM_OTP":"Confirm OTP","ADD_MONEY":"Add Money","LINK":"Link","DYNAMIC_PAYTM_WALLET_VERIFY_NUMBER":"To use your paytm wallet, kindly verify your mobile number {number}","DYANMIC_PAYTM_LOW_BALANCE":"Low Balance you need to add {amount} more in your account","GOOGLE_PAY_TITLE":"Google Pay","GOOGLE_PAY_SUBTITLE":"Easiest Upi Option","GIFT_CARD_TITLE":"Gift Card","GIFT_CARD_SUBTITLE":"One card for all Nykaa apps","SELECT_PAYMENT_OPTION":"Select Payment Option","DYNAMIC_PAY":"Pay ₹{count}","WALLET_DYNAMIC_PAY":"Adding ₹{count} to Nykaa Wallet","DYNAMIC_PAY_WITH_STRIKED_AMOUNT":"Pay ₹{newAmount} ₹{oldAmount}","GIFT_CARD_OTHER_PAYMENT_MESSAGE":"Complete the rest of the payment with other payment options","OTHER_BANK":"Other Bank","GIFT_CARD_VALUE_USED":"Gift Card Value Used","EMI_TITLE":"EMI","EMI_SUBTITLE":"Easy Installment Options","NO_COST_EMI":"No Cost EMI","ZEST_MONEY_TITLE":"ZestMoney","ZEST_MONEY_SUBTITLE":"Buy Now and Pay Later","EXPIRY":"Expiry (MM/YY)","CVV":"CVV","CVV_INFO_SUB_TITLE1":"MasterCard/ Visa/ Diners Club/Rupay","CVV_INFO_SUB_TITLE2":"Amex Cards","OTHER_UPI":"Other UPI","TAP_ON_PROFILE_ICON":"2. Tap on the profile icon","TAP_ON_PROFILE_ICON_LEFT":"2. Tap on the profile icon on the top left","TAP_ON_PROFILE_ICON_RIGHT":"2. Tap on the profile icon on the top right","FIND_UPI_ID":"3. Find UPI id on the top","FIND_PHONEPE_UPI_ID":"3. Go to My UPI ID to find your UPI ID","DYNAMIC_WHERE_CAN_FIND_UPI_ID":"Where can I find my {appName} UPI Id","DYNAMIC_OPEN_YOUR_APP":"1. Open your {appName} App","WE_ACCEPT":"WE ACCEPT","WANT_TO_USE_ANOTHER_PAYMENT_METHOD":"Want to use another payment method?","WHAT_IS_CVV":"What is a CVV?","CVV_INFO_TEXT1":"Turn your card over and look at the signature box. This 3-digit code is your CVV number","CVV_INFO_TEXT2":"A 4-digit number on the front, just above your credit card number is your CVV","CHANGES_NOT_SAVED":"You will lose all unsaved changes.","CHANGES_NOT_SAVED_CONTENT":"Do you want to save before leaving?","DONT_SAVE":"Don't Save","PINCODE_BOTTOM_SHEET_TITLE":"Pincode you entered is not serviceable","ADDRESS_BOTTOM_SHEET_TITLE":"Selected address is not serviceable","AREA_MIN_CHARS":"Area should have at least 5 characters","HOUSE_MIN_CHARS":"House should have at least 1 characters","TOTAL_AMOUNT":"Total Amount","REWARD_POINTS":"Reward Points","YOU_PAY":"You Pay","SHIPPING":"Shipping","OFFER_NAME":"Offer Name","DISCOUNT_PRICE":"Discount Price","TOTAL_DISCOUNT":"Total Discount","PRICE_DETAILS":"Price Details","DYNAMIC_REWARD_MESSAGE":"Yay! You will earn {rewardPointsRecieve} Reward points","DYNAMIC_BAG_MRP":"Bag MRP ({itemCount} items)","DYNAMIC_COUPON_CODE":"Coupon: {couponCode}","DYNAMIC_YOU_ARE_SAVING":"You are saving ₹{totalSaved}","KNOW_MORE_TITLE":"New RBI Guidelines for Online Transactions","KNOW_MORE_SUB_TITLE":"Know this to secure cards & payments","CARD_NOT_SECURED_TEXT":"Secure your card as per RBI guidelines","PAYMENT_SECURITY_TEXT":"Get an upgraded payment security for all online transactions","CARD_NUMBER_DETAILS_TEXT":"Avoid entering card details before each online transactions","ACTION_BUTTON":"Okay","SUBMIT_CONSENT_TITLE":"New RBI Guidelines for Online Transactions","SUBMIT_CONSENT_SUB_TITLE":"Know this to secure cards & payments","SUBMIT_CARD_NOT_SECURED_TEXT":"Secure your card as per RBI guidelines","SUBMIT_PAYMENT_SECURITY_TEXT":"Get an upgraded payment security for all online transactions","SUBMIT_CARD_NUMBER_DETAILS_TEXT":"Avoid entering card details before each online transactions","SUBMIT_ACTION_BUTTON":"Secure Card and pay","SUBMIT_DISMISS_BUTTON":"Pay without securing card","OLD_SAVE_THIS_CARD_FOR_FUTURE_TEXT":"Save this card securely for future","CONSENT_KNOW_MORE":"Know More","DYNAMIC_PAY_WITH_VERIFY":"Verify & Pay ₹{count}","DYNAMIC_PAY_WITH_STRIKED_AMOUNT_AND_VERIFY":"Verify & Pay ₹{newAmount} ₹{oldAmount}","UPI_TOP_SUBTITLE_MESSAGE":"Hey! {payerAccountName} approve request before the timer ends","DYNAMIC_REWARD_POINTS_WILL_BE_CREDITED_ON_ORDER_DELIVERY":"{rewardPoints} Reward Points will be credited on order delivery","SHOP_NOW_PAY_LATER_SUBTITLE":"Simpl","CASH_HANDLING_FEE":"Cash Handling Fee","CASH_HANDLING_FEE_MESSAGE":"This fee is charged to provide you with the convenience of paying at your doorstep. This fee will be non-refundable in case of returns.","DYNAMIC_COD_HANDLING_TEXT":"A ₹{codHandlingCharge} cash handling fee will be charged on this order.","DYNAMIC_COD_HANDLING_CTA_TEXT":" Switch to prepaid method, save ₹{codHandlingCharge} "},"hi":{"REMOVE_ITEM_FROM_BAG":"बैग से आइटम को निकाल दें?","SELECT_QUANTITY":"क्वान्टिटी चुनें","VIEW_COUPONS":"कूपन देखें","DYNAMIC_REWARD_POINTS":"नए रजिस्ट्रेशन पर {count} रिवॉर्ड पॉइंट","LOGIN_OR_REGISTER":"लॉग इन / रजिस्टर करें","PAYMENT_DETAILS":"पेमेंट की जानकारी","BAG_TOTAL":"बैग टोटल","SUB_TOTAL":"उप-योग","SHIPPING_CHARGE":"डिलीवरी चार्ज","GRAND_TOTAL":"कुल योग","HAVE_COUPON":"क्या आपके पास कूपन कोड है?","HAVE_A_COUPON":"क्या आपके पास कूपन कोड है?","ENTER_COUPON":"कूपन दर्ज करें","APPLY":"लागू करें","SELECT_SHIPPING_ADDRESS":"डिलीवर करने का पता चुनें","SELECT_COUNTRY":"देश चुनें","NAME":"नाम","EMAIL":"ईमेल","INVALID_EMAIL":"ईमेल मान्य नहीं है","MOBILE_NUMBER":"मोबाइल नंबर","POSTAL_CODE":"डाक कोड","INVALID_PINCODE":"पिन कोड मान्य नहीं है","ADDRESS":"पता","SHIP_TO_THIS_ADDRESS":"इस पते पर शिप करें","CREDIT_DEBIT_CARD":"क्रेडिट/डेबिट कार्ड","BHIM_UPI":"BHIM UPI","GOOGLE_PAY":"Google Pay","NETBANKING":"नेट बैंकिंग","MOBILE_WALLETS":"मोबाइल वॉलेट","CASH_ON_DELIVERY":"कैश ऑन डिलीवरी","REDEEM_GIFT_CARD":"गिफ्ट कार्ड रिडीम करें!","USE_DIGITAL_PAYMENT_METHOD":"कृपया किसी डिजिटल भुगतान विधि का इस्तेमाल करें और आपकी सुरक्षा के मद्देनज़र दूरी बनाए रखते हुए डिलीवरी करने मैं हमारी मदद करें","DYNAMIC_OFFER_AVAILABLE":"{count} ऑफ़र उपलब्ध है","DYNAMIC_OFFER_APPLIED":"{count} ऑफ़र लागू किया गया","SHIPPING_ADDRESS":"डिलीवरी पता","CHANGE":"बदलें","YOUR_FAVOURITE_PAYMENT_METHODS":"आपके पसंदीदा पेमेंट तरीके","OTHER_PAYMENT_METHODS":"पेमेंट के अन्य तरीके","PAY_NOW":"अभी पेमेंट करें","DYNAMIC_PAY_BY_CASH":"कैश द्वारा {count} का पेमेंट करें","DYNAMIC_PAY_NOW":"अभी {count} का पेमेंट करें","ORDER_CONFIRMED":"ऑर्डर कन्फ़र्म किया गया!","WE_ARE_PLEASED_TO_CONFIRM_YOUR_ORDER_NUMBER":"हमें आपका यह ऑर्डर नंबर कन्फ़र्म करके खुशी मिली","AMOUNT_DUE":"देय राशि","YOU_WILL_RECIEVE_UPDATE_ON":"आपको इस पर अपडेट मिलेंगे","PAYMENT_METHODS":"भुगतान विधि","PRODUCTS_IN_THIS_PURCHASE":"इस खरीदारी में शामिल प्रोडक्ट","SUB_TOTAL_INCLUDED_TAX":"उप-योग (VAT के साथ)","DISCOUNT":"छूट","NET_SAVINGS":"कुल बचत","CONFIRMATION":"पुष्टीकरण","SAVED_ADDRESSES":"सेव किए गए पते","NEW_ADDRESS":"नया पता","EDIT":"बदलें","ARE_YOU_SURE_WANT_TO_REMOVE_THIS_ADDRESS":"क्या आप वाकई यह पता हटाना चाहते हैं?","CANCEL":"रद्द करें","REMOVE":"बाहर करें","PROCEED":"आगे बढ़ें","DYNAMIC_PERCENTAGE_OFF":"{count}% की छूट","FREE":"मुफ़्त","DYNAMIC_ITEMS_IN_YOUR_BAG":"आपके बैग में {count} आइटम","DYNAMIC_PAY_THROUGH_PAYTM":"Paytm से {count} का पेमेंट करें","SUBMIT":"सबमिट करें","REQUIRED":"ज़रूरी","CARD_NUMBER":"कार्ड नंबर","INVALID_CARD_NUMBER":"कार्ड नंबर मान्य नहीं है","INVALID_CVV":"CVV मान्य नहीं है","INVALID_YEAR":"अमान्य साल","INVALID_MONTH":"अमान्य महीना","PROCEED_TO_PAY":"पेमेंट करने के लिए आगे बढ़ें","SELECT_ADDRESS_AND_PAY":"पता चुनें और पेमेंट करें","DYNAMIC_PAYMENT_RS":"रुपये {count} का पेमेंट","BAG_DISCOUNT":"बैग डिस्काउंट","DYNAMIC_DISCOUNT":"डिस्काउंट {count}","DYNAMIC_SHIPPING_CHARGE":"डिलीवरी के लिए {shippingLimit} से कम के ऑर्डर पर {shippingCharge} रु. का शिपिंग चार्ज लगाया जाएगा","DYNAMIC_SHIPPING_CHARGE_FREE":"{shippingLimit} रुपये से ऊपर के ऑर्डर पर डिलीवरी फ़्री है","GIFT_CARD_VALUE":"गिफ्ट कार्ड वैल्यू","GIFT_CARD_NUMBER":"गिफ्ट कार्ड नंबर","GIFT_CARD_PIN":"पिन","MOBILE_NUMBER_OR_GPAY_ID":"मोबाइल नंबर/Google Pay UPI ID डालें","GIFT_CARD_BALANCE":"गिफ्ट कार्ड बैलेंस","NYKAA_WALLET_USED":"Nykaa वॉलेट का इस्तेमाल किया गया","AMOUNT_PAYABLE":"देय राशि","PLACE_ORDER":"ऑर्डर करें","SEND_PAYMENT_REQUEST":"भुगतान का अनुरोध भेजें","CONNECT_PAYTM":"Paytm कनेक्ट करें","CONNECT_TO_ONE_CLICK_PAYTM":"एक-क्लिक भुगतान सक्षम करने के लिए अपना Paytm खाता कनेक्ट करें","NOTE_CONNECT_TO_ONE_CLICK_PAYTM":"नोट: एक-क्लिक भुगतान सक्षम करने के लिए अपना Paytm खाता कनेक्ट करें","OTHER_BANKS":"दूसरा बैंक","SELECT_YOUR_BANK":"अपना बैंक चुनें","PAY_WITH_ANY_UPI_APP":"अपने फ़ोन में मौजूद किसी भी UPI ऐप से पेमेंट करें","UPI_INTENT_REDIRECT_TO_PAYU":"पेमेंट पूरा करने के लिए आपको UPI के पेमेंट पेज पर रीडायरेक्ट किया जाएगा","DYNAMIC_OPEN_APP_OR_TAP":"{title} खोलें या पेमेंट रिक्वेस्ट के नोटिफ़िकेशन पर टैप करें","DYNAMIC_OPEN_MOBILE_APP_LINKED":"{count} से लिंक किया गया मोबाइल ऐप खोलें","CHECK_FOR_PAYMENT_REQUEST":"“पेमेंट का अनुरोध” देखें","CHECK_FOR_NYKAA_PAYMENT_REQUEST":"NYKAA E RETAIL PRIVATE LIMITED का पेमेंट का अनुरोध देखें","COMPLETE_UPI_PAYMENT":"UPI पिन डालकर पेमेंट पूरा करें","NOTE_FOR_UPI_PAYMENT":"नोट: यदि आपने किसी मित्र या रिश्तेदार की UPI ID डाली है तो उन्हें अपने UPI से लिंक किए ऐप का इस्तेमाल करके भुगतान की स्वीकृति देनी होगी","DYNAMIC_UPI_PAYMENT_EXPIRE_MSG":"भुगतान का यह अनुरोध {count} मिनटों में अपने-आप समाप्त हो जाएगा","RESEND_REQUEST":"रिक्वेस्ट फिर से भेजें","DYNAMIC_SELECT_ADDRESS_AND_PAY":"पता चुनकर {count} रूपये का पेमेंट करें","SHOPPING_BAG":"शॉपिंग बैग","DYNAMIC_SHOPPING_BAG":"शॉपिंग बैग {item_count}","DYNAMIC_ShOPPING_BAG":"शॉपिंग बैग {item_count}","PICK_YOUR_FREE_PRODUCT":"अपना फ़्री प्रोडक्ट चुनें","PICKED":"चुना गया","DYNAMIC_APPLY_REWARD_POINTS":"{rewardPoints} रिवॉर्ड पॉइंट {rewardRupees}","QUANTITY":"मात्रा","DONE":"पूरा हुआ","WITHOUT_FREEBIES":"मुफ़्त चीज़ों के बिना","EXPIRES_ON":"आखिरी तारीख","USES_LEFT":"इस्तेमाल बाकी","FETCHING_COUPONS":"कूपन प्राप्त हो रहे हैं","APPLYING_COUPON":"कूपन लागू कर रहे हैं","NO_COUPONS_AVAILABLE":"कोई कूपन उपलब्ध नहीं","DYNAMIC_COUPON_APPLIED_SUCCESSFULLY":"कूपन कोड {couponcode} सफलतापूर्वक लागू किया गया","DYNAMIC_REWARD_POINT_ON_NEW_REGISTERATION":"नए रजिस्ट्रेशन पर 2000 रिवार्ड प्वाइंट","ADD_TO_BAG":"बैग में डालें","START_SHOPPING":"शॉपिंग शुरू करें","YOUR_SHOPPING_BAG_IS_EMPTY":"आपका शॉपिंग बैग खाली है","DYNAMIC_INTERNATIONAL_SHIPPING_CHARGE":"भारत से बाहर डिलीवरी के लिए {shippingLimit} से कम के ऑर्डर पर {shippingCharge} रु. का शिपिंग चार्ज लगाया जाएगा","USE_THIS_AS_MY_DEFAULT_SHIPPING_ADDRESS":"इसे मेरे डिफ़ॉल्ट शिपिंग पते के रूप में उपयोग करें","SELECT_ADDRESS":"पता चुनें","SELECT_COUNTRY_OF_SHIPPING":"शिपिंग का देश चुनें","UNLIMITED":"असीमित","INCLUDE_TAX":"(कर सहित)","TIP":"सुझाव:","ADD_IT_TO_YOUR_WISHLIST_TO_PURCHASE_IT_LATER":"इसे बाद में खरीदने के लिए अपनी विशलिस्ट में जोड़ें","YES":"हाँ","NO":"नहीं","RESTORE_BAG":"बैग रीस्टोर करें","DYNAMIC_NO_DONT_WANT_FREEBIES":"नहीं, मुझे {count} मुफ्त उपहार नहीं चाहिए","NYKAA_WALLET":"Nykaa वॉलेट","EDIT_ADDRESS":"पता संपादित करें","REMOVE_COUPON_NOTE":"अन्य पेमेंट विकल्पों का उपयोग करने के लिए कृपया कूपन हटा दें","REMOVE_COUPON":"कूपन हटाएं","EMPTY_EXPIRY_DATE_OR_CVV_EMPTY":"यदि आपके कार्ड पर कोई समाप्ति तिथि या CVV नहीं है तो फ़ील्ड खाली छोड़ दें","SAVE_THIS_CARD_FOR_FUTURE":"भविष्य के लिए इस कार्ड को सुरक्षित रूप से सेव करें","OUT_OF_STOCK":"स्टॉक में नहीं है","QTY":"QTY","APPLIED":"लागू किया गया","VIEW_PRODUCTS":"प्रोडक्ट देखें","OKAY_GOT_IT":"ठीक है, समझ गए","COULD_NOT_LOAD_OFFER_MESSAGE":"ऑफ़र विवरण लोड नहीं किया जा सका, कृपया पुन: प्रयास करें…","OFFER_IS_NOT_AVAILABLE_ANYMORE_MESSAGE":"आप जिस ऑफ़र की तलाश कर रहे हैं वह अब उपलब्ध नहीं है","ADD_TO_WISHLIST":"विशलिस्ट में जोड़ें","VIEW":"देखें","AVAILABLE_BALANCE":"उपलब्ध बैलेंस","DYNAMIC_NOT_ENOUGH_BALANCE_IN_PAYTM":"यह पेमेंट करने के लिए आपके Paytm अकाउंट में पर्याप्त बैलेंस नहीं है | कृप्या Paytm अकाउंट में {count} जोड़ें","ENTER_PAYTM_AMOUNT":"राशि दर्ज करें (अधिकतम 10000)","ADD_PAYTM_BALANCE":"ऑर्डर करने के लिए Paytm बैलेंस जोड़ें","LAST_USED_PAYMENT_METHOD":"पहले इस्तेमाल किए गए पेमेंट के तरीके","LAST_DIGIT_IN_BACK_OF_THE_CARD":"आपके क्रेडिट कार्ड के पीछे के अंतिम 3 अंक","DYNAMIC_PAY_NOW_WITH_STRIKED_AMOUNT":" ₹ {oldAmount} ₹ {newAmount} अभी भुगतान करें","DYNAMIC_SELECT_APP_TO_PAY_NOW_WITH_STRIKED_AMOUNT":" ₹ {oldAmount} ₹ {newAmount} का भुगतान अभी करने के लिए ऐप का चयन करें","DYNAMIC_SELECT_APP_TO_PAY_NOW":"₹ ${count} का भुगतान अभी करने के लिए ऐप का चयन करें","OFFERS_TAG":"ऑफ़र","FOR_SECURITY_REASON_VERIFY_YOUR_NUMBER":"सुरक्षा कारणों से हम आपको अपना फ़ोन नंबर सत्यापित करने का सुझाव देते हैं।","VERIFY_YOUR_NUMBER":"अपना नंबर सत्यापित करें","WE_PROMISE_NOT_TO_SEND_ANY_SPAM":"हम वादा करते हैं कि हम कोई स्पैम नहीं भेजेंगे।","YOU_HAVE_UNLOCKED_A_COUPON":"आपने एक कूपन अनलॉक किया है","CHARGE":"शुल्क","ADDED_TO_BAG":"बैग में जोड़ा गया","PHONE_NUMBER":"फ़ोन नंबर","PHONE_NUMBER_NOT_VALID":"फ़ोन नंबर मान्य नहीं है","INVALID_PHONE_NUMBER":"फ़ोन नंबर मान्य नहीं है","DYNAMIC_DISCOUNT_OFF":"{count} की छूट","OR":"या","AND_MORE":"और ज्यादा","REQUEST_OTP":"OTP का अनुरोध करें","RESEND_OTP":"OTP फिर से भेजें","THIS_FIELD_IS_REQUIRED":"यह जरूरी फ़ील्ड है","ADDRESS_MIN_CHARS":"पता में कम से कम 5 कैरेक्टर होना चाहिए","NAME_MIN_CHARS":"नाम में कम से कम तीन कैरेक्टर होना चाहिए","NAME_MAX_CHARS":"नाम में अधिकतम 100 कैरेक्टर होना चाहिए,","SOMETHING_WENT_WRONG":"कुछ गड़बड़ हो गई","UPI_ADDRESS_NOT_VALID":"UPI पता सही नहीं है","PAYMENT_FAILED":"भुगतान विफल","SERVER_ERROR":"सर्वर त्रुटि","COMPLETE_YOUR_PAYMENT":"अपना भुगतान पूरा करें","DIDNOT_RECIEVED_REQUEST_OR_TIME_UP":"अनुरोध नहीं मिलने, या समय खत्म हो जाने पर, आप ये कर सकते हैं","OFFER_APPLIED":"ऑफ़र लागू किया गया","DYNAMIC_UP_TO_PERCENTAGE_OFF":"{count}% तक की छूट","DYNAMIC_UP_TO_DISCOUNT_OFF":"{count} तक की छूट","INVALID_INPUT_PLEASE_RETRY":"अमान्य इनपुट। कृपया फिर से कोशिश करें","UPI_SUBTITLE":"Google Pay, PhonePe, Paytm इत्यादी","UPI_INFO_BOTTOM_SHEET_TITLE":"मैं अपनी UPI Id कहां ढूंढू?","SELECT_UPI_TITLE":"1. UPI ऐप चुनें","ENTER_UPI_TITLE":"2. UPI/VPA Id डालें","APPROVE_REQUEST_BEFORE_TIMER_END":"टाइमर समाप्त होने से पहले अनुरोध स्वीकार करें","HOW_IT_WORKS":"यह कैसे काम करता है?","UPI_PAYMENT_REQUEST_NOTE":"नोट: अगर आपने किसी दोस्त या परिवार के सदस्य की UPI Id डाली है, तो उन्हें अपने फ़ोन पर UPI ऐप का इस्तेमाल करके पेमेंट करने की अनुमति देनी होगी","SURE_TO_CANCEL_TRANSACTION":"क्या आप ट्रांजैक्शन रद्द करना चाहते हैं?","CANCEL_PAYMENTS":"पेमेंट रद्द करें","COMPLETE_PAYMENT_REQUEST":"अनुरोध स्वीकार करके और अपना UPI पिन डालकर पेमेंट पूरा करें","PAYMENT_COMPLETE_WARNING_NOTE":"नोट: अगर आपने किसी दोस्त या परिवार के सदस्य की UPI Id डाली है, तो उन्हें अपने फ़ोन पर UPI ऐप का इस्तेमाल करके पेमेंट करने की अनुमति देनी होगी","SURE_TO_CANCEL_PAYMENT_NOTE":"भुगतान का अनुरोध केवल तभी रद्द होगा जब आप अपने UPI ऐप पर ट्रांजैक्शन पूरा नहीं करते हैं","CHECK_COLLECT_REQUEST_FROM_NYKAA":"ऐप में लिंक किए गए अपने बाकी के ट्रांजैक्शन में Nykaa से पेमेंट लेने के अनुरोध की जांच करें","YES_CANCEL":"हां, रद्द करें","GOT_IT":"ठीक है!","OTHER_PAYMENT_OPTIONS_TITLE":"पेमेंट के अन्य विकल्प","OTHER_PAYMENT_OPTIONS_SUBTITLE":"गिफ्ट कार्ड, बाद में पेमेंट करें, वॉलेट इत्यादि","CREDIT_DEBIT_CARD_TITLE":"क्रेडिट/डेबिट कार्ड","CREDIT_DEBIT_CARD_SUBTITLE":"Visa, Mastercard, Rupay, इत्यादि","NETBANKING_TITLE":"नेट बैंकिंग","NETBANKING_SUBTITLE":"अपने पसंदीदा बैंक से पेमेंट करें","NYKAA_WALLET_TITLE":"Nykaa वॉलेट","CASH_ON_DELIVERY_TITLE":"कैश ऑन डिलीवरी","CASH_ON_DELIVERY_SUBTITLE":"अपने डोरस्टेप पर पेमेंट करें","DYNAMIC_RESEND_OTP":"{timer} में OTP फिर से भेजें","PAYTM_WALLET_TITLE":"Paytm वॉलेट & पोस्टपेड","PAYTM_WALLET_SUBTITLE":"वॉलेट मनी से पेमेंट करें","AMOUNT":"राशि","LINK_PAYTM_WALLET":"Paytm वॉलेट लिंक करें","CONFIRM_OTP":"OTP की पुष्टि करें","ADD_MONEY":"पैसे डालें","LINK":"लिंक करें","DYNAMIC_PAYTM_WALLET_VERIFY_NUMBER":"अपने Paytm वॉलेट का इस्तेमाल करने के लिए, कृपया अपना मोबाइल नंबर {number} वेरिफाय करें","DYANMIC_PAYTM_LOW_BALANCE":"शेष राशि कम है, आपको अपने अकाउंट में {amount} और डालना होगा","GOOGLE_PAY_TITLE":"Google Pay","GOOGLE_PAY_SUBTITLE":"सबसे आसान Upi विकल्प","GIFT_CARD_TITLE":"गिफ्ट कार्ड","GIFT_CARD_SUBTITLE":"One card for all Nykaa apps","SELECT_PAYMENT_OPTION":"पेमेंट का विकल्प चुनें","DYNAMIC_PAY":"₹{count} का पेमेंट करें","WALLET_DYNAMIC_PAY":"Nykaa Wallet में ₹{count} जोड़ना","DYNAMIC_PAY_WITH_STRIKED_AMOUNT":"₹{newAmount} ₹{oldAmout} का पेमेंट करें","GIFT_CARD_OTHER_PAYMENT_MESSAGE":"Complete the rest of the payment with other payment options","OTHER_BANK":"अन्य बैंक","GIFT_CARD_VALUE_USED":"Gift Card Value Used","EMI_TITLE":"EMI","EMI_SUBTITLE":"Easy Installment Options","NO_COST_EMI":"No Cost EMI","ZEST_MONEY_TITLE":"ZestMoney","ZEST_MONEY_SUBTITLE":"Buy Now and Pay Later","EXPIRY":"Expiry (MM/YY)","CVV":"CVV","CVV_INFO_SUB_TITLE1":"MasterCard/ Visa/ Diners Club/Rupay","CVV_INFO_SUB_TITLE2":"Amex Cards","OTHER_UPI":"Other UPI","TAP_ON_PROFILE_ICON":"2. Tap on the profile icon","TAP_ON_PROFILE_ICON_LEFT":"2. Tap on the profile icon on the top left","TAP_ON_PROFILE_ICON_RIGHT":"2. Tap on the profile icon on the top right","FIND_UPI_ID":"3. Find UPI id on the top","FIND_PHONEPE_UPI_ID":"3. Go to My UPI ID to find your UPI ID","DYNAMIC_WHERE_CAN_FIND_UPI_ID":"Where can I find my {appName} UPI Id","DYNAMIC_OPEN_YOUR_APP":"1. Open your {appName} App","WE_ACCEPT":"WE ACCEPT","WANT_TO_USE_ANOTHER_PAYMENT_METHOD":"Want to use another payment method?","WHAT_IS_CVV":"What is a CVV?","CVV_INFO_TEXT1":"Turn your card over and look at the signature box. This 3-digit code is your CVV number","CVV_INFO_TEXT2":"A 4-digit number on the front, just above your credit card number is your CVV","CHANGES_NOT_SAVED":"You will lose all unsaved changes.","CHANGES_NOT_SAVED_CONTENT":"Do you want to save before leaving?","DONT_SAVE":"Don't Save","PINCODE_BOTTOM_SHEET_TITLE":"Pincode you entered is not serviceable","ADDRESS_BOTTOM_SHEET_TITLE":"Selected address is not serviceable","AREA_MIN_CHARS":"Area should have at least 5 characters","HOUSE_MIN_CHARS":"House should have at least 1 characters","TOTAL_AMOUNT":"Total Amount","REWARD_POINTS":"Reward Points","YOU_PAY":"You Pay","SHIPPING":"Shipping","OFFER_NAME":"Offer Name","DISCOUNT_PRICE":"Discount Price","TOTAL_DISCOUNT":"Total Discount","PRICE_DETAILS":"Price Details","DYNAMIC_REWARD_MESSAGE":"Yay! You will earn {rewardPointsRecieve} Reward points","DYNAMIC_BAG_MRP":"Bag MRP ({itemCount} items)","DYNAMIC_COUPON_CODE":"Coupon: {couponCode}","DYNAMIC_YOU_ARE_SAVING":"You are saving ₹{totalSaved}","DYNAMIC_PAY_WITH_VERIFY":"सत्यापित करें & ₹{count} का पेमेंट करें","DYNAMIC_PAY_WITH_STRIKED_AMOUNT_AND_VERIFY":"सत्यापित करें & ₹{newAmount} ₹{oldAmout} का पेमेंट करें","UPI_TOP_SUBTITLE_MESSAGE":"हे! {payerAccountName} टाइमर समाप्त होने से पहले अनुरोध स्वीकार करें"}};
window.isPhpSessIdSet = false;