1jQuery.fn.center=function(b,a,c){this.css("position","fixed");if(a||a==undefined){this.css("top",(($((b==undefined||!b?(inIframeReskyt()?window.parent:window):b)).height()-this.outerHeight())/2)+"px")}if(c||c==undefined){left=(($((b==undefined||!b?(inIframeReskyt()?window.parent:window):b)).width()-this.outerWidth())/2);if($("body").css("left")&&$("body").css("left")!="auto"){left_body=parseInt($("body").css("left"),10);left=left-left_body}this.css("left",left+"px")}return this};$.fn.isOnScreen=function(){var c=$(window);var a={top:c.scrollTop(),left:c.scrollLeft()};a.right=a.left+c.width();a.bottom=a.top+c.height();var b=this.offset();b.right=b.left+this.outerWidth();b.bottom=b.top+this.outerHeight();return(!(a.right<b.right))};jQuery.fn.paramDataAjax=function(a){url=this[0].data;return(RegExp(a+"=(.+?)(&|$)").exec(url)||[,null])[1]};function paramURL(b,a){return(RegExp(a+"=(.+?)(&|$)").exec(b)||[,""])[1]}function getPosArrayStr(c,d){var a=c.split("[");var b=a[d];return b.replace("]","")}function firstInputFocus(){setFocus($("input:text:visible, textarea:visible, select:visible").not(".hasDatepicker").first())}function setFocus(a){if(!$(a).attr("type")||$(a).attr("type")=="checkbox"){$(a).focus()}else{$(a).select()}}function formattingDates(a){$(a).bind("keyup","keydown",function(c){if(c.which!==8){var b=$(this).val().length;if(b===2||b===5){var d=$(this).val();d+="/";$(this).val(d)}if(b===10){$(a).datepicker("hide");$(this).blur()}}})}function showFlashMessage(a){showFlash(".flash-message-dynamic",a)}function showFlashError(a){showFlash(".flash-error-dynamic",a)}function showFlash(a,b){$(a).html(b);$(a).center(false,false).css("display","block").delay(8000).fadeOut(1000)}function strPad(a){if(a<=9){return String("0"+a).slice(-2)}else{return a}}function loaderFullPageShow(a){if(a!=undefined){if($("#loader-fullPage-text",window.parent.document).length){$("#loader-fullPage-text p",window.parent.document).html(a)}else{$("#loader-fullPage-text p").html(a)}}if($("#loader-fullPage-text",window.parent.document).length){$("#loader-fullPage-text",window.parent.document).center().show();$("#loader-fullPage-background",window.parent.document).show()}else{$("#loader-fullPage-text").center().show();$("#loader-fullPage-background").show()}}function loaderFullPageShowHide(){if($("#loader-fullPage-text",window.parent.document).length){$("#loader-fullPage-text",window.parent.document).hide();$("#loader-fullPage-background",window.parent.document).hide()}else{$("#loader-fullPage-text").fadeOut("slow");$("#loader-fullPage-background").hide()}}function loaderFullShow(a){$(".loader-admin").center().show();$("#loader-full-background .txt-background").remove();if(a!=undefined){$("#loader-full-background").append("<div class='txt-background'>"+a+"</div>").show()}$("#loader-full-background").show()}function loaderFullHide(){$(".loader-admin").hide();$("#loader-full-background").hide()}function loaderNewShowAdmin(){$(".loader-admin").center().show()}function loaderNewHideAdmin(){$(".loader-admin").hide()}function loaderNewShow(){loaderNewHide();if((inIframeReskyt()&&$(".loader",window.parent.document).length)||$(".loader").length){if(inIframeReskyt()&&$(".loader",window.parent.document).length){$(".loader",window.parent.document).center().show()}else{$(".loader").center().show()}}else{if($(".loader-admin").length){loaderNewShowAdmin()}else{var a={lines:9,length:8,width:3,radius:8,corners:1,rotate:0,direction:1,color:"white",speed:1,trail:66,shadow:false,hwaccel:false,className:"spinner",zIndex:2000000000,top:"auto",left:"auto"};if(inIframeReskyt()&&window.parent.document.getElementById("loader-new")){var b=window.parent.document.getElementById("loader-new")}else{var b=document.getElementById("loader-new")}var c=new Spinner(a).spin(b);if(inIframeReskyt()&&$("#loader-new-background",window.parent.document).length){$("#loader-new-background",window.parent.document).center().show();$("#loader-new",window.parent.document).center().show()}else{$("#loader-new-background").center().show();$("#loader-new").center().show()}}}}
1function loaderNewHide(){if((inIframeReskyt()&&$(".loader",window.parent.document).length)||$(".loader").length){if(inIframeReskyt()&&$(".loader",window.parent.document).length){$(".loader",window.parent.document).hide()}else{$(".loader").hide()}}else{if($(".loader-admin").length){loaderNewHideAdmin()}else{if(inIframeReskyt()&&$("#loader-new-background",window.parent.document).length){$("#loader-new.spinner",window.parent.document).stop();$("#loader-new-background",window.parent.document).hide();$("#loader-new",window.parent.document).text("")}else{$("#loader-new.spinner").stop();$("#loader-new-background").hide();$("#loader-new").text("")}}}}Number.prototype.number_format=function(k,g,e){var h=this,k=isNaN(k=Math.abs(k))?2:k,g=g==undefined?".":g,e=e==undefined?",":e,f=h<0?"-":"",b=parseInt(h=Math.abs(+h||0).toFixed(k))+"",a=(a=b.length)>3?a%3:0;return f+(a?b.substr(0,a)+e:"")+b.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+e)+(k?g+Math.abs(h-b).toFixed(k).slice(2):"")};Number.prototype.round=function(a){var b=this;if(a==0){return Math.floor(b)}else{if(a==2){return Math.ceil(b)}else{return Math.round(b)}}};var unavailableDates=Array();var unavailableDatesGeneral=Array();function reservasCalendario(a,b,c){sala=($(".form-reserva-sala select").length?$(".form-reserva-sala select").val():"");mesa=($(".form-reserva-mesa select").length?$(".form-reserva-mesa select").val():(b!=undefined?b:""));hora=($(".form-reserva-hora select").length?$(".form-reserva-hora select").val():(a!=undefined?a:""));plazas=($(".form-reserva-plazas select").length?$(".form-reserva-plazas select").val():"");reserva=(c!=undefined?c:"");general=(a!=undefined&&b==undefined&&c==undefined?1:0);$.ajax({url:url.reservas_reservascalendario,type:"POST",dataType:"json",data:{sala:sala,mesa:mesa,hora:hora,plazas:plazas,reserva:reserva,general:general},success:function(d){if(general){unavailableDatesGeneral=d;$("#fecha_reservas").datepicker("refresh")}else{unavailableDates=d;$(".fecha-ini, .fecha-fin, .form-reserva-fecha input, .date-picker-inline").datepicker("refresh");if($(".date-picker-inline")){$(".fecha-ini, .date-picker-inline").datepicker("setDate",$(".fecha-ini").closest(".date-inline").find(".datepickeralt").val());$(".fecha-fin").datepicker("setDate",$(".fecha-fin").closest(".date-inline").find(".datepickeralt").val());$(".date-picker-inline").datepicker("setDate",$(".date-picker-inline").closest(".date-inline").find(".datepickeralt").val())}}}})}function autoHeightIframeEmbedded(){if(parent!=window){parent.$("iframe").each(function(a,b){if(b.contentWindow===window){$(b).attr("height",$("html").height())}});parent.loaderNewHide()}}function telmail(b,a){if(vars.custom_app!=undefined&&vars.custom_app){window.parent.location.href=a+":"+b}else{window.location.href=a+":"+b}return false}var date_ok=0;function unavailableDayDatepicker(a){date_ok=1;dmy=a.getDate()+"-"+(a.getMonth()+1)+"-"+a.getFullYear();dmy2=strPad(a.getDate())+"/"+strPad(a.getMonth()+1)+"/"+a.getFullYear();dm=strPad(a.getDate())+"/"+strPad(a.getMonth()+1);now=new Date();now2=new Date();dias_reserva=vars.dias_de_reserva;max_dias_reserva=vars.max_dias_reserva;if(vars.max_hora_reserva){extra=vars.max_hora_reserva.split(":");dias_extra=(vars.max_hora_reserva&&now2.getHours()>=extra[0]&&now2.getMinutes()>=extra[1]?1:0)}else{dias_extra=1}fecha_limite=sumarDias(now2,parseInt(max_dias_reserva)+(max_dias_reserva?dias_extra:0));day_week=(a.getDay()==0?7:a.getDay());if(a<now.setHours(0,0,0,0)||a>fecha_limite){return[false,"dia-reservado",""]}else{if(dias_reserva&&dias_reserva.indexOf(day_week)==-1){return[false,"dia-reservado",""]}else{if(typeof diasFestivos!=="undefined"&&($.inArray(dm,diasFestivos)>=0||$.inArray(dmy2,diasFestivos)>=0)){return[false,"dia-reservado",""]}else{if($.inArray(dmy,unavailableDates)<0){return[true,"",""]}else{return[false,"dia-reservado",""]}}}}}function sumarDias(a,b){a.setDate(a.getDate()+(b-1));return a}function stripentitiesFilter(a){return a.replace("/&#?[a-z0-9]+;/i","")}function striptags(b){var a=document.createElement("DIV");a.innerHTML=b;return a.textContent||a.innerText||""}var isMobile={Android:function(){return/Android/i.test(navigator.userAgent)||typeof window.ReskytHandler!=="undefined"},BlackBerry:function(){return/BlackBerry/i.test(navigator.userAgent)},iOS:function(){return/iPhone|iPad|iPod/i.test(navigator.userAgent)||typeof rskIosVersionVar!=="undefined"},Windows:function(){return/IEMobile/i.test(navigator.userAgent)},any:function(){return(isMobile.Android()||isMobile.BlackBerry()||isMobile.iOS()||isMobile.Windows())}};function concatUTM(c,d,b,a,e){utm_url="";if(d&&c.indexOf("utm_source=")==-1){utm_url+=((c+utm_url).indexOf("?")!=-1?"&":"?")+"utm_source="+d}if(b&&c.indexOf("utm_medium=")==-1){utm_url+=((c+utm_url).indexOf("?")!=-1?"&":"?")+"utm_medium="+b}if(e&&c.indexOf("utm_campaign=")==-1){utm_url+=((c+utm_url).indexOf("?")!=-1?"&":"?")+"utm_campaign="+e}if(a){utm_url+=((c+utm_url).indexOf("?")!=-1?"&":"?")+"utm_content="+a}return utm_url}function concatCustomapp(a){source_get=(typeof source!=="undefined"&&source?source:(vars.sin_frame?"":parent.utm_source_direct));medium_get=(typeof medium!=="undefined"&&medium?medium:(vars.sin_frame?"":parent.utm_medium_direct));campaign_get=(typeof campaign!=="undefined"&&campaign?campaign:"");campaign_app=(vars.sin_frame?($.cookie("campaign_app_download")?$.cookie("campaign_app_download"):""):parent.campaign_app);token_md5=(vars.sin_frame?($.cookie("token_md5")?$.cookie("token_md5"):""):parent.token_md5);var b=(vars.sin_frame?($.cookie("token")?$.cookie("token"):""):parent.token);uuid_app=(vars.sin_frame?($.cookie("uuid_app")?$.cookie("uuid_app"):""):parent.uuid);if(!vars.custom_app){return a}if(!vars.pass_vars_app){extra=vars.extra_pass_vars_app;
1a+=concatUTM(a,source_get,medium_get,campaign_app,campaign_get);return a+(extra?(a.indexOf("?")!=-1?"&":"?")+extra.substr(1):"")}url1=a;url2="";if(a.indexOf("#")!=-1&&a.indexOf("/#/")==-1){aSplit=a.split("#");url1=aSplit[0];url2="#"+aSplit[1]}varsPlugin="";if(vars.sin_frame){varsPlugin="&push="+($.cookie("total_push")?$.cookie("total_push"):0)+"&tab="+$.cookie("tab_app")+"&lang_app="+$.cookie("reskyt-lang-app")}var c="&token_app="+token_md5+"&uuid="+uuid_app;c=c+(a.indexOf("reskyt.com")!==-1?"&token="+b:"");url_output=url1+(a.indexOf("?")!=-1?"&":"?")+"customapp=2"+c+varsPlugin+vars.extra_pass_vars_app;url_output+=concatUTM(url_output,source_get,medium_get,campaign_app,campaign_get)+url2;return url_output}function getDtoFideliza(b,a){return 100-((1-(b*a))*100)}function getMobile(){if(isMobile.any()){if(isMobile.Android()){return"android"}else{if(isMobile.iOS()){return"ios"}else{if(isMobile.Windows()){return"windows"}else{return"1"}}}}else{return"0"}}function getIosVersion(){if(typeof rskIosVersionVar!=="undefined"){return rskIosVersionVar.split(".")}if(/iP(hone|od|ad)/.test(navigator.platform)){var a=(navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);
1return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3]||0,10)]}return[0,0,0]}String.prototype.reverse=function(){splitext=this.split("");revertext=splitext.reverse();reversed=revertext.join("");return reversed};function eanCheckDigit(c){var a=0;var b=c.reverse();for(counter=0;counter<b.length;counter++){a=a+parseInt(b.charAt(counter))*Math.pow(3,((counter+1)%2))}return(10-(a%10))%10}function validateEan(a){ean_num=a.substr(0,a.length-1);last_num=a.substr(a.length-1,a.length);return(eanCheckDigit(ean_num)==last_num?true:false)}function closeAllFancybox(){exist=($("#fancybox-close, .pswp__button--close, .slick-current .close-presentacion").length?true:false);$("#fancybox-close, .pswp__button--close, .slick-current .close-presentacion").trigger("click");return exist}function checkCookieNumDays(c,b){if($.cookie(c)!=undefined&&!isNaN(b)){var a=$.cookie(c).split("#");if(a.length>1&&a[2]!=undefined&&a[2]!=vars.username){return true}if(a.length>1&&a[1]!=undefined){var d=a[1];if(d!=b&&b>0){$.cookie(c,"1#"+b+"#"+vars.username,{path:"/",expires:b});return false}else{if(d!=b&&b==0){$.cookie(c,"1#"+b+"#"+vars.username,{path:"/"});return true}else{return false}}}}return false}function showPopupIniFancybox(){var a=parseInt($("#popupIni").attr("data-popupCookieDies"));if(!$("#popupIni").length||$("#popupIni div").html().trim().length<=0||$.cookie("not-show-popupini")!=undefined){if(!checkCookieNumDays("not-show-popupini",a)){return false}}var c=($(window).height()/2)-($(".fancybox-wrap").outerHeight()/2);var b=($(window).width()/2)-($(".fancybox-wrap").outerWidth()/2);$(".fancybox-wrap").css({top:c,left:b});$.fancybox($("#popupIni").html(),{scrolling:"auto",autoDimensions:true,autoScale:true,centerOnScroll:true,speedIn:1000,easingIn:"swing",transitionIn:"elastic",transitionOut:"elastic",margin:20,padding:10,onClosed:function(){if(checkCookie("preferencias")){if(a>0){$.cookie("not-show-popupini","1#"+a+"#"+vars.username,{path:"/",expires:a})}else{if(!vars.custom_app){$.cookie("not-show-popupini","1#"+a+"#"+vars.username,{path:"/"})}}}}});$("#fancybox-content").css("max-height",($(window).height()-180)+"px");$(".fancybox-wrap").css({top:c,left:b})}function _min2Hour(a){return strPad(Math.floor(Math.abs(parseInt(a))/60))+":"+strPad((Math.abs(parseInt(a))%60))}function _hour2min(a){if(!a||!a.trim()){return 0}hoursSplit=a.split(":");return(parseInt(hoursSplit[0])*60)+parseInt(hoursSplit[1])}function selectText(a){$(a).select();$(a)[0].focus();$(a)[0].setSelectionRange(0,99999)}function convertDate(a,b){if(!a||!a.trim()){return false}cHour="";if(a.indexOf(" ")!=-1){split=a.split(" ");a=split[0];cHour=split[1]}if(a.indexOf("-")!=-1){dSplit=a.split("-");cDia=dSplit[2];cMes=dSplit[1];cAno=dSplit[0];if(b!==undefined){return dSplit[0]+"/"+dSplit[1]+"/"+dSplit[2]+(cHour?" "+cHour:"")}}if(a.indexOf("/")!=-1){dSplit=a.split("/");a=dSplit[2]+"-"+dSplit[1]+"-"+dSplit[0];cDia=dSplit[0];cMes=dSplit[1];cAno=dSplit[2];if(b!==undefined){return a+(cHour?" "+cHour:"")}}cHora=0;cMinuto=0;if(cHour){hSplit=cHour.split(":");cHora=hSplit[0];cMinuto=hSplit[1]}return new Date(parseInt(cAno),parseInt(cMes)-1,parseInt(cDia),parseInt(cHora),parseInt(cMinuto),0)}function checkCookie(a){valor=$.cookie("reskyt-accept-cookies");if(valor===undefined||!valor){if(vars.custom_app&&!vars.app_consent){return true}else{return false}}if(valor=="1"||valor.indexOf(a)!==-1){return true}else{return false}}function showDialogApp(a){if(!$(".layer-dialog-app").length){$("body").append("<div class='layer-dialog-app'></div>")}$(".layer-dialog-app").fadeIn("fast");$(a).center().fadeIn("fast")}function hideDialogApp(a){if(a===undefined){a=".dialog-app"}if($(".dialog-app:visible").length<=1){$(".layer-dialog-app").fadeOut("fast")}$(a).fadeOut("fast")}function inIframe(){try{return window.self!==window.top}catch(a){return true}}function inIframeReskyt(){if(!inIframe()){return false}try{url_frame=window.parent.document.location.href;return url_frame}catch(a){return false}}function isIphoneX(){return(isIphoneNotch()||isIphoneIsland()?true:false)}function isIphoneNotch(){return((screen.height==812&&screen.width==375)||(screen.height==896&&screen.width==414)||(screen.height==844&&screen.width==390)||(screen.height==926&&screen.width==428)?true:false)}function isIphoneIsland(){return((screen.height==852&&screen.width==393)||(screen.height==932&&screen.width==430)||(screen.height==874&&screen.width==402)||(screen.height==956&&screen.width==440)?true:false)}$(document).on("keydown",".only-numbers, .only-integers",function(a){if
1($(this).hasClass("only-numbers")&&(a.keyCode==188||a.keyCode==190)){return true}else{if((a.keyCode==46||a.keyCode==8||a.keyCode==9||a.keyCode==27||a.keyCode==13)||(a.keyCode==65&&a.ctrlKey===true)||(a.keyCode>=35&&a.keyCode<=39)){return true}else{if(a.shiftKey||(a.keyCode<48||a.keyCode>57)&&(a.keyCode<96||a.keyCode>105)){a.preventDefault()}}}}); 2$(window).load(function(){var d=$(".top-bar").outerHeight();var l=$(".navbar").outerHeight();var g=d+l;var c=$(".wrapper-top-banner img").height()||$(".wrapper-top-banner video").height();var j=g;if($(".topbar-banner-menu")[0]){var j=j+c}var h=g;if($(".header-overlay").length||$(".menu-logo-menu-overlay").length){h="0"}if($(".header-parallax").length){$(".main-layout").css("margin-top",c)}var a=$(".main-layout").offset().top;var b=document.documentElement,e=false,f=j;document.querySelector(".header");function m(){window.addEventListener("scroll",function(){if(!e){e=true;setTimeout(i,0)}},false)}function i(){var n=k();if(n>=f){$(".top-bar").css({display:"none"});$(".header").addClass("header-fixed");$("body").css("padding-top",h);jQuery(window).trigger("resize").trigger("scroll")}else{$(".top-bar").css({display:"block"});$(".header").removeClass("header-fixed");$("body").css({"padding-top":"0px"});jQuery(window).trigger("resize").trigger("scroll")}if($(".ui-autocomplete-input")){$(".ui-autocomplete-input").blur()}if($(".header-parallax").length){if(n>=a){$(".header-parallax .slick-banner.slick-initialized, .header-parallax .only-one-banner, .gotodown").css("visibility","hidden")}else{$(".header-parallax .slick-banner.slick-initialized, .header-parallax .only-one-banner, .gotodown").css("visibility","visible")}}e=false}function k(){return window.pageYOffset||b.scrollTop}m()}); 3var scrollTop=0;function galleryThumbnails(){fotorama=$(".gallery-thumbnails").fotorama({nav:"thumbs",click:"false",ratio:"4/3",width:"100%",arrows:"always",autoplay:"5000",loop:"true"}).data("fotorama")}function gallerySquareImage(){$(".gallery-cuadrado .thumb-link").each(function(a){$(this).find(".thumb-image").height($(this).width())})}function gallery3d(){if(!$(".carousel-3d-gallery").length){return false}if(!$("link[href*='jquery.flipster.min.css']").length){$("head").append("<link rel='stylesheet' href='"+vars.lib_flipster_css+"' />");$("head").append("<script type='text/javascript' src='"+vars.lib_flipster_js+"') }}'><\/script>")}$(".content-3d-gallery").flipster({itemContainer:".carousel-3d-gallery",itemSelector:"figure",style:"carousel",spacing:-0.5,buttons:true})}function galleryCarousel(){if($(".card-gallery .slick-initialized").length){$(".card-gallery .slick-carousel-gallery").slick("unslick")}$carousel=$(".slick-carousel-gallery");$carousel.slick({lazyLoad:"ondemand",dots:false,arrows:true,speed:300,infinite:true,variableWidth:true,autoplay:true,autoplaySpeed:5000,slickPause:true,slidesToShow:2,swipeToSlide:true,responsive:[{breakpoint:640,settings:{arrows:true,speed:200,slidesToShow:1,swipeToSlide:true,variableWidth:false,adaptiveHeight:true}}]});$carousel.slick("setPosition")}function photoSwipe(){var a=function(f){var j=function(l){is_fotorama=($(l).hasClass("fotorama")?true:false);var s=(is_fotorama?$(l).data("fotorama").data:l.querySelectorAll(".thumb-zoom")),k=s.length,o=[],n,p,r,q;for(var m=0;m<k;m++){n=(is_fotorama?s[m].html:s[m]);p=n.getElementsByTagName("a")[0];r=p.getAttribute("data-size").split("x");q={src:p.getAttribute("href"),w:parseInt(r[0],10),h:parseInt(r[1],10),};if(n.children.length>1){q.title=n.children[1].innerHTML}if(p.children.length>0){q.msrc=p.children[0].getAttribute("src")}q.el=n;o.push(q)}return o};var g=function g(k,i){return k&&(i(k)?k:g(k.parentNode,i))};var h=function(p){targetItem=p.target.closest("figure");if(targetItem===null){return false}if(targetItem.classList.contains("thumb-url")){targetLink=targetItem.querySelector(".thumb-link");if(targetLink.getAttribute("target")==="_blank"){window.open(targetLink.getAttribute("href"),"_blank")}else{window.location=targetLink.getAttribute("href")}return false}p=p||window.event;p.preventDefault?p.preventDefault():p.returnValue=false;var m=p.target||p.srcElement;var s=g(m,function(i){return(i.tagName&&i.tagName.toUpperCase()==="FIGURE")});if(!s){return}var q=s.closest(".gallery-popup"),r=q.querySelectorAll(".thumb-zoom"),n=r.length,k=0,o;if($(q).find(".fotorama__nav--thumbs").length){o=($(q).find(".fotorama__nav__frame.fotorama__active").index()-1)}else{for(var l=0;l<n;l++){if(r[l].nodeType!==1){continue}if(r[l]===s){o=k;break}k++}}if(o>=0){d(o,q)}return false};var d=function(l,n,p,q){var i=document.querySelectorAll(".pswp")[0],s,r,o;
3if(vars.custom_app){try{windowsHeightApp=(typeof window.parent.window_height!=="undefined")?window.parent.window_height:$(window).height()}catch(m){windowsHeightApp=$(window).height()}try{scrollTop=(typeof window.parent.scrollPos==="function")?window.parent.scrollPos():$("body").scrollTop()}catch(m){scrollTop=$("body").scrollTop()}$(".pswp__scroll-wrap").css({top:scrollTop+"px",height:windowsHeightApp+"px"});if(vars.ppc=="ios"){setTimeout(function(){$(window.parent).scrollTop(scrollTop)},600)}$(document).on("click",".pswp__share--download",function(){$(this).attr("target","_top").attr("href",$(this).attr("href")+"#native-browser")})}o=j(n);r={galleryUID:n.getAttribute("data-pswp-uid"),history:false,fullscreenEl:false,shareEl:true,counterEl:false,tapToToggleControls:false,showHideOpacity:true,getThumbBoundsFn:false,shareButtons:[{id:"download",label:"Download image",url:"{{raw_image_url}}",download:true}],};if(q){if(r.galleryPIDs){for(var k=0;k<o.length;k++){if(o[k].pid==l){r.index=k;break}}}else{r.index=parseInt(l,10)-1}}else{r.index=parseInt(l,10)}if(isNaN(r.index)){return}if(p){r.showAnimationDuration=0}s=new PhotoSwipe(i,PhotoSwipeUI_Default,o,r);s.init()};var b=document.querySelectorAll(f);for(var e=0,c=b.length;e<c;e++){b[e].setAttribute("data-pswp-uid",e+1);b[e].onclick=h}};a(".gallery-popup")}; 4vars.ppc=getMobile();if(vars.ppc!=undefined&&vars.ppc!="0"){$("body").addClass("device-"+vars.ppc)}jQuery(document).ready(function(a){textRotator();showPopupInit();events_months_navigation();collapse_masonry();menu_hacks();sliders_carousels();sliders_carousels_cards();collpase_products();back_to_top();scroll_anchor();submenuInHome();homeEfectos();videoResponsive();masonry_grid_gallery();gallery3d();galleryCarousel();gallerySquareImage();galleryThumbnails();photoSwipe();homeSlick();search();searchCarta();submenuCarrousel();pestanasHome();openDoofinder();carrouselInteligente();webScraper();checkFixArea();a(".close-wrapper").click("click",function(){a(this).closest(".wrapper-alert").css("display","none")})});$(window).load(function(){force_menu_mobile(0);masonry_db();home_parallax();scroll_anchor()});$(window).resize(function(){force_menu_mobile(0);tabsResponsive();masonry_db();gallerySquareImage();resizeHomeSlick()});$(window).bind("orientationchange",function(){force_menu_mobile(1);tabsResponsive()});jQuery(window).trigger("resize").trigger("scroll");var width_items=0;var finish_submenu_homeslick=1;function force_menu_mobile(a){if(width_items===0||a===1){$(".main-menu .navbar-nav li").each(function(){width_items+=$(this).outerWidth(true)})}width_img=($(".menu-logo-menu, .menu-logo-menu-overlay").length?$(".navbar-brand .logo-img").outerWidth():0);if((width_items+30+width_img)>=$(".main-menu").outerWidth()){$(".main-menu div").removeClass("hidden-md-down").addClass("hidden-xs-up");$(".main-menu button").removeClass("hidden-lg-up")}else{$(".main-menu div").removeClass("hidden-xs-up").addClass("hidden-md-down");$(".main-menu button").addClass("hidden-lg-up");if($("#off-canvas").is(":visible")){$("#off-canvas").offcanvas("hide")}}}function showPopupInit(){if(!$("#popupIni").length||$("#popupIni div").html().trim().length<=0||$.cookie("not-show-popupini")!==undefined){var a=parseInt($("#popupIni").attr("data-popupCookieDies"));if(!checkCookieNumDays("not-show-popupini",a)){return false}}var b=function(){var g=document.querySelectorAll(".pswp")[0];var c=$("#popupIni");var h=c.html();var e=[{html:h}];var f={history:false,closeOnScroll:false,closeOnVerticalDrag:false,bgOpacity:0.8,isClickableElement:function(j){return j.tagName==="A"}};var d=new PhotoSwipe(g,PhotoSwipeUI_Default,e,f);d.init(function(){c.addClass("center-popup")});d.listen("close",function(){c.removeClass("center-popup");var j=parseInt($("#popupIni").attr("data-popupCookieDies"));if(checkCookie("preferencias")){if(j>0){$.cookie("not-show-popupini",1+"#"+j+"#"+vars.username,{path:"/",expires:j})}else{if(!vars.custom_app){$.cookie("not-show-popupini",1+"#"+j+"#"+vars.username,{path:"/"})}}}})};b()}function home_parallax(){if($(".wrapper-parallax").length>0){$(".wrapper-parallax").parallax({overScrollFix:true})}}function videoResponsive(){$("main").fitVids({ignore:".video-responsive"})}function masonry_db(){height_block();var a=$(".masonry-db");var b={itemSelector:".masonry-item",percentPosition:true,isAnimated:true,transitionDuration:0,
4columnWidth:".grid-sizer",resize:true};a.packery(b);a.imagesLoaded(function(){a.packery("reloadItems");a.packery("layout")})}function height_block(){$(".masonry-db .masonry-item").not(".blog-2 .masonry-item").each(function(a){if($(this).hasClass("blog-1x2")){$(this).height($(this)[0].getBoundingClientRect().width/2)}else{if($(this).hasClass("blog-2x2")){$(this).height($(this)[0].getBoundingClientRect().width+($(this)[0].getBoundingClientRect().width*0.01))}else{$(this).height($(this)[0].getBoundingClientRect().width)}}})}function collapse_masonry(){$(".masonry-db.collapse").on("shown.bs.collapse",function(){masonry_db()})}function masonry_grid_gallery(){var a=$(".masonry-grid-gallery");var b={itemSelector:".masonry-item-gallery",resize:true};a.packery(b);a.packery("layout");a.imagesLoaded(function(){a.packery("reloadItems");a.packery("layout")})}function events_months_navigation(){if(!$(".title-event-month").length){return false}$(".month-events").wrapInner("<div class='wrap-events'></div>");$(".title-event-month").each(function(){$(this).parent().find(".title-event-month").html($(this).parent().find(".nav-event-month .btn-events-month[aria-expanded='true']").text());$(this).parent().find(".collapse").on("show.bs.collapse",function(){$(this).closest(".list-intro-content").find(".collapse").collapse("hide");$(this).closest(".list-intro-content").find(".event_prev").removeClass("disabled");$(this).closest(".list-intro-content").find(".event_next").removeClass("disabled")}).on("shown.bs.collapse",function(){btn="a[href='#"+$(this).attr("id")+"']";content=$(this).closest(".list-intro-content");$(content).find(".title-event-month").html($(btn).text());if($(btn).text()===$(content).find(".nav-event-month .btn-events-month:last-child").text()){$(content).find(".event_next").addClass("disabled")}if($(btn).text()===$(content).find(".nav-event-month .btn-events-month:first-child").text()){$(content).find(".event_prev").addClass("disabled")}eventsPaginationHome($(this))});$(this).parent().find(".event_next").click(function(){var a=$(this).closest(".list-intro-content").find(".nav-event-month .btn-events-month[aria-expanded='true']").next().click();if(a.length===0){$(this).addClass("disabled")}});$(this).parent().find(".event_prev").click(function(){var a=$(this).closest(".list-intro-content").find(".nav-event-month .btn-events-month[aria-expanded='true']").prev().click();if(a.length===0){$(this).addClass("disabled")}});if($(this).parent().find(".title-event-month").text()===""){$(this).parent().find(".nav-event-month .btn-events-month").first().click()}$activeMonth=$(this).parent().find(".btn-events-month.active").attr("href");$(this).parent().find(".month-events").each(function(a,b){$(this).removeClass("in")});$($activeMonth).collapse("show")})}function eventsPaginationHome(a){var b=a.closest(".month-events").data("numregshome")-1;b=isNaN(b)?99999:b;var d=0;var c=false;a.find(".event-item").each(function(e,f){if(e<=b){d+=$(f).outerHeight()+4}else{$(f).css("display","none");c=true}});if(c){a.find(".wrap-events").css("height",d);a.find(".wrap-events").addClass("scroll-events");a.find(".event-item").css("display","block")}}function smoothScrollTo(a){if(!a.length&&this.hash){a=$("[name="+this.hash.slice(1)+"]")}if(a.length){$("html, body").animate({scrollTop:a.offset().top-80},750)}}function scroll_anchor(){$('a[href*="#anchor-"]:not([href="#"], .photos-galeria-unica a)').click(function(){if(location.pathname.replace(/^\//,"")===this.pathname.replace(/^\//,"")&&location.hostname===this.hostname){smoothScrollTo($(this.hash));return false}});setTimeout(function(){if(location.hash){window.scrollTo(0,0);target=location.hash.split("#");smoothScrollTo($("#"+target[1]))}},1)}function back_to_top(){var b=200;var a=500;$(window).scroll(function(){if($(this).scrollTop()>b){$(".back-to-top").fadeIn(a)}else{$(".back-to-top").fadeOut(a)}});$(".back-to-top").click(function(c){c.preventDefault();$("html, body").animate({scrollTop:0},a*2);return false})}function menu_hacks(){if(($("body.menu-logo-menu").length||$("body.menu-logo-menu-overlay").length)&&typeof half_menu!="undefined"){$($
4(".main-menu .nav-item").slice(-parseInt(half_menu)).get().reverse()).addClass("pull-xs-right").remove().appendTo(".main-menu .navbar-nav");$(".main-menu").fadeIn("slow")}$(".main-menu .dropdown, .menu-topbar .dropdown, .dropdown-submenu").hover(function(){if($(this).attr("class").indexOf("dropdown-submenu")!=-1){$(this).children(".dropdown-menu").css("margin-top",-Math.abs($(this).height()+1))}$(this).children(".dropdown-menu").stop(true,true).delay(100).fadeIn(300)},function(){$(this).children(".dropdown-menu").stop(true,true).delay(200).fadeOut(300)});$("#off-canvas .dropdown-toggle").click(function(){dropdown=$(this).parent();if(!$(this).closest(".canvas-submenu").length){$("#off-canvas ul.nav > .dropdown.open > a").not(this).parent().removeClass("open").children(".dropdown-menu").slideToggle()}if($(dropdown).children(".dropdown-menu").is(":visible")){$(dropdown).removeClass("open")}else{$(dropdown).addClass("open")}$(dropdown).children(".dropdown-menu").slideToggle();return false})}function sliders_carousels(){if($(".banner-7").length){$(".slick-banner").attr("data-slick",'{"autoplay": false, "fade": false, "vertical": true, "verticalSwiping" : true, "infinite": false}');$(".slick-banner").on("wheel",(function(a){a.preventDefault();if(a.originalEvent.deltaY<0){if($(this).slick("slickCurrentSlide")>0){$(this).slick("slickPrev")}}else{if($(this).slick("slickCurrentSlide")<($(".slick-slider-item").length-1)){$(this).slick("slickNext")}}}))}$(".slider-custom").slick({autoplay:true,fade:true});$(".slick-banner").slick({lazyLoad:"ondemand",dots:true,fade:true,speed:1500,slidesToShow:1,adaptiveHeight:true,autoplay:true,autoplaySpeed:5000,pauseOnHover:false,responsive:[{breakpoint:1024,settings:{fade:false}}]})}function sliders_carousels_cards(a){$((a!==undefined?"#"+a:"")+" .slick-carousel-cards").slick({dots:true,arrows:false,infinite:true,pauseOnDotsHover:true,slickPause:true,autoplaySpeed:5000,speed:300,lazyLoad:"ondemand",slidesToScroll:1,responsive:[{breakpoint:800,settings:{slidesToShow:3}},{breakpoint:641,settings:{speed:200,slidesToShow:2}},{breakpoint:480,settings:{speed:100,slidesToShow:1}}]})}function collpase_products(){var a=document.cookie;$(".collapse-cards:not(.month-events)").each(function(){if(this.id){var b=a.indexOf(this.id+"_collapse_in=");if(b>-1){a.substr(b).split("=")[1].indexOf("false")?$(this).collapse("show"):$(this).collapse("hide")}}}).on("hidden.bs.collapse shown.bs.collapse",function(){if(this.id){document.cookie=this.id+"_collapse_in="+$(this).hasClass("in")}});$(".content-plato-adicional.collapse, .db-adicional .collapse").on("shown.bs.collapse",function(){masonry_grid_gallery();galleryThumbnails();galleryCarousel();gallerySquareImage();gallery3d();photoSwipe()})}function tabsResponsive(){var b=$(".tab-responsive").width();var a=0;$(".nav-tabs .nav-item").each(function(){a+=$(this).outerWidth(true)});if(a>b){$(".more-tabs").show()}else{$(".more-tabs").hide()}}var subMenuTop=null;var restarBefore=null;function submenuInHome(){$(document).on("click",".submenu-in-home .grid, .submenu-in-home .card-home-link, .home-slick .submenu-home-items a",function(a){grid=($(this).closest(".grid").length?$(this).closest(".grid"):$(this));cards=$(this).closest(".cards");subMenuTop=$(this).closest(".submenu-in-home");subMenuItemClick=$(this).closest(".submenu-in-home").find(".submenu-home-items");isSlick=0;if($(this).closest(".slick-slide").length){$(this).animate({opacity:0.7},100,function(){$(this).animate({opacity:1},100)});isSlick=1;$(subMenuItemClick).css("max-height",($(cards).height()-120)+"px");if($(subMenuItemClick).is(":visible")){$(".home-slick").slick("slickSetOption","swipe",true,false);$(".slick-dots").show()}else{$(".home-slick").slick("slickSetOption","swipe",false,false);$(".slick-dots").hide()}isAfter=0;bottom=0;if($(cards).find(".submenu-in-home").length>=2){$(cards).find(".submenu-in-home").each(function(){if($(this).is(":visible")&&isAfter){bottom+=$(this).height()}if($(this)[0]==$(subMenuTop)[0]){isAfter=1}});$(subMenuItemClick).css("bottom",-Math.abs(bottom)+"px")}$(".submenu-in-home .grid").on("touchmove",function(){if($(".submenu-slick-open .submenu-home-items").is(":visible")&&finish_submenu_homeslick){finish_submenu_homeslick=0;$(".submenu-slick-open .grid").trigger("click")}})}isBefore=0;restarBefore=0;$(".submenu-home-items").each(function(){if($(this)[0]==$(subMenuItemClick)[0]){isBefore=1}if($(this).is(":visible")&&!isBefore){restarBefore+=$(this).height()}});$(".submenu-home-items").not(subMenuItemClick).slideUp(300);if(!isSlick||!$(cards).find(".submenu-home-items:visible").length||$(subMenuItemClick).is(":visible")){$(subMenuItemClick).slideToggle(300,function(){finish_submenu_homeslick=1;
4if(vars.custom_app&&inIframeReskyt()&&$("body.is-home").length){parent.submenuCurrentSlick=($(subMenuItemClick).is(":visible")?$(subMenuTop).attr("id"):0)}$(".submenu-slick-open").removeClass("submenu-slick-open");if($(subMenuItemClick).is(":visible")){$(grid).parent().addClass("submenu-slick-open")}else{$(grid).parent().removeClass("submenu-slick-open")}})}if(!isSlick){if(!$(subMenuTop).find(".submenu-slick-open").length){goto_scroll=subMenuItemClick.offset().top-restarBefore-$(grid).height()-$(".reskyt-header").innerHeight();if(vars.custom_app&&inIframeReskyt()&&vars.ppc=="ios"){parent.goScroll(goto_scroll)}$("html, body").animate({scrollTop:goto_scroll},500)}else{if(vars.ppc=="ios"){$("html, body").animate({scrollTop:$(window).scrollTop()},500)}}}if(vars.custom_app&&inIframeReskyt()){parent.hideFullscreen()}return false});$(".submenu-in-home button.familia").click(function(){$(".submenu-in-home button.familia:not(.collapsed)").not(this).trigger("click")});if(!$(".home-slick").length&&vars.custom_app&&inIframeReskyt()&&parent.submenuCurrentSlick){$("body.is-home #"+parent.submenuCurrentSlick+" .grid a").trigger("click")}}function homeEfectos(){if(!vars.custom_app){$(".aniview").AniView()}}function textRotator(){if($(".text-rotateX")){$(".text-rotateX").wodry({animation:"rotateX",delay:2000,animationDuration:800});$(".text-rotateX").fadeIn()}}function homeSlick(){if(!$(".home-slick").length){return false}resizeHomeSlick();$(".home-slick").slick({arrows:false,dots:true,vertical:(vars.home_slick=="vertical-familias"||vars.home_slick=="vertical-opciones"?true:false),verticalSwiping:(vars.home_slick=="vertical-familias"||vars.home_slick=="vertical-opciones"?true:false),infinite:false,initialSlide:(vars.custom_app&&parent.homeCurrentSlick?parent.homeCurrentSlick:0),speed:200});if(vars.custom_app&&parent.submenuCurrentSlick){$("body.is-home #"+parent.submenuCurrentSlick+" .grid").trigger("click")}$(".home-slick").on("click",".slick-slide",function(){if(!$(this).find(".submenu-in-home").length){id=$(this).find(".card-home").parent().attr("id").replace("id","");parent.selectFlickity(id)}}).on("afterChange",function(a,b){if(vars.custom_app){parent.homeCurrentSlick=b.currentSlide;parent.submenuCurrentSlick=0}})}function resizeHomeSlick(){if(!$(".home-slick").length){return false}$(".home-slick, .home-slick .wrapper-section").css("height",parent.window_height+"px");$(".home-slick .wrapper-section").each(function(){cols=$(this).attr("data-cols");cols=(cols==2||cols==3||cols==4?cols:1);cols=(cols==10?5:(cols==7?6:cols));height=parent.window_height/($(this).find(".grid").length/cols);$(this).find(".grid figure, .submenu-in-home, .submenu-in-carrousel").css("height",height+"px")});if($(".slick-initialized").length){$(".home-slick").slick("refresh")}}function searchCarta(){$(".href-buscador-ecommerce").click(function(){$("#form-search-carta").submit();return false});$("#form-search-carta").submit(function(){str=$("#buscador-ecommerce").val();if(!str){return false}loaderNewShow();$("#buscador-ecommerce").blur();url=$("#buscador-ecommerce").attr("url-base").replace("%search%",encodeURIComponent(str));window.location.href=concatCustomapp(url);return false})}function search(){$(".href-buscador-banner").click(function(){$("#form-search-banner").submit();return false});$("#form-search-banner").submit(function(){str=$("#search-input").val();if(!str){return false}loaderNewShow();$("#search-input").blur();url=$("#search-input").attr("url-base").replace("%search%",encodeURIComponent(str));window.location.href=concatCustomapp(url);return false})}function submenuCarrousel(){if($(".submenu-in-carrousel").length){$(document).on("click",".submenu-in-carrousel .grid figure figcaption > a",function(a){return false})}if($(".submenu-in-home-carousel").length){$(".carousel-wrapper").scroll(function(){if($(this).scrollLeft()>50){$(this).parents(".submenu-in-home-carousel").children("h2").css("box-shadow","7px 0px 5px -5px #ddd")}else{if($(this).scrollLeft()<50){$(this).parents(".submenu-in-home-carousel").children("h2").css("box-shadow","none")}}})}}
4function openDoofinder(){if(!vars.custom_app){return false}$("#buscador-ecommerce, #search-input").focus(function(){parent.postMessage("open-doofinder","*")})}function carrouselInteligente(){if($(".carrousel-inteligente").length&&!$.cookie("rkt-carrousel-inteligente")&&checkCookie("preferencias")){$.cookie("rkt-carrousel-inteligente","",{path:"/",expires:730})}if($.cookie("rkt-carrousel-inteligente")!==undefined){$(".content-article a").click(function(b){if($(this).attr("href")&&$(this).attr("href").substr(0,4)=="http"){var a=($.cookie("rkt-carrousel-inteligente")?JSON.parse($.cookie("rkt-carrousel-inteligente")):{});id=parseInt($(this).closest(".content-article").attr("attr-id"));title=$(this).closest(".content-article").find(".list-title").html();src=$(this).closest(".content-article").find(".intrinsic img").attr("src");url=$(this).attr("href");img=(src!==undefined?src:"");clicks=(a[id]!=undefined?a[id][0]+1:1);a[id]=new Array(clicks,title,img,url);if(checkCookie("preferencias")){$.cookie("rkt-carrousel-inteligente",JSON.stringify(a),{path:"/",expires:730})}}})}if($.cookie("rkt-carrousel-inteligente")&&$(".carrousel-inteligente").length){items=JSON.parse($.cookie("rkt-carrousel-inteligente"));articulos=Object.keys(items).map(function(a){items[a][4]=a;return items[a]}).sort(function(d,c){return d[0]-c[0]}).reverse();i=1;$.each(articulos,function(a,b){item=$(".carrousel-inteligente > div:nth-child("+i+")");if($(item).length&&b[1]!==undefined){$(item).find("a").attr("href",b[3]);$(item).find(".card-title").html(b[1]);if(b[2]){$(item).find(".lazyload, .lazyloaded").css("background-image","url('"+b[2]+"')")}else{pal=b[1].split(" ");letra=pal[0].substr(0,1)+(pal[1]!=undefined?pal[1].substr(0,1):"");$(item).find(".lazyload, .lazyloaded").css("background-image","none").html("<span class='letra'>"+letra.toUpperCase()+"</span>")}items[b[4]].splice(4,1);i++}else{items[b[4]].splice(1,4)}});if(checkCookie("preferencias")){$.cookie("rkt-carrousel-inteligente",JSON.stringify(items),{path:"/",expires:730})}}if($(".carrousel-inteligente").length){setTimeout(function(){$(".carrousel-inteligente").animate({opacity:1},800)},600)}}function pestanasHome(){$(".btn-group-home button").click(function(){if($(this).attr("data-url")){document.location=$(this).attr("data-url");return false}section=$(this).closest("section");id_old=$(section).find(".btn-group-home .active-btn").attr("data-id");$(section).find(".btn-group-home .active-btn").removeClass("active-btn");$(this).addClass("active-btn");$("#id"+id_old).css("display","none");$("#id"+id_old).closest(".av-container").css("display","none");$("#id"+$(this).attr("data-id")).css("display","block");$("#id"+$(this).attr("data-id")).closest(".av-container").css("display","block");if($(section).find(".slick-carousel-cards").length){$("#"+$(section).attr("id")).find(".slick-carousel-cards").slick("unslick");sliders_carousels_cards($(section).attr("id"))}if($(section).find(".gallery-popup").length){masonry_grid_gallery()}if($(section).find(".masonry-db").length){masonry_db()}return false})}function checkFixArea(){if(isIphoneX()){document.body.classList.add("fix-safe-area")}if(isIphoneIsland()){document.body.classList.add("fix-safe-area-island")}}function webScraper(){if(!$(".web-scraper").length){return false}$(".web-scraper").each(function(i,item){url=encodeURIComponent($(item).attr("url-scraper"));options={cache:"no-cache",mode:"cors",headers:{}};$(item).append("<div class='rk__products__container'></div>");for(w=0;w<6;w++){loader="<a href='#' class='rk__product is-loading'><div class='rk__image'></div><div class='rk__content'><h2></h2><p></p></div></a>";$(item).find(".rk__products__container").append(loader)}template=$(item).attr("template-scraper");parser=new DOMParser();oTemplate=parser.parseFromString(template,"text/html");js=$(oTemplate).find(".rk__wrapper").attr("disable-js");disable_js=(js===undefined||js=="true"?"?disablejs=true":"");fetch("https://webscrapper.api.reskyt.com/gethtml/"+url+disable_js,options).then(function(response){return response.text()}).then(function(html){oUrl=new URL($(item).attr("url-scraper"));template=$(item).attr("template-scraper");parser=new DOMParser();oTemplate=parser.parseFromString(template,"text/html");style=($(oTemplate).find(".default-carrousel-style").length?true:false);sel=$(oTemplate).find(".rk__wrapper").attr("sel-content");num=$(oTemplate).find(".rk__wrapper").attr("num-items");num=(num===undefined?50:num);doc=parser.parseFromString(html,"text/html");products=Array.from(doc.querySelectorAll(sel));arraySlicedProds=products.slice(0,num);$(item).find(".rk__products__container").html("");
4if(style){$(item).find(".rk__products__container").addClass("default-carrousel-style")}arraySlicedProds.map(function(prod,y){oTemplate=parser.parseFromString(template,"text/html");$(oTemplate).find("[data-content]").each(function(){origin=$(this).attr("data-content");if(prod.querySelector(origin)){if($(this).attr("src")=="#"){attr=$(this).attr("data-attr");content=(attr?prod.querySelector(origin).getAttribute(attr):prod.querySelector(origin).getAttribute("src"));$(this).attr("src",content)}else{if($(this).attr("href")=="#"){attr=$(this).attr("data-attr");content=(attr?prod.querySelector(origin).getAttribute(attr):prod.querySelector(origin).getAttribute("href"));if(content.substr(0,1)=="/"){content=oUrl.origin+content}$(this).attr("href",content)}else{if($(this).text()=="#text#"){content=prod.querySelector(origin).innerText;$(this).text(content)}else{if($(this).text()=="#html#"){content=prod.querySelector(origin).innerHTML;$(this).html(content)}}}}func=$(this).attr("data-setter");if(func&&typeof eval(func)!="undefined"){eval(func+"($(this), content)")}}else{$(this).remove()}if(arraySlicedProds.length==(y+1)){loadLoaderClick()}});html=$(oTemplate).find(".rk__wrapper").html();$(item).find(".rk__products__container").append(html)});loadLoaderClick()})})}; 5vars.ppc=getMobile();var rkDoOnce=false;var rkCustomBack=0;$(function(){if(vars.custom_app){$(".lang-item").click(function(){parent.postMessage("lang-"+$(this).attr("lang"),"*")});$("#off-canvas").on("show.bs.offcanvas",function(b){parent.resizeIframeMenu($("#off-canvas").is(":visible"))}).on("hide.bs.offcanvas",function(b){parent.resizeIframeMenu($("#off-canvas").is(":visible"))});$(vars.selector_domains_native_broser).each(function(){if($(this).attr("href").indexOf("#")==-1){$(this).attr("href",$(this).attr("href")+"#native-browser")}});$("body#home .card-home a, body#carta .list-card a, body#carta .list-row a, body#carta .metro-item a, .content-aviso .descripcion-plato a, .slick-slider-item a").click(function(){if(!vars.homeWithWrapper&&$(this).attr("href")&&$(this).attr("href").substr(-4)!=".pdf"&&$(this).attr("href").substr(-4)!=".doc"&&$(this).attr("href").substr(-4)!=".docx"&&$(this).attr("href").substr(-4)!=".xls"&&$(this).attr("href").substr(-4)!=".xlsx"&&$(this).attr("href").substr(-15)!="#native-browser"&&($(this).attr("href").substr(0,7)=="http://"||$(this).attr("href").substr(0,8)=="https://")){href=$(this).attr("href");$(this).prop("href",concatCustomapp(href));$(this).attr("href",concatCustomapp(href))}});$(document).on("click","a.df-card__image, a.df-card__main, a.df-card__content__block",function(b){b.preventDefault();loaderNewShow();window.location.href=concatCustomapp($(this).attr("href"));return false});$("body#home .card-home a").click(function(){if(!vars.sin_frame&&!$(this).closest(".slick-slide").length&&!$(this).closest(".submenu-in-home").length){id=$(this).closest(".card-home").parent().attr("id").replace("id","");parent.selectFlickity(id)}});$("body#home .submenu-home-items a").click(function(){if(!vars.sin_frame){id=$(this).closest(".card-home").parent().attr("id").replace("id","");parent.selectFlickity(id)}});if(vars.homeWithWrapper&&vars.sin_frame&&parent!=window){parent.postMessage({home_rk:($("body.is-home").length?1:0)},"*");inputs="input[type='text'], input[type='search'], input[type='password'], input[type='date'], input[type='tel'], input[type='email'], input[type='number']";$(inputs).focus(function(){parent.postMessage({show_bars_rk:0},"*")});$(inputs).blur(function(){parent.postMessage({show_bars_rk:1},"*")})}}loadLoaderClick();if(vars.ppc!=undefined&&vars.ppc!="0"){if(vars.ppc=="ios"){window.onpageshow=function(b){if(b.persisted){document.body.style.display="none";location.reload()}}}$(document).on("click",".calendar-event-day",function(c){loaderNewShow();c.preventDefault();var b=$(this);setTimeout(function(){window.location.href=$(b).attr("href")},20)})}if(vars.ppc!=0){$("#off-canvas").offcanvas({placement:"right",canvas:"body",autohide:false,recalc:false,toggle:false,disableScrolling:false,});
5$("#off-canvas a").not("#off-canvas .dropdown-toggle").click(function(){$("#off-canvas").offcanvas("hide")})}else{var a=$("#off-canvas");$dropdown=a.find(".dropdown");$dropdown.on("show.bs.dropdown",function(){$(this).find(".dropdown-menu").slideDown(350)}).on("hide.bs.dropdown",function(){$(this).find(".dropdown-menu").slideUp(350)})}$(document).on("click",".layout-off-canvas",function(){$("#off-canvas").offcanvas("hide")})});function toggleMenu(){$("#off-canvas").offcanvas("toggle")}function rkSetPaginationItems(a){if(a.indexOf("pagina_menu=1")>-1){return}rkPagination=JSON.parse(localStorage.getItem("rk-pagination-items")||"[]");rkPaginationObject={url:a};rkPagination.push(rkPaginationObject);localStorage.setItem("rk-pagination-items",JSON.stringify(rkPagination))}window.addEventListener("message",function(a){if(a.data.type==="rkCustomBack"){rkPagination=JSON.parse(localStorage.getItem("rk-pagination-items")||"[]");lastPagination=rkPagination.toReversed()[0].url;rkPagination.pop();localStorage.setItem("rk-pagination-items",JSON.stringify(rkPagination));rkCustomBack=1;document.location.href=lastPagination}});window.addEventListener("pagehide",function(a){if(!vars.homeWithWrapper){return false}if(rkCustomBack===0){if(!rkDoOnce){window.parent.postMessage({home_rk:0},"*");rkSetPaginationItems(document.location.href);rkDoOnce=true}}});function loadLoaderClick(){if(vars.ppc!=undefined&&vars.ppc!="0"){$("a, .tab-url").not(".no-loader, a[data-toggle='collapse'], a[href^='mailto:'], a[href^='https://api.whatsapp.com'], a[href^='whatsapp://'], a[href^='javascript:'], a[href$='#native-browser'], a[href$='#native-scan'], a[href$='#native-scan-url'], a[href$='#enable-push'], a[href$='#native-tabs'], a[href$='.pdf'], a[href$='.doc'], a[href$='.docx'], a[href$='.xls'], a[href$='.xlsx'], a[href$='.ics'], a[href^='tel:'], a[href='#'], a[href=''], .nivel1, .barreta-reskyt a, #menu-top, .close-accept-cookies, .close-install-app, .href-download-app, .social-networks a:not(.href-gallery-user), .fancybox, #fancybox-right, #fancybox-left, #fancybox-close, .descripcion-plato:not(.descripcion-aviso) a, .pin-fideliza a, .descripcion-carta a, .text_info a, .text_quienessomos a, .descripcion-encuesta a, .go-facebook a, .go-twitter a, .close-sidr, .download-doc, .btn-events-month, .event_prev, .event_next, .photos-galeria-unica a, .close-zoom-single, .submenu-in-home .grid a, .submenu-in-home .card-home-link, .submenu-in-carrousel .grid a, .submenu-in-carrousel .card-home-link, .nav-tabs .nav-link, .gotodown, .lang-link, .href-view-db, .href-fideliza-tr").click(function(b){loaderNewShow();b.preventDefault();var a=$(this);if((vars.homeWithWrapper||vars.paginaMenu)&&parent!=window&&($(this).attr("href").substr(0,7)=="http://"||$(this).attr("href").substr(0,8)=="https://")){rkCustomBack=1;parent.postMessage({redirect_rk:$(this).attr("href"),frameactualurl:document.location.href},"*");return false}setTimeout(function(){if($(a).attr("target")=="_top"){window.top.location.href=$(a).attr("href")}else{if($(a).attr("target")=="_parent"){window.parent.location.href=$(a).attr("href")}else{if($(a).attr("target")=="_blank"){window.open($(a).attr("href"),"_blank");loaderNewHide()}else{window.location.href=$(a).attr("href")}}}},20)});if(vars.paginaMenu){loaderNewHide()}}}function rkSendPostOutside(a,b){parent.postMessage({from:"RESKYT",type:a,data:b},"*")}; 6$(function(){countdown();if(vars.custom_app){if($(".embed-form").length){token_app=(vars.sin_frame?($.cookie("token_app")?$.cookie("token_app"):""):parent.token);uuid_app=(vars.sin_frame?($.cookie("uuid_app")?$.cookie("uuid_app"):""):parent.uuid);$(".embed-form").each(function(){$(this).attr("src",$(this).attr("src").replace("?embedded=1","?embedded=1&customapp=2&token="+token_app+"&uuid="+uuid_app))})}$(document).on("click","a[href^='tel:'], a[href^='mailto:']",function(){window.parent.location.href=$(this).attr("href");return false});$('a[target="_blank"]').removeAttr("target");if(vars.whitelabel_domain){$(document).on("click","a[href$='.pdf'], a[href$='#native-browser']",function(){if($(this).attr("href").substr(0,1)=="/"){$(this).attr("href","http://"+vars.whitelabel_domain+$(this).attr("href"))}})}if(vars.ppc=="android"){$(document).on("click","a[href$='#native-scan'],a[href$='#native-scan-url'],a[href$='#enable-push'],a[href$='#native-tabs'],a[href$='#native-browser']:not(a[href$='.pdf#native-browser']):not(a[href$='.ics#native-browser'])",function(){window.open($(this).attr("href"),"_top");return false});$("a[href$='.ics'],a[href$='.ics#native-browser']").click(function(){window.open($(this).attr("href").replace(".ics",".vcal"),"_top");return false})}$("a[href^='http://issuu.com']").click(function(){window.parent.document.getElementById("iframecustomapp").height=parent.window_height});if(vars.customapp_pdf_blank=="1"){if(vars.ppc=="android"){$(document).on("click","a[href$='.pdf'], a[href$='.pdf#native-browser'], a[href$='.doc'], a[href$='.docx'], a[href$='.xls'], a[href$='.xlsx']",function(){window.open($(this).attr("href")+($(this).attr("href").indexOf("#native-browser")!=-1?"":"#native-browser"),"_top");return false})}else{$(document).on("click","a[href$='.pdf'], a[href$='.doc'], a[href$='.docx'], a[href$='.xls'], a[href$='.xlsx']",function(){window.location.href=$(this).attr("href")+"#native-browser";return false})}}else{$(document).on("click","a[href$='.pdf'], a[href$='.pdf#native-browser'], a[href$='.doc'], a[href$='.docx'], a[href$='.xls'], a[href$='.xlsx']",function(){loaderNewSh
6ow();url=$(this).attr("href").replace("#native-browser","");if(url.indexOf("/pdf/productos/view/")!=-1||url.indexOf("file=.pdf")!=-1||url.indexOf("file=.doc")!=-1||url.indexOf("file=.docx")!=-1||url.indexOf("file=.xls")!=-1||url.indexOf("file=.xlsx")!=-1||(url.indexOf("/download/")!=-1&&url.indexOf("/producto.pdf")!=-1)){$.ajax({url:url,type:"POST",data:{googleviewer:1},success:function(a){window.location.href="https://drive.google.com/viewerng/viewer?embedded=true&url="+a}})}else{if(url.substr(0,1)=="/"){url="https://reskyt.com"+url}window.location.href="https://drive.google.com/viewerng/viewer?embedded=true&url="+url}return false})}if($("#pdf-trigger").length){$("#pdf-trigger").trigger("click")}}});function countdown(){if(!$(".countdown").length){return false}end_date=$(".countdown").attr("date").split(" ");date=end_date[0].split("-");hour=end_date[1].split(":");var b=new Date(date[0],date[1]-1,date[2],hour[0],hour[1],"00");var d=new Date();var f=0;var a=0;var c=0;var g=0;if(b>d){var e=(b.getTime()-d.getTime())/1000;f=Math.floor(e/86400);e=e-(86400*f);a=Math.floor(e/3600);e=e-(3600*a);c=Math.floor(e/60);e=e-(60*c);g=Math.floor(e);$(".countdown").find(".dias").html(f);$(".countdown").find(".horas").html(a);$(".countdown").find(".minutos").html(c);$(".countdown").find(".segundos").html(g);if(f>0||a>0||c>0||g>0){setTimeout(countdown,1000)}}}; 7var addthis_config={services_compact:"email, twitter, google_plusone_share, pinterest_share, more"};var nowBanner=-1;vars.ppc=getMobile();$(function(){notifyStatus(true);collapse_grid_form();reloadTableResponsive();if(vars.custom_app&&vars.ppc=="android"){$(".fluid-width-video-wrapper iframe, .video-responsive iframe").each(function(){if($(this).attr("src").indexOf("youtube.")!=-1){$(this).attr("src",$(this).attr("src")+($(this).attr("src").indexOf("?")!=-1?"&":"?")+"enablejsapi=1&showinfo=0")}});document.addEventListener("visibilitychange",function(){if(document.visibilityState=="hidden"){$(".fluid-width-video-wrapper iframe, .video-responsive iframe").each(function(){if($(this).attr("src").indexOf("youtube.")!=-1){$(this)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}})}});if(vars.video_fullscreen_android){$(".fluid-width-video-wrapper iframe, .video-responsive iframe").each(function(){if($(this).attr("src").indexOf("vimeo.")!=-1){$(this).removeAttr("mozallowfullscreen").removeAttr("webkitallowfullscreen").removeAttr("allowfullscreen");var a=new Vimeo.Player($(this));$(this).parent().wrap("<div class='video-fullscreen'></div>");a.on("play",function(){showFullscreenVideo(a.element)})}if($(this).attr("src").indexOf("youtube.")!=-1){$(this).parent().wrap("<div class='video-fullscreen'></div>");$(this).removeAttr("mozallowfullscreen").removeAttr("webkitallowfullscreen").removeAttr("allowfullscreen");$(this).load(function(){var b=new YT.Player($(this).get(0),{events:{onStateChange:onPlayerStateChange}})})}});$(document).on("click",".exit-fullscreen-video",function(){iframe=$("#video-fullscreen iframe");if($(iframe).attr("src").indexOf("vimeo.")!=-1){var a=new Vimeo.Player($(iframe));a.pause()}else{$(iframe)[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}$("#video-fullscreen .video-responsive, #video-fullscreen .fluid-width-video-wrapper").css("top","");$("#video-fullscreen .video-responsive, #video-fullscreen .fluid-width-video-wrapper").closest(".list-video-none").addClass("list-video").removeClass("list-video-none");$("#video-fullscreen").removeAttr("id").removeAttr("style");$(".exit-fullscreen-video").remove();parent.fullscreenOff();return false});window.addEventListener("orientationchange",function(){setTimeout(function(){adjustVideoPos()},300)},false)}}$("#form-galeria").on("change","#documento-upload",function(){fileUpload()});$("a[href='#'], a[href='']").not(".web-button, .send-form-menu, .dropdown-toggle").click(function(){return false});$(".send-form-menu").click(function(){$(this).closest("form").find("input[type='submit']").trigger("click");return false});if($("#install-app").length&&$.cookie("reskyt-install-app")){$("#install-app").remove()}else{if($("#install-app").length){$("#install-app").css("display","block")}}$(".close-accept-cookies, .accept-setup-cookies").click(function(){accept=1;if($(this).hasClass("accept-setup-cookies")){accept="";$("#dialog-conf-cookies input[type=checkbox]:checked").each(function(a,b){accept+=(a?"-":"")+$(b).attr("name")}
7)}if($.cookie("reskyt-accept-cookies",accept,{path:"/",expires:730})){$("#accept-cookies, #wrap-cookies, #dialog-conf-cookies").fadeOut()}return false});$(".close-install-app").click(function(){if(checkCookie("preferencias")){$.cookie("reskyt-install-app",1,{path:"/",expires:1})}$("#install-app").remove();return false});$(".href-fideliza-tr").click(function(){loaderNewShow();$.ajax({url:$(".href-fideliza-tr").attr("href"),type:"POST",data:{tarjeta:$("#search-tr").val()},success:function(a){loaderNewHide();$("#result-movimientos-tr").html(a)}});return false});$(document).on("click",".reskyt-favoritos-button",function(){loaderNewShow();notifyStatus(false);return false});$(".comprobacion1-form").each(function(){$(this).val("*#@"+$(this).attr("id-form")+"@#*")});if($.cookie("reskyt-accept-cookies")||$.cookie("reskyt-decline-cookies")){}else{if($("#accept-cookies").length){showCookieBanner()}}$(".conf-cookies").click(function(){cookies=$.cookie("reskyt-accept-cookies");$("#dialog-conf-cookies input[type=checkbox]:not(:disabled)").prop("checked",false);if(cookies&&cookies!="1"){aSplit=cookies.split("-");$(aSplit).each(function(b,a){$("#dialog-conf-cookies input[name="+a+"]").prop("checked",true)})}$("#dialog-conf-cookies").center().fadeIn();$("#wrap-cookies").fadeIn();$("#accept-cookies").fadeOut();return false});$(".decline-cookies").click(function(){$.cookie("reskyt-decline-cookies",1,{path:"/",expires:730});$("#wrap-cookies").fadeOut();$("#accept-cookies").fadeOut();return false});$(".close-dialog-conf-cookies").click(function(){$("#dialog-conf-cookies").fadeOut();if($.cookie("reskyt-accept-cookies")){$("#wrap-cookies").fadeOut()}else{showCookieBanner()}return false});if($("#install-app").length&&vars.ppc){$(".title-app span").html((vars.ppc=="ios"?"App Store":(vars.ppc=="windows"?"Windows Phone":"Google Play")))}if(vars.ppc=="android"&&!vars.custom_app&&window.location.href.indexOf("app.reskyt.com")!=-1){$(".href-whats").css("display","none")}$(".input-search-db").each(function(){$(this).autocomplete({source:url.path_search_db+"?tipo_search=1&tipo="+$(this).attr("rel"),minLength:3,select:function(a,b){loaderNewShow();window.location.href=b.item.url},create:function(a,b){$(this).data("ui-autocomplete")._renderItem=function(c,d){return $("<li>").append("<a>"+(d.img?"<img class='search-db-img' src="+d.img+" alt='"+d.value+"' />":"")+"<div class='search-db-text'>"+d.value+"</div></a>").appendTo(c)}}})});form_encuesta=false;$("#form-encuesta, #dynamicForm").submit(function(a){loaderNewShow();$(".submit-encuesta button, .submit-encuesta input[type=submit]").attr("disabled","true");if(vars.ppc=="android"&&a.originalEvent!==undefined){form_encuesta=$(this);a.preventDefault();setTimeout(function(){$(form_encuesta).submit()},20)}})});function showCookieBanner(){$("#accept-cookies").fadeIn();if(window.location.href.indexOf("politica-cookies.html")==-1){$("#wrap-cookies").fadeIn()}else{$("#wrap-cookies").fadeOut()}}function onPlayerStateChange(a){if(a.data==1){showFullscreenVideo(a.target.a)}}function adjustVideoPos(){scrollPos=parent.scrollPos()-10;scrollPos=scrollPos+((screen.height-$("#video-fullscreen .video-responsive, #video-fullscreen .fluid-width-video-wrapper").outerHeight())/2);$("#video-fullscreen .video-responsive, #video-fullscreen .fluid-width-video-wrapper").css("top",scrollPos);$(".exit-fullscreen-video").css("top",scrollPos+10)}function showFullscreenVideo(a){if($(".exit-fullscreen-video").length){return false}$(a).closest(".video-fullscreen").attr("id","video-fullscreen");$(a).closest(".list-video").addClass("list-video-none").removeClass("list-video");$("#video-fullscreen").prepend('<a href="#" class="exit-fullscreen-video"><i class="fa fa-compress"></i></a>');parent.fullscreenOn();$("#video-fullscreen").css("height",$(window).height()+"px").fadeIn("fast");adjustVideoPos()}function getSocialCode(a,b){return'<a class="addthis_button_facebook_like" fb:like:layout="button_count" fb:like:href="'+a+'"></a><a class="addthis_button_tweet" tw:url="'+a+'"></a>'}function reloadTableResponsive(){$(".ficha-db table, .descripcion-plato table, .descripcio_cartes table, .descripcion-carta table, .text_info table, .text_quienessomos table, .descripcion-encuesta table, .content-plato-adicional table").each(function(){if($.fn.dataTableExt&&$(this).find("caption")&&$(this).find("caption:first").html()==" "){if(!$(this).find("thead").length){thead=$(this).find("tr:first").html();$(this).find("tr:first").remove();$(this).prepend("<thead><tr>"+thead.replace(/<td>/gi,"<th>").replace(/<\/td>/gi,"</th>")+"</tr></thead>")}$(this).attr("width","100%").removeAttr("style").removeAttr("height");
7$(this).DataTable({destroy:true,searching:false,paging:false,info:false,responsive:true,order:[]})}})}$(document).on("click",".db-back",function(){window.history.back();if($(".slick-carousel-gallery").length){$(".slick-carousel-gallery").get(0).slick.setPosition()}return false});$(".href-footer-left").click(function(){window.history.back();return false});$(".href-footer-right").click(function(){window.history.forward();return false});function fileUpload(){loaderNewShow();$.ajaxFileUpload({url:$("#form-galeria").attr("action"),secureuri:false,fileElementId:"documento-upload",type:"POST",dataType:"text",data:{isXmlHttpRequest:"true"},success:function(a){if(a=="1"){$(".flash-message-gallery").css("display","block")}else{$("#content-gallery-user").html(a);if(vars.plantilla_new===0){reloadFotorama()}else{galleryThumbnails();gallerySquareImage();galleryCarousel();gallery3d();photoSwipe()}}$("#documento-upload").attr({value:""});loaderNewHide();return false}});return false}function notifyStatus(b){if(!$(".reskyt-favoritos-button").length){return false}lcId=($("#platoId").length?$("#platoId").attr("data-platoid"):($("#cartaId").length?$("#cartaId").attr("data-cartaid"):false));if(!lcId){return false}var d=$(".reskyt-favoritos-button").attr("data-url");var c=$(".reskyt-favoritos-button").attr("data-lang");var a=(b?"notifyInit":$(".reskyt-favoritos-button").attr("data-action"));$.ajax({url:d,type:"POST",dataType:"json",data:{action:a,forcePath:$("body").attr("id"),identificador:lcId,idioma_iso:c},success:function(e){if(e.ok){$(".reskyt-favoritos-button").css("display","inline-block");$("#labelBotoFavoritos").text(e.nomBoto);$(".reskyt-favoritos-button").attr("data-action",e.actionBoto);$(".reskyt-favoritos-button i").removeClass("notifyOff notifyOn");$(".reskyt-favoritos-button i").addClass((e.actionBoto=="favorito-add"?"notifyOff":"notifyOn"))}loaderNewHide();return false}});return false}function masonry_grid_form(){var a=$(".masonry-grid-form");var b={itemSelector:".masonry-form-item",isFitWidth:true,isAnimated:false,transitionDuration:0,resize:true};a.masonry(b);a.masonry("reloadItems");a.masonry("layout")}function collapse_grid_form(){$(".content-plato-adicional.collapse").on("shown.bs.collapse",function(){$(this).find("iframe").each(function(a){if($(this).attr("class")=="embed-form"){this.contentWindow.masonry_grid_form();this.height=this.contentWindow.document.body.offsetHeight+25}})})};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.