(function ($) { ! function (t) { var e = {}; function r(n) { if (e[n]) return e[n].exports; var i = e[n] = { i: n, l: !1, exports: {} }; return t[n].call(i.exports, i, i.exports, r), i.l = !0, i.exports } r.m = t, r.c = e, r.d = function (t, e, n) { r.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: n }) }, r.r = function (t) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 }) }, r.t = function (t, e) { if (1 & e && (t = r(t)), 8 & e) return t; if (4 & e && "object" == typeof t && t && t.__esModule) return t; var n = Object.create(null); if (r.r(n), Object.defineProperty(n, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var i in t) r.d(n, i, function (e) { return t[e] }.bind(null, i)); return n }, r.n = function (t) { var e = t && t.__esModule ? function () { return t.default } : function () { return t }; return r.d(e, "a", e), e }, r.o = function (t, e) { return Object.prototype.hasOwnProperty.call(t, e) }, r.p = "/", r(r.s = 6) }([function (t, e) {}, function (t, e) {}, function (t, e) { (function () { ! function (t, e) { var r, n, i; "timer", i = { ru: { days: ["день", "дня", "дней"], hours: ["час", "часа", "часов"], minuts: ["минута", "минуты", "минут"], seconds: ["секунда", "секунды", "секунд"] }, eng: { days: ["day", "days", "days"], hours: ["hour", "hours", "hours"], minuts: ["minut", "minuts", "minuts"], seconds: ["second", "seconds", "seconds"] } }, n = { lang: "ru", updateTime: 1e3, onEnd: t.noop }, r = function () { function e(e, r) { this.el = e, this.$el = t(this.el), t.extend(this, n, this.$el.data(), r), this.locale || (this.locale = i[this.lang]), this.startDate = new Date, this.template = this.$el.html(), "[object Date]" !== Object.prototype.toString.call(this.endDate) && (this.endDate = this.parseDate(this.endDate, this.dateFormat)), this.start() } return e.prototype.parseDate = function (t, e) { var r, n; return t = (t += "").split(/[^\d]/g), e = (e += "").split(/[^%yMdhms]/g), n = new Date, r = { y: n.getFullYear(), M: n.getMonth() + 1, d: n.getDate(), h: 0, m: 0, s: 0 }, e.forEach((function (e, n) { var i; return i = e.slice(1), r[i] = t[n] })), new Date(r.y, r.M - 1, r.d, r.h, r.m, r.s) }, e.prototype.start = function () { var t; return this.interval = setInterval((t = this, function () { return t.update() }), this.updateTime), this.update() }, e.prototype.end = function () { return clearInterval(this.interval), this.$el.trigger("timer:stop"), this.onEnd() }, e.prototype.update = function () { var t, e, r, n, i, s, o; if (i = new Date, !((s = this.endDate - i) <= 0)) return e = 864e5, s -= (t = Math.floor(s / e)) * e, e = 36e5, s -= (r = Math.floor(s / e)) * e, e = 6e4, s -= (n = Math.floor(s / e)) * e, e = 1e3, o = Math.floor(s / e), this.render({ days: t, hours: r, minuts: n, seconds: o }), this.circle(o, 60, "seconds"), this.circle(n, 60, "minuts"), this.circle(r, 24, "hours"), this.circle(t, 21, "days"); this.end() }, e.prototype.circle = function (e, r, n) { var i, s, o = this.$el.prev().find(".timer__circle-second .timer__circle-path"), a = this.$el.prev().find(".timer__circle-minut .timer__circle-path"), c = this.$el.prev().find(".timer__circle-hour .timer__circle-path"), u = this.$el.prev().find(".timer__circle-day .timer__circle-path"); s = Math.ceil(36 * e / r), (i = "seconds" == n ? o : "minuts" == n ? a : "hours" == n ? c : u).addClass("timer__circle-path-active"), i.each((function () { var e = t(this), r = e.index(); r < i.length && r >= s && e.removeClass("timer__circle-path-active") })) }, e.prototype.render = function (e) { var r, n; return r = this.template, t.each(this.locale, (n = this, function (t, i) { return r = r.replace(new RegExp("%" + t + "%", "g"), n.leadingZero(e[t])).replace(new RegExp("%" + t.toUpperCase() + "%", "g"), n.spellCount(e[t], i)) })), this.$el.html(r) }, e.prototype.spellCount = function (e, r) { return t.isArray(r) ? e % 10 == 1 && e % 100 != 11 ? r[0] : e % 10 >= 2 && e % 10 <= 4 && (e % 100 < 10 || e % 100 >= 20) ? r[1] : r[2] : r }, e.prototype.leadingZero = function (t) { var e = ""; t < 10 && (t = "0" + t), t += ""; for (var r = 0; r < t.length; r++) e += "" + t[r] + ""; return e }, e }(), t.fn.timer = function (e) { return this.each((function () { if (!t.data(this, "timer")) return t.data(this, "timer", new r(this, e)) })) } }(jQuery, window) }).call(this); var r = $(".timer__counter"), n = (new Date).getTime() / 1e3, i = new Date(r.data("end-date")); function s() { r.find("div").each((function () { var t = $(this), e = t.text(); "%days%" == e || "%hours%" == e || "%minuts%" == e || "%seconds%" == e ? t.text("00") : "%DAYS%" == e ? t.text("дней") : "%HOURS%" == e ? t.text("часов") : "%MINUTS%" == e ? t.text("минут") : "%SECONDS%" == e && t.text("секунд") })) } $((function () { n >= i / 1e3 ? s() : (r.timer({ endDate: i, locale: { days: ["день", "дня", "дней"], hours: ["час", "часа", "часов"], minuts: ["минута", "минуты", "минут"], seconds: ["секунда", "секунды", "секунд"] }, onEnd: function (t) { s() } }), r.removeAttr("data-end-date")) })) }, function (t, e) { gsap.registerPlugin(ScrollTrigger), setTimeout((function () { var t, e, r, n, i, s, o; s = ".fl_start_lp", o = "bottom bottom", window.innerWidth < 576 && (s = ".facts2__item-js-3", o = "top bottom"), i = { trigger: ".section--facts2", toggleActions: "play none none none", start: "10% bottom", endTrigger: s, end: o, markers: !1, scrub: 3 }, t = gsap.timeline({ scrollTrigger: i }), e = gsap.timeline({ scrollTrigger: i }), r = gsap.timeline({ scrollTrigger: i }), n = gsap.timeline({ scrollTrigger: i }), t.from(".facts2__item-js-2", { y: "40%", ease: "back.out(4)" }), e.from(".facts2__item-js-1", { y: "-30%", ease: "back.out(1)" }), r.from(".facts2__item-js-3", { x: "-60%", ease: "back.out(1)" }), n.to(".facts2__left-js", { backgroundSize: "118% 118%", autoRound: !1, ease: Power1.ease0ut }) }), 500) }, function (t, e) { var r; (r = $(".products__item")).length && r.parent().addClass("products--" + r.length) }, , function (t, e, r) { "use strict"; r.r(e); r(0), r(1), r(2), r(3), r(4); function n() { if ($(window).width() < 576) $(".picture--sm").children().each((function (t, e) { var r = $(e).data("srcset"), n = $(e).data("src"); r && $(e).attr("srcset", r), n && $(e).attr("src", n) })); else if ($(window).width() < 1024) { $(".picture--md").children().each((function (t, e) { var r = $(e).data("srcset"), n = $(e).data("src"); r && $(e).attr("srcset", r), n && $(e).attr("src", n) })) } else if ($(window).width() >= 1024) { $(".picture--lg").children().each((function (t, e) { var r = $(e).data("srcset"), n = $(e).data("src"); r && $(e).attr("srcset", r), n && $(e).attr("src", n) })) } } n(), $(window).resize((function () { n() })) }]); })(jQuery);