! function(e) { var n = {}; function t(o) { if(n[o]) return n[o].exports; var s = n[o] = { i: o, l: !1, exports: {} }; return e[o].call(s.exports, s, s.exports, t), s.l = !0, s.exports } t.m = e, t.c = n, t.d = function(e, n, o) { t.o(e, n) || Object.defineProperty(e, n, { enumerable: !0, get: o }) }, t.r = function(e) { "undefined" !== typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }) }, t.t = function(e, n) { if(1 & n && (e = t(e)), 8 & n) return e; if(4 & n && "object" === typeof e && e && e.__esModule) return e; var o = Object.create(null); if(t.r(o), Object.defineProperty(o, "default", { enumerable: !0, value: e }), 2 & n && "string" != typeof e) for(var s in e) t.d(o, s, function(n) { return e[n] }.bind(null, s)); return o }, t.n = function(e) { var n = e && e.__esModule ? function() { return e.default } : function() { return e }; return t.d(n, "a", n), n }, t.o = function(e, n) { return Object.prototype.hasOwnProperty.call(e, n) }, t.p = "/", t(t.s = "7hx4") }({ "7hx4": function(e, n, t) { "use strict"; t.r(n); t("WMMs"); var o = t("SDJZ"), s = t.n(o), r = t("NToG"), i = t.n(r), c = function() { function e() { s()(this, e), this.cacheNodes(), this.addEventListeners() } return i()(e, [{ key: "cacheNodes", value: function() { this.nodes = { menu: document.querySelector(".js-menu"), closeButton: document.querySelector(".js-close-menu"), openButton: document.querySelector(".js-open-menu"), goToFooter: document.querySelector(".js-go-to-footer") } } }, { key: "addEventListeners", value: function() { var e = this; this.nodes.openButton.addEventListener("click", function() { e.nodes.menu.classList.add("opened") }), this.nodes.closeButton.addEventListener("click", function() { e.nodes.menu.classList.remove("opened") }), this.nodes.goToFooter.addEventListener("click", function() { var n, t, o, s, r, i; e.nodes.menu.classList.remove("opened"), n = 3e4, t = .4, o = document.scrollingElement || document.documentElement, s = o.scrollTop, r = n - s, i = +new Date, function e() { var c, d, u, a = +new Date - i; o.scrollTop = parseInt((c = a, d = s, u = r, (c /= t / 2) < 1 ? u / 2 * c * c + d : -u / 2 * (--c * (c - 2) - 1) + d)), a < t ? requestAnimationFrame(e) : o.scrollTop = n }() }) } }]), e }(); function d() { return(document.scrollingElement || document.documentElement).scrollTop } var u = function() { function e() { s()(this, e); var n = window.innerWidth; this.isMobile = n < 768, this._cacheNodes(), this._bindEvents() } return i()(e, [{ key: "_cacheNodes", value: function() { this.nodes = { rightSide: document.querySelector(".b-partners-integration.right"), integrations: document.querySelectorAll(".partner-right-block") } } }, { key: "_bindEvents", value: function() { var e = document.documentElement.clientHeight - 80, n = this.nodes.integrations.length, t = this.nodes.integrations[n - 2], o = this.nodes.integrations[n - 1]; document.addEventListener("scroll", function() { e >= 820 ? d() > 450 * (n - 2) + 680 ? (t.classList.add("fixed-1"), o.classList.add("fixed-2")) : (t.classList.remove("fixed-1"), o.classList.remove("fixed-2")) : d() > 450 * (n - 1) + 680 ? o.classList.add("fixed-1") : o.classList.remove("fixed-1") }) } }]), e }(), a = function() { function e() { s()(this, e), this._cacheNodes(), this._bindEvents() } return i()(e, [{ key: "_cacheNodes", value: function() { this.nodes = { modal: document.querySelector(".js-donate-modal"), masksModal: document.querySelector(".js-masks-modal"), closeModal: document.querySelectorAll(".js-close-modal"), openModal: document.querySelectorAll(".js-open-donate-modal"), openMasksModal: document.querySelectorAll(".js-open-masks-modal"), menu: document.querySelector(".js-menu"), body: document.querySelector("body") } } }, { key: "_bindEvents", value: function() { var e = this; Array.from(this.nodes.openModal).forEach(function(n) { n.addEventListener("click", function() { e.nodes.modal.classList.add("active"), e.nodes.menu.classList.remove("opened") }) }), Array.from(this.nodes.openMasksModal).forEach(function(n) { n.addEventListener("click", function() { e.nodes.masksModal.classList.add("active"), e.nodes.menu.classList.remove("opened") }) }), Array.from(this.nodes.closeModal).forEach(function(n) { n.addEventListener("click", function() { e.nodes.modal.classList.remove("active"), e.nodes.masksModal.classList.remove("active") }) }) } }]), e }(); document.addEventListener("DOMContentLoaded", function() { new c, new u, new a }) }, NToG: function(e, n) { function t(e, n) { for(var t = 0; t < n.length; t++) { var o = n[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o) } } e.exports = function(e, n, o) { return n && t(e.prototype, n), o && t(e, o), e } }, SDJZ: function(e, n) { e.exports = function(e, n) { if(!(e instanceof n)) throw new TypeError("Cannot call a class as a function") } }, WMMs: function(e, n, t) {} });