function handleReviewsClick(){$("#BVRRSummaryContainer").on("click",function(n){n.preventDefault();$("#bazaar-voice").collapse("show")})}function moveSummaryContainer(){var n=$("#BVRRSummaryContainer"),t=$(".sk-product-enhanced-detail");t.prepend(n)}function checkImages(){var n=$(".no-crop-img img");n.length>0&&changeImgSrc(n);setTimeout(checkImages,500)}function changeImgSrc(n){for(var i,r,t=0;t<n.length;t+=1)if(i=n.eq(t),r=i.attr("src"),r===undefined){setTimeout(function(){changeImgSrc(n)},500);break}else i.attr("src",r.split("?")[0])}function handleForm(){var n=$("#cdc-form");n.on("submit",function(){hideSteps()})}function hideSteps(){var n=$(".cdc-form-thank-you-group");n.hasClass("hidden")?setTimeout(hideSteps,100):formDepilate.addClass("thank-you-hide")}function fileButtonStyling(){var t=$(".form-container"),i=t.find(".cdc-field-container"),n=i.eq(10);n.prepend('<label for="file_input" class="file-label">Subir Ticket<\/label>');n.find("input").eq(0).attr("id","file_input");n.find(".cdc-error").append('<span class="field-validation-error validation-required">Ningún archivo seleccionado<\/span>');$(".cdc-image-upload").on("change",function(){var n=$(this).val();$(".file-label").text("Archivo subido correctamente")})}(function(){"use strict";function n(n){return function(){BV.pixel.trackConversion({type:"WhereToBuy",label:"BuyOnlinePage",value:n})}}$(document).ready(function(){var r=$(".RBStarterKitProductPage").length>0,u=typeof BV!="undefined",t,i;if(r&&u){t=$("[itemprop=gtin14]").text();i=$(".sk-buy-now-btn--locate");i.on("click",n(t))}})})(),function(){"use strict";function t(t){var i=$(t).text();return{Name:n.parseContent(i)}}function i(){var n=$("[itemprop=breadcrumb]");if(n)return n.find("li").toArray().map(t)}function r(t){var r=$("[itemprop=gtin14]").text(),u=n.getOgUrlMetaTag().attr("content"),f=$("[itemprop=image]").eq(0).attr("href");return{brandName:t,productId:r,eans:[r],productName:$(".sk-product-header [itemprop=name]").text(),productDescription:$("[itemprop=description]").text(),productImageURL:encodeURI(f),productPageURL:encodeURI(u),categoryPath:i()}}function u(t){try{var i=r(t);return{catalogData:{locale:$("html").attr("lang").replace("-","_"),catalogProducts:[n.mapObject(i,n.parseContent)]}}}catch(u){console.error(u)}}var n={mapObject:function(n,t){return Object.keys(n).reduce(function(i,r){return i[r]=t(n[r]),i},{})},parseContent:function(n){return typeof n=="string"?n.trim():n},getOgUrlMetaTag:function(){return $("meta").filter(function(n,t){return $(t).attr("property")==="og:url"})}};$(document).ready(function(){var n=$(".RBStarterKitProductPage").length>0,t=typeof BV!="undefined";n&&t&&(window.bvDCC=u("veet"),window.bvCallback=function(n){n.pixel.trackEvent("CatalogUpdate",{type:"Product",locale:window.bvDCC.catalogData.locale,catalogProducts:window.bvDCC.catalogData.catalogProducts})})})}(),function(){function n(n,t){var i=document.createElement("script"),r;i.src=n;i.onload=t;r=document.getElementsByTagName("body")[0];r.appendChild(i)}function t(n){try{$BV.ui("rr","submit_generic",n)}catch(t){console.error("bvapi.js script is not loaded")}}function i(){$(".js-open-bv-review-modal").on("click",t)}$(document).ready(function(){var r=$(".RBStarterKitHomePage").length,u=$(".sk-country-au").length,t;u&&r&&(t="https://display.ugc.bazaarvoice.com/bvstaging/static/veet-au/main_site/en_AU/bvapi.js",n(t,i))})}(),function(){"use strict";$(document).ready(function(){var r=$(".RBStarterKitProductPage").length>0,u=typeof BV!="undefined";if(r&&u)try{var n=window.location.href,f=$('[itemtype="http://schema.org/Product"]'),t=$('[type="application/ld+json"]'),i=JSON.parse(t.html());i["@id"]=n;t.html(JSON.stringify(i));f.attr("itemid",n)}catch(e){console.log(e)}})}();$(document).ready(function(){moveSummaryContainer();handleReviewsClick()});$(document).ready(function(){var n=$("div.checkbox").add($("div.form-group > div")),t=n.children("label"),i=$("input:checkbox"),r=$("label > a");n.find(t).each(function(){$(this).children("input").prependTo($(this).parent(n))});n.find(i).each(function(){name=$(this).attr("name");$(this).attr("id",name);$(this).next("label").attr("for",name)})});$(document).ready(function(){var n=$("head title").text().trim().replace(/'/g,""),i,t,r;$("body").hasClass("RBStarterKitProductPage")?(i=$(".sk-product-header h1").text().trim().replace(/'/g,""),$("head").prepend("<script> window.dataLayer = window.dataLayer || []; window.dataLayer.push({'pageTitle': '"+n+"', 'productName': '"+i+"'}); <\/script>")):$("body").hasClass("RBStarterKitProductListPage")?(t=[],r=$(".sk-product-list-item-title"),r.each(function(){var n=$(this).text().trim().replace(/'/g,"");n="'"+n+"'";t.push(n)}),$("head").prepend("<script> window.dataLayer = window.dataLayer || []; window.dataLayer.push({'pageTitle': '"+n+"', 'productList': ["+t+"]}); <\/script>")):$("head").prepend("<script> window.dataLayer = window.dataLayer || []; window.dataLayer.push({'pageTitle': '"+n+"'}); <\/script>")});"use strict";var formDepilate=!1;$(document).ready(function(){formDepilate=$(".sk-form-man-depilate");formDepilate.length>0&&(fileButtonStyling(),checkImages(),handleForm())}),function(){var n=$(".sk-hpm-form-veet-m"),t=$(".thank-you");n&&($("head").append("<link rel='stylesheet' href='/css/CmsPlugins/RB-StarterKit/themes/veetsk/hpm-veet.css?bundleVirtualPath=%7e%2fcssbundles%2fveetsk-hpm-veet.css%2f' type='text/css' media='screen'>"),$("body").removeClass("RBStarterKitContentGridPage"),$('link[href="/css/CmsPlugins/RB-StarterKit/themes/veetsk/styles-blessed1.css?bundleVirtualPath=%7e%2fcssbundles%2fveetsk-styles-blessed1.css%2f"]').remove());$(".cdc-field-container-1").text("Por favor, rellena todos los campos").css({"font-family":"HelveticaNeueLTStd-Roman","font-size":"15px","margin-top":"10%",color:"#fff","margin-bottom":"25px","text-align":"center",width:"250px","margin-left":"5%"})}();$(document).ready(function(){$(".sk-main-links .dropdown").hover(function(){$(this).addClass("open")},function(){$(this).removeClass("open")})}),function(){var n=$(".no-crop-img img");n.length>0&&($(n).attr("src",function(n,t){if(t!==undefined)return t.split("?")[0]}),$(n).attr("data-src",function(n,t){if(t!==undefined)return t.split("?")[0]}))}(),function(n){n(document).ready(function(){if(n("body").hasClass("sk-veet-towie"))if(n(".sk-segment-body").prepend('<a class="sk-towie-logo" href="/"><\/a>'),n(".sk-grid-richtext--homepage").length)n("body").addClass("sk-veet-towie--homepage"),n(".sk-veet-towie .grid-section > .sk-grid-panel:last-child .sk-grid-richtext.sk-grid-richtext--homepage h1 a").removeAttr("title");else if(n("#cdc-form").length){n(".g-recaptcha").appendTo("#cdc-form .col-md-6.column:last > div").wrap('<div class="cdc-field-container"><\/div>');n("body").addClass("sk-veet-towie--form");n(".cdc-submit.btn.btn-primary").val("SUBMIT").addClass("towie-btn-ready");setTimeout(function(){n(".cdc-submit.btn.btn-primary").val("SUBMIT").addClass("towie-btn-ready")},250);n(".sk-veet-towie.sk-veet-towie--form .sk-container-body > .sk-general-content > .row:first-child > .col-md-12 > .sk-grid-content > .umb-grid > .grid-section > .sk-grid-panel:last").append('<div class="sk-towie-close-btn-container"><button class="sk-veet-towie-close-help-btn"><span>GO BACK<\/span><span>TO ENTRY<\/span><\/button><\/div>');n(".sk-veet-towie.sk-veet-towie--form .sk-segment-body").append('<button class="sk-veet-towie-close-help"><\/button>');n(".sk-veet-towie.sk-veet-towie--form #cdc-form .col-md-6:last-child .cdc-field-container:eq(1)").append('<button class="sk-veet-towie-help"><\/button>');n(".sk-veet-towie-help, .sk-veet-towie-close-help, .sk-veet-towie-close-help-btn").on("click",function(t){t.preventDefault();n("body").toggleClass("sk-veet-towie--help-visible")});n(".sk-veet-towie #cdc-form .input-group.date > input").on("change",function(){n("body > .datepicker").remove()});var i=["Please read and accept Terms and Conditions","Please read and accept Privacy Policy"],t=function(n,t){n.find(".help-block.cdc-error").remove();n.find("input.cdc-checkbox")[0].checked||(n.addClass("has-error"),n.append('<span class="help-block cdc-error"> <span class="validation-required field-validation-error" style="">   <span>'+i[t]+"<\/span> <\/span><\/span>"))};n(".sk-veet-towie #cdc-form").on("submit",function(){n(".sk-veet-towie #cdc-form .checkbox.advanced-cdc-checkbox").each(function(i){var r=n(this).parent();t(r,i)})});n(".sk-veet-towie #cdc-form .checkbox.advanced-cdc-checkbox").each(function(i){var r=n(this),u=r.parent();r.find("> input").on("change",function(){t(u,i)})})}})}(jQuery),function(){".sk-hpm-form-veet-m"&&$(".cdc-submit").val("ENVIAR");".sk-hpm-form-veet-w"&&$(".cdc-submit").val("ENVIAR")}();$(document).ready(function(){var n=$(".sk-veet-men .sk-sub-nav .sk-social-sharing");$(".sk-veet-men .sk-grid-panel.veet-men-footer .sk-grid-panel .sk-grid-social-media").prepend(n)})