1/*! weLife 2021-07-12 */ 2var getClosest = function (a, b) { var c = null; return 1 === $(a).length ? $(a) : 1 === $(a, b).length ? $(a, b) : (b.parents().each(function () { c || $(a, $(this)).length >= 1 && (c = $(a, $(this))) }), c ? c : $()) }, burger = function () { var a = [], b = function () { for (var b = document.querySelectorAll('[data-type="menu"]'), c = 0, d = b.length; c < d; c++)b[c].onclick = function () { var a = document.getElementsByTagName("header")[0]; if (a.classList) a.classList.toggle("open"); else { var b = this.className.split(" "), c = b.indexOf("open"); c >= 0 ? this.splice(c, 1) : b.push("open"), this.className = b.join(" ") } }, a.push(b[c]) }, c = function () { var a = window.innerWidth; if (a > 992) { document.getElementsByTagName("header")[0].classList.remove("open"); for (var b = document.querySelectorAll('[data-type="menu"]'), c = 0, d = b.length; c < d; c++)b[c].classList.remove("open") } }; return { init: function () { b() }, resize: function () { document.querySelectorAll('[data-type="menu"]').length > 0 && c() } } }(), toggle = function () { var a = [], b = function () { for (var b = document.querySelectorAll('[data-type="toggle"]'), c = 0, d = b.length; c < d; c++)b[c].onclick = function () { if (this.parentNode.classList) this.parentNode.classList.toggle("open"); else { var a = this.parentNode.className.split(" "), b = a.indexOf("open"); b >= 0 ? a.splice(b, 1) : a.push("open"), this.parentNode.className = a.join(" ") } }, a.push(b[c]) }; return { init: function () { b() } } }(), socialShare = function () { var a = [], b = function (b) { var c = null; return a.forEach(function (a) { a.ele[0] === b[0] && (c = a) }), c }, c = function (a, b) { var c; "undefined" != typeof socialAction && ("twitter" === a ? c = "twitter" : "google" === a ? c = "google plus" : "whatsapp" === a ? c = "whatsapp" : "linkedin" === a ? c = "linkedin" : "pinterest" === a ? c = "pinterest" : "facebook" === a ? c = "facebook" : "messenger-desktop" !== a && "messenger-mobile" !== a || (c = "messenger"), socialAction(c, "compartir", b)) }, d = function (a, b, c, d, e) { var f, g, h = null, i = "window"; if ("twitter" === a) { var j = []; f = "https://twitter.com/intent/tweet?text=", c && j.push(c), j.push(b), d && j.push(d), f += j.join(" "), h = 650, g = 360 } else "google" === a ? (f = "https://plus.google.com/share?hl=" + document.documentElement.lang + "&url=" + b, h = 500, g = 500) : "whatsapp" === a ? (f = "whatsapp://send?text=", c && (f += c), f += " " + encodeURI(b), i = "redirect") : "linkedin" === a ? (f = "https://www.linkedin.com/shareArticle?mini=true&url=" + encodeURI(b), h = 520, g = 570) : "pinterest" === a ? (f = "https://pinterest.com/pin/create/button/?url=" + encodeURI(b), f += "&description=" + c, h = 734, g = 535) : "messenger-desktop" === a ? f = "http://www.facebook.com/dialog/send?app_id=" + zProperties.fbAppId + "&link=" + b + "&redirect_uri=" + b : "messenger-mobile" === a ? (f = "fb-messenger://share?link=" + encodeURI(b), i = "redirect") : "facebook" === a && (f = "http://www.facebook.com/sharer/sharer.php?u=" + b, h = 900, g = 500); "redirect" === i ? document.location.href = f : e ? window.open(f, "_system") : h ? window.open(f, a, "toolbar=0,status=0,width=" + h + ",height=" + g) : window.open(f, a) }, e = function (a, b, c, e) { var f = !1; async.series([function (d) { "twitter" === a ? window.plugins.socialsharing.shareViaTwitter(c, null, b, null, function () { f = !0, d() }) : "google" === a ? d() : "whatsapp" === a ? window.plugins.socialsharing.shareViaWhatsApp(c, null, b, null, function () { f = !0, d() }) : "linkedin" === a ? d() : "pinterest" === a ? d() : "messenger-desktop" === a ? (a = "messenger-mobile", f = !0, d()) : "messenger-mobile" === a ? (f = !0, d()) : "facebook" === a && window.plugins.socialsharing.shareViaFacebook(c, null, b, null, function () { f = !0, d() }) }], function () { f && d(a, b, c, e, !0) }) }, f = function (a, b, f, g, h) { var i; i = "twitter" === a.getAttribute("data-share-button") ? "twitter" : "google" === a.getAttribute("data-share-button") ? "google" : "
2whatsapp" === a.getAttribute("data-share-button") ? "whatsapp" : "linkedin" === a.getAttribute("data-share-button") ? "linkedin" : "pinterest" === a.getAttribute("data-share-button") ? "pinterest" : "messenger" === a.getAttribute("data-share-button") ? h && Modernizr.mq("(max-width: " + h + "px)") ? "messenger-mobile" : "messenger-desktop" : "facebook", window.plugins && window.plugins.socialsharing ? e(i, b, f, g) : d(i, b, f, g, !1), c(i, b) }, g = function () { var c = document.querySelectorAll("[data-share-url]"); c.forEach(function (c, d) { var e = c.getAttribute("data-share-url"), g = c.getAttribute("data-share-text") ? c.getAttribute("data-share-text") : null, h = c.getAttribute("data-share-posttext") ? c.getAttribute("data-share-posttext") : null, i = null; if (void 0 !== c.getAttribute("data-share-mobileon-xs") && (i = 767), void 0 !== c.getAttribute("data-share-mobileon-sm") && (i = 991), void 0 !== c.getAttribute("data-share-mobileon-md") && (i = 1199), !b(c)) if (a.push({ ele: c }), c.getAttribute("data-share-button")) console.log("It's a button"), this.addEventListener("click", function () { f(c, e, g, h, i) }, !1); else { var j = c.querySelectorAll("[data-share-button]"); j.forEach(function (a, b) { a.addEventListener("click", function () { f(a, e, g, h, i) }, !1) }) } }) }; return { init: function () { g() }, reload: function () { g() }, execute: function (a, b, c, d) { var e = null; void 0 !== a.getAttribute("data-share-mobileon-xs") && (e = 767), void 0 !== a.getAttribute("data-share-mobileon-sm") && (e = 991), void 0 !== a.getAttribute("data-share-mobileon-md") && (e = 1199), f(a, b, c, d, e) } } }(), carousel = function () { var a = [], b = function (b) { for (var c = document.querySelectorAll('[data-type="carousel"]'), d = 0, e = c.length; d < e; d++) { var f, g = c[d].getAttribute("data-carousel-items-xs") ? c[d].getAttribute("data-carousel-items-xs") : 1, h = c[d].getAttribute("data-carousel-items") ? c[d].getAttribute("data-carousel-items") : 1; f = 1 == g && 235; var i; i = 1 == h && 200; var j = "o-carousel-" + d; console.log(j + "/ numItems: " + h), c[d].classList.add(j); var k = tns({ container: "." + j + " .o-carousel__wrap", items: g, autoplay: !1, gutter: 15, mouseDrag: !0, nav: !0, navPosition: "bottom", controlsText: ['<svg aria-hidden="true" focusable="false" data-prefix="fal" data-icon="angle-left" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512">\n<path fill="#05DCDC" d="M25.1 247.5l117.8-116c4.7-4.7 12.3-4.7 17 0l7.1 7.1c4.7 4.7 4.7 12.3 0 17L64.7 256l102.2 100.4c4.7 4.7 4.7 12.3 0 17l-7.1 7.1c-4.7 4.7-12.3 4.7-17 0L25 264.5c-4.6-4.7-4.6-12.3.1-17z" class=""></path>\n</svg>', '<svg aria-hidden="true" focusable="false" data-prefix="fal" data-icon="angle-left" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512">\n<path fill="#05DCDC" d="M25.1 247.5l117.8-116c4.7-4.7 12.3-4.7 17 0l7.1 7.1c4.7 4.7 4.7 12.3 0 17L64.7 256l102.2 100.4c4.7 4.7 4.7 12.3 0 17l-7.1 7.1c-4.7 4.7-12.3 4.7-17 0L25 264.5c-4.6-4.7-4.6-12.3.1-17z" class=""></path>\n</svg>'], speed: 300, edgePadding: 35, responsive: { 768: { edgePadding: 90, gutter: 20, items: h } }, startIndex: b ? b : 0 }); c[d] = k, a.push(c[d]) } }, c = function () { for (var b = 0, c = a.length; b < c; b++)for (var b = 0, c = this.carousel.length; b < c; b++)this.carousel[b].destroy(), this.carousel[b] = this.carousel[b].rebuild() }; return { init: function (a) { b(a) }, resize: function () { c() } } }(), slides = [], slider = function () { var a = function () { for (var a = document.querySelectorAll('[data-type="slider"]'), b = 0, c = a.length; b < c; b++) { var d = "o-slider-" + b; a[b].classList.add(d), slides[b] = tns({ container: "." + d + " .o-slider__wrap", autoplay: !1, items: 1, speed: 300, swipeAngle: 30, gutter: 5, mouseDrag: !0, loop: !1, nav: !1, controls: !1 }), slides.push(slides[b]) } }; return { init: function () { console.log("slider iniciado"), a() } } }(), headVisible = function () { return { init: function () { const a = document.querySelector("header"); window.addEventListener("scroll", function () { const b = document.getElementById("video"); b && (window.scrollY < b.scrollHeight ? a.classList.add("fixed") : a.classList.remove("fixed")) }) } } }(), expo = function () { var a = [], b = function () { for (var b = document.querySelectorAll('[data-type="expo"]'), c = 0, d = b.length; c < d; c++) { var e = "o-expo-" + c, f = b[c]; f.classList.add(e), $(f).slick({ focusOnSelect: !0, infinite: !1, arrows: !1, dots: !0, autoplay: !1, speed: 1100, slidesToShow: 3, slidesToScroll: 3, centerMode: !0, mobileFirst: !0, variableWidth: !0 }), a.push(b[c]) } }; return { init: function () { b() } } }(), expoTimeline = function () { var a = [], b = function (b) { for (var c = document.querySelectorAll('[data-type="expoLine"]'), d = 0, e = c.length; d < e; d++) { var f = "o-expoLine-" + d; console.log(f + "/ numItems: " + d); var g, h = c[d]; h.classList.add(f), $(h).slick({ focusOnSelect: !0, infinite: !0, arrows: !0, dots: !0, autoplay: !1, speed: 1100, slidesToShow: 3, slidesToScroll: 3, centerMode: !0, mobileFirst: !0, initialSlide: b ? b : 0, variableWidth: !0 }), $(h).on("beforeChange", function (a, b, c, d) { var e = gsap.timeline(), f = h.querySelector(".slick-list"); g = c !== d, g && (h.querySelector(".slick-prev").style.opacity = 0, h.querySelector(".slick-next").style.opacity = 0, h.querySelectorAll(".c-card-stand__txt").forEach(function (a) { a.style.opacity = 0 }), e.to(f, { transform: "scale(0.8)", duration: .4, ease: "power1.out" }), e.to(f, { transform: "scale(1)", duration: .7, ease: "power1.in" })) }), $(h).on("afterChange", function () { g && (h.querySelector(".slick-prev").style.opacity = 1, h.querySelector(".slick-next").style.opacity = 1, h.querySelector(".slick-slide.slick-current .c-card-stand__txt").style.opacity = 1) }), a.push(c[d]) } }; return { init: function (a) { b(a) } } }(), timeline = function () { var a = [], b = function () { for (var b = document.querySelectorAll('[data-type="timeline"]'), c = 0, d = b.length; c < d; c++) { var e = "o-timeline-" + c, f = b[c]; f.classList.add(e), $(f).slick({ focusOnSelect: !0, infinite: !1, arrows: !1, dots: !1, autoplay: !1, speed: 1100, slidesToShow: 3, slidesToScroll: 3, centerMode: !0, mobileFirst: !0, variableWidth: !0 }), a.push(b[c]) } }; return { init: function () { b() } } }(), tab = function () { var a = [], b = function () { $('[data-type="tab"]').each(function () { var b = { ele: $(this), disableOn: null, buttonBackItem: $(this).data("tab-button-back") ? $(this).data("tab-button-back") : null, buttonBackItemClass: $(this).data("tab-button-back-class") ? $(this).data("tab-button-back-class") : null, activeItem: $(this).data("tab-item-active") ? $(this).data("tab-item-active") : null, className: $(this).data("tab-active-class") }; void 0 !== $(this).data("tab-disableon-xs") && (b.disableOn = 767), void 0 !== $(this).data("tab-disableon-sm") && (b.disableOn = 991), void 0 !== $(this).data("tab-disableon-md") && (b.disableOn = 1199), b.ele.each(function () { var a = $(this), c = b.className, d = b.activeItem, e = (b.buttonBackItem, b.buttonBackItemClass), f = !0; $("[data-tab-content=" + d + "]").addClass(c), $("[data-tab-item]", a).click(function (b) { b.preventDefault(); var g = $(this).attr("data-tab-autoclose") && $(this).hasClass(c); $("[data-tab-item]", a).removeClass(c), $("[data-tab-content]", a).removeClass(c);
2 var h = $(this).attr("data-tab-item"); $("[data-tab-content=" + h + "]", a).addClass(c), $("[data-tab-item=" + h + "]", a).addClass(c); var i = $("[data-tab-content=" + h + '] [data-actas="carousel"]', a), j = i, k = j.clone(); k.find(".slick-list").children().unwrap(), k.find(".slick-track").children().unwrap(), k.find(".slick-slide").children().unwrap(), k.find(".slides").removeClass("slick-slider"), k.find(".slides").removeClass("slick-initialized"), k.find(".slides > div:not(.item)").children().unwrap(), k.find(".nav a").removeClass("slick-arrow").removeClass("slick-disabled"), k.find("*").removeAttr("aria-disabled"), k.find("*").removeAttr("style").removeClass(function (a, b) { if ("string" == typeof b) return (b.match(/\bflex\S+/g) || []).join(" ") }), k.insertBefore(j), j.remove(), i.init(), h == d && f ? ($(e).hide(), f = !1) : ($(e).show(), f = !0), g && ($("[data-tab-item]", a).removeClass(c), $("[data-tab-content]", a).removeClass(c)) }), d ? ($(e).hide(), f = !1) : ($(e).show(), f = !0), $(e, a).click(function (b) { b.preventDefault(), $("[data-tab-item]", a).removeClass(c), $("[data-tab-content]", a).removeClass(c), $("[data-tab-content=" + d + "]").addClass(c), $(e).hide(), f = !1 }) }), a.push(b) }) }; return { init: function () { b() }, reload: function () { b(), $("[data-tab-item]").removeClass("open"), $("[data-tab-content]").removeClass("open") } } }(), shareSticky = function () { var a, b = function () { a = [], document.querySelectorAll(".c-detail__head").forEach(function (b) { var c = b.querySelector(".c-detail__share"); c && a.push({ eHead: b, eShare: c }) }) }; return { init: function () { b(), setInterval(function () { a.forEach(function (a) { var b = a.eHead, c = a.eShare; b && c && (b.getBoundingClientRect().top < 0 ? c.classList.add("sticky") : c.classList.remove("sticky")) }) }, 10) }, reload: function () { b() } } }(), scrollVisible = function () { var a = function (a, b) { var c = $(window).scrollTop(), d = $(window).height(), e = a.offset().top, f = a.height(), g = e + f; return g - f > c && (b || e < c + d) }, b = function () { $('[data-type="scroll-visible"]').each(function () { var b = $($(this).data("scroll-visible-ele")), c = $(this).data("scroll-visible-class"); b.length && (a(b, void 0 !== $(this).data("scroll-visible-down")) ? $(this).hasClass(c) ? $(this).slideUp() : ($(this).addClass(c), $(this).hide()) : $(this).slideDown()) }) }; return { init: function () { $(window).on("scroll", function () { b() }), b() } } }(), navigation = function () { var a = function (a, b, c, d) { function e() { const a = "function" == typeof window.performance.now ? performance.now() : (new Date).getTime(), f = Math.min(1, (a - i) / b), j = g[c](f); return window.scroll(0, Math.ceil(j * (m - h) + h)), window.pageYOffset === m ? void (d && d()) : void requestAnimationFrame(e) } var f = a; a = document.querySelector(f), b = "undefined" != typeof b ? b : 3e3, c = "undefined" != typeof c ? c : "linear"; var g = { linear: function (a) { return a }, easeInQuad: function (a) { return a * a }, easeOutQuad: function (a) { return a * (2 - a) }, easeInOutQuad: function (a) { return a < .5 ? 2 * a * a : -1 + (4 - 2 * a) * a }, easeInCubic: function (a) { return a * a * a }, easeOutCubic: function (a) { return --a * a * a + 1 }, easeInOutCubic: function (a) { return a < .5 ? 4 * a * a * a : (a - 1) * (2 * a - 2) * (2 * a - 2) + 1 }, easeInQuart: function (a) { return a * a * a * a }, easeOutQuart: function (a) { return 1 - --a * a * a * a }, easeInOutQuart: function (a) { return a < .5 ? 8 * a * a * a * a : 1 - 8 * --a * a * a * a }, easeInQuint: function (a) { return a * a * a * a * a }, easeOutQuint: function (a) { return 1 + --a * a * a * a * a }, easeInOutQuint: function (a) { return a < .5 ? 16 * a * a * a * a * a : 1 + 16 * --a * a * a * a * a } }; null === a && window.location.assign("/"); var h = window.pageYOffset, i = "function" == typeof window.performance.now ? performance.now() : (new Date).getTime(), j = Math.max(document.body.scrollHeight, document.body.offsetHeight, document.documentElement.clientHeight, document.documentElement.scrollHeight, document.documentElement.offsetHeight), k = window.innerHeight || document.documentElement.clientHeight || document.getElementsByTagName("body")[0].clientHeight, l = "number" == typeof a ? a : a.offsetTop, m = Math.round(j - l < k ? j - k : l); return "requestAnimationFrame" in window == !1 ? (window.scroll(0, m), void (d && d())) : void e() }, b = function () { return !1 }, c = function () { var c = document.querySelectorAll('[data-type="nav"]');
2 console.log("location:" + window.location), c.forEach(function (d) { d.addEventListener("click", function () { var e = "." + this.getAttribute("data-nav-scroll-to"); console.log("scrollTo:" + e), document.getElementsByClassName("c-header")[0].classList.remove("open"), a(e, 3e3, "easeOutQuart", b), c.forEach(function (a) { a.classList.contains("current") && a.classList.remove("current") }), d.classList.add("current") }) }) }, d = function () { var c = window.location.pathname, d = document.querySelectorAll('[data-type="nav"]'); d.forEach(function (d) { var e = d.getAttribute("data-nav-scroll-to"); e == c.replace("/", "o-section-") && (e = "." + e, a(e, 3e3, "easeOutQuart", b)) }) }; return { init: function () { c(), d() } } }(), modal = function () { var a = [], b = function () { for (var b = document.querySelectorAll('[data-type="modal"]'), c = 0, d = b.length; c < d; c++) { var e = b[c].getAttribute("data-modal-content"), f = document.getElementsByClassName(e)[0].getElementsByClassName("modal-content__close")[0], g = document.getElementsByClassName(e)[0], h = document.getElementsByTagName("body")[0]; b[c].addEventListener("click", function () { var a = this.getAttribute("data-modal-content"); document.getElementsByClassName(a)[0].classList.add("current"), h.classList.add("open-modal") }, !1), f.addEventListener("click", function () { var a = this.parentElement.parentNode; a.classList.remove("current"), h.classList.remove("open-modal") }, !1), window.addEventListener("click", function (a) { a.target == g && (g.classList.remove("current"), h.classList.remove("open-modal")) }, !1), a.push(b[c]) } }; return { init: function () { b() } } }(), callback = function () { burger.init(), socialShare.init(), expoTimeline.init(), slider.init(), navigation.init(), modal.init(), headVisible.init() }; "complete" === document.readyState || "loading" !== document.readyState && !document.documentElement.doScroll ? callback() : (document.addEventListener("DOMContentLoaded", callback), window.addEventListener("resize", function () { burger.resize() }));
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.