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")})}$(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]})}(),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")}()