var CardXL={controller:null,init:function(){CardXL.controller=new ScrollMagic.Controller,$(document).find(".card-xl.bg-image:not(.isAuthor), .card-xl:not(.isAuthor) .bg-image").each(function(){CardXL.parallaxAnimate($(this))}),$(document).find(".card-xl:not(.isAuthor)").each(function(){$(document).find(".card-es-component").parent().prev().hasClass("hero-moments")||$(document).find(".card-es-component").parent().prev().hasClass("hero")||CardXL.loadAnimate($(this))}),$(document).find(".input-dynamic-link").each(function(){var t,a;window.innerWidth<1024&&(t=$(this).attr("value"),a=$(this).closest(".card-product"),null!=t)&&(a.find(".JS-modal-link").children("a").attr("href",t),a.find(".JS-modal-link").removeClass("JS-modal-link"))}),$(".card-funnel-button").click(function(t){t.preventDefault(),link=$(this).children(".rp-btn.rp-link-click").attr("href");t={id:$(this).attr("data-product-id"),name:$(this).attr("data-product-name"),rate:$(this).attr("data-product-rate"),family:$(this).attr("data-product-family"),commodity:$(this).attr("data-product-commodity"),isFlatRate:$(this).children(".productIsFlatType").text()};Repsol.utils.createStorage("quoteProduct",t,!1),setTimeout(function(){window.location=link},1e3)})},event:function(){$(window).resize(function(){CardXL.parallaxAnimate()})},parallaxAnimate:function(t){var a,n;0")})}};$(document).ready(function(){CardXL.init(),CardTariff.init(),renderList.init()});