@innovastudio/contentbox-runtime-base 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,32 +2,32 @@ var Ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2
2
|
function je(o) {
|
|
3
3
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
4
4
|
}
|
|
5
|
-
var me = { exports: {} },
|
|
6
|
-
function
|
|
5
|
+
var me = { exports: {} }, Ze = me.exports, Ve;
|
|
6
|
+
function Ge() {
|
|
7
7
|
return Ve || (Ve = 1, (function(o, t) {
|
|
8
8
|
(function(i, s) {
|
|
9
9
|
o.exports = s();
|
|
10
|
-
})(
|
|
11
|
-
var i = typeof window < "u" ? window : typeof Ie < "u" ? Ie : typeof self < "u" ? self : {}, s = "Expected a function", e = NaN, a = "[object Symbol]", r = /^\s+|\s+$/g, n = /^[-+]0x[0-9a-f]+$/i, h = /^0b[01]+$/i,
|
|
10
|
+
})(Ze, function() {
|
|
11
|
+
var i = typeof window < "u" ? window : typeof Ie < "u" ? Ie : typeof self < "u" ? self : {}, s = "Expected a function", e = NaN, a = "[object Symbol]", r = /^\s+|\s+$/g, n = /^[-+]0x[0-9a-f]+$/i, h = /^0b[01]+$/i, l = /^0o[0-7]+$/i, c = parseInt, u = typeof i == "object" && i && i.Object === Object && i, b = typeof self == "object" && self && self.Object === Object && self, C = u || b || Function("return this")(), A = Object.prototype.toString, E = Math.max, Q = Math.min, ft = function() {
|
|
12
12
|
return C.Date.now();
|
|
13
13
|
};
|
|
14
14
|
function Bt(p, m, y) {
|
|
15
|
-
var w, k, W, H, _,
|
|
15
|
+
var w, k, W, H, _, R, M = 0, ht = !1, F = !1, J = !0;
|
|
16
16
|
if (typeof p != "function") throw new TypeError(s);
|
|
17
17
|
function ct(j) {
|
|
18
18
|
var U = w, ut = k;
|
|
19
19
|
return w = k = void 0, M = j, H = p.apply(ut, U);
|
|
20
20
|
}
|
|
21
21
|
function zt(j) {
|
|
22
|
-
var U = j -
|
|
23
|
-
return
|
|
22
|
+
var U = j - R;
|
|
23
|
+
return R === void 0 || U >= m || U < 0 || F && j - M >= W;
|
|
24
24
|
}
|
|
25
25
|
function St() {
|
|
26
26
|
var j = ft();
|
|
27
27
|
if (zt(j)) return Xt(j);
|
|
28
28
|
_ = setTimeout(St, (function(U) {
|
|
29
|
-
var ut = m - (U -
|
|
30
|
-
return F ?
|
|
29
|
+
var ut = m - (U - R);
|
|
30
|
+
return F ? Q(ut, W - (U - M)) : ut;
|
|
31
31
|
})(j));
|
|
32
32
|
}
|
|
33
33
|
function Xt(j) {
|
|
@@ -35,16 +35,16 @@ function Qe() {
|
|
|
35
35
|
}
|
|
36
36
|
function nt() {
|
|
37
37
|
var j = ft(), U = zt(j);
|
|
38
|
-
if (w = arguments, k = this,
|
|
38
|
+
if (w = arguments, k = this, R = j, U) {
|
|
39
39
|
if (_ === void 0) return (function(ut) {
|
|
40
40
|
return M = ut, _ = setTimeout(St, m), ht ? ct(ut) : H;
|
|
41
|
-
})(
|
|
42
|
-
if (F) return _ = setTimeout(St, m), ct(
|
|
41
|
+
})(R);
|
|
42
|
+
if (F) return _ = setTimeout(St, m), ct(R);
|
|
43
43
|
}
|
|
44
44
|
return _ === void 0 && (_ = setTimeout(St, m)), H;
|
|
45
45
|
}
|
|
46
46
|
return m = Lt(m) || 0, Ct(y) && (ht = !!y.leading, W = (F = "maxWait" in y) ? E(Lt(y.maxWait) || 0, m) : W, J = "trailing" in y ? !!y.trailing : J), nt.cancel = function() {
|
|
47
|
-
_ !== void 0 && clearTimeout(_), M = 0, w =
|
|
47
|
+
_ !== void 0 && clearTimeout(_), M = 0, w = R = k = _ = void 0;
|
|
48
48
|
}, nt.flush = function() {
|
|
49
49
|
return _ === void 0 ? H : Xt(ft());
|
|
50
50
|
}, nt;
|
|
@@ -67,51 +67,51 @@ function Qe() {
|
|
|
67
67
|
if (typeof p != "string") return p === 0 ? p : +p;
|
|
68
68
|
p = p.replace(r, "");
|
|
69
69
|
var y = h.test(p);
|
|
70
|
-
return y ||
|
|
70
|
+
return y || l.test(p) ? c(p.slice(2), y ? 2 : 8) : n.test(p) ? e : +p;
|
|
71
71
|
}
|
|
72
72
|
var kt = function(p, m, y) {
|
|
73
73
|
var w = !0, k = !0;
|
|
74
74
|
if (typeof p != "function") throw new TypeError(s);
|
|
75
75
|
return Ct(y) && (w = "leading" in y ? !!y.leading : w, k = "trailing" in y ? !!y.trailing : k), Bt(p, m, { leading: w, maxWait: m, trailing: k });
|
|
76
|
-
},
|
|
76
|
+
}, d = "Expected a function", f = NaN, v = "[object Symbol]", T = /^\s+|\s+$/g, O = /^[-+]0x[0-9a-f]+$/i, I = /^0b[01]+$/i, tt = /^0o[0-7]+$/i, At = parseInt, B = typeof i == "object" && i && i.Object === Object && i, gt = typeof self == "object" && self && self.Object === Object && self, x = B || gt || Function("return this")(), S = Object.prototype.toString, X = Math.max, L = Math.min, K = function() {
|
|
77
77
|
return x.Date.now();
|
|
78
78
|
};
|
|
79
|
-
function
|
|
79
|
+
function Z(p) {
|
|
80
80
|
var m = typeof p;
|
|
81
81
|
return !!p && (m == "object" || m == "function");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function $(p) {
|
|
84
84
|
if (typeof p == "number") return p;
|
|
85
85
|
if ((function(w) {
|
|
86
86
|
return typeof w == "symbol" || /* @__PURE__ */ (function(k) {
|
|
87
87
|
return !!k && typeof k == "object";
|
|
88
88
|
})(w) && S.call(w) == v;
|
|
89
|
-
})(p)) return
|
|
90
|
-
if (
|
|
89
|
+
})(p)) return f;
|
|
90
|
+
if (Z(p)) {
|
|
91
91
|
var m = typeof p.valueOf == "function" ? p.valueOf() : p;
|
|
92
|
-
p =
|
|
92
|
+
p = Z(m) ? m + "" : m;
|
|
93
93
|
}
|
|
94
94
|
if (typeof p != "string") return p === 0 ? p : +p;
|
|
95
95
|
p = p.replace(T, "");
|
|
96
96
|
var y = I.test(p);
|
|
97
|
-
return y || tt.test(p) ? At(p.slice(2), y ? 2 : 8) : O.test(p) ?
|
|
97
|
+
return y || tt.test(p) ? At(p.slice(2), y ? 2 : 8) : O.test(p) ? f : +p;
|
|
98
98
|
}
|
|
99
99
|
var It = function(p, m, y) {
|
|
100
|
-
var w, k, W, H, _,
|
|
101
|
-
if (typeof p != "function") throw new TypeError(
|
|
100
|
+
var w, k, W, H, _, R, M = 0, ht = !1, F = !1, J = !0;
|
|
101
|
+
if (typeof p != "function") throw new TypeError(d);
|
|
102
102
|
function ct(j) {
|
|
103
103
|
var U = w, ut = k;
|
|
104
104
|
return w = k = void 0, M = j, H = p.apply(ut, U);
|
|
105
105
|
}
|
|
106
106
|
function zt(j) {
|
|
107
|
-
var U = j -
|
|
108
|
-
return
|
|
107
|
+
var U = j - R;
|
|
108
|
+
return R === void 0 || U >= m || U < 0 || F && j - M >= W;
|
|
109
109
|
}
|
|
110
110
|
function St() {
|
|
111
|
-
var j =
|
|
111
|
+
var j = K();
|
|
112
112
|
if (zt(j)) return Xt(j);
|
|
113
113
|
_ = setTimeout(St, (function(U) {
|
|
114
|
-
var ut = m - (U -
|
|
114
|
+
var ut = m - (U - R);
|
|
115
115
|
return F ? L(ut, W - (U - M)) : ut;
|
|
116
116
|
})(j));
|
|
117
117
|
}
|
|
@@ -119,21 +119,21 @@ function Qe() {
|
|
|
119
119
|
return _ = void 0, J && w ? ct(j) : (w = k = void 0, H);
|
|
120
120
|
}
|
|
121
121
|
function nt() {
|
|
122
|
-
var j =
|
|
123
|
-
if (w = arguments, k = this,
|
|
122
|
+
var j = K(), U = zt(j);
|
|
123
|
+
if (w = arguments, k = this, R = j, U) {
|
|
124
124
|
if (_ === void 0) return (function(ut) {
|
|
125
125
|
return M = ut, _ = setTimeout(St, m), ht ? ct(ut) : H;
|
|
126
|
-
})(
|
|
127
|
-
if (F) return _ = setTimeout(St, m), ct(
|
|
126
|
+
})(R);
|
|
127
|
+
if (F) return _ = setTimeout(St, m), ct(R);
|
|
128
128
|
}
|
|
129
129
|
return _ === void 0 && (_ = setTimeout(St, m)), H;
|
|
130
130
|
}
|
|
131
|
-
return m =
|
|
132
|
-
_ !== void 0 && clearTimeout(_), M = 0, w =
|
|
131
|
+
return m = $(m) || 0, Z(y) && (ht = !!y.leading, W = (F = "maxWait" in y) ? X($(y.maxWait) || 0, m) : W, J = "trailing" in y ? !!y.trailing : J), nt.cancel = function() {
|
|
132
|
+
_ !== void 0 && clearTimeout(_), M = 0, w = R = k = _ = void 0;
|
|
133
133
|
}, nt.flush = function() {
|
|
134
|
-
return _ === void 0 ? H : Xt(
|
|
134
|
+
return _ === void 0 ? H : Xt(K());
|
|
135
135
|
}, nt;
|
|
136
|
-
},
|
|
136
|
+
}, G = function() {
|
|
137
137
|
};
|
|
138
138
|
function P(p) {
|
|
139
139
|
p && p.forEach(function(m) {
|
|
@@ -143,7 +143,7 @@ function Qe() {
|
|
|
143
143
|
for (H = 0; H < W.length; H += 1)
|
|
144
144
|
if ((_ = W[H]).dataset && _.dataset.aos || _.children && k(_.children)) return !0;
|
|
145
145
|
return !1;
|
|
146
|
-
})(y.concat(w))) return
|
|
146
|
+
})(y.concat(w))) return G();
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
function D() {
|
|
@@ -153,7 +153,7 @@ function Qe() {
|
|
|
153
153
|
return !!D();
|
|
154
154
|
}, ready: function(p, m) {
|
|
155
155
|
var y = window.document, w = new (D())(P);
|
|
156
|
-
|
|
156
|
+
G = m, w.observe(y.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
|
|
157
157
|
} }, _t = function(p, m) {
|
|
158
158
|
if (!(p instanceof m)) throw new TypeError("Cannot call a class as a function");
|
|
159
159
|
}, ot = /* @__PURE__ */ (function() {
|
|
@@ -197,18 +197,18 @@ function Qe() {
|
|
|
197
197
|
}, st = function(p) {
|
|
198
198
|
return p.forEach(function(m, y) {
|
|
199
199
|
return (function(w, k) {
|
|
200
|
-
var W = w.options, H = w.position, _ = w.node,
|
|
200
|
+
var W = w.options, H = w.position, _ = w.node, R = (w.data, function() {
|
|
201
201
|
w.animated && ((function(M, ht) {
|
|
202
202
|
ht && ht.forEach(function(F) {
|
|
203
203
|
return M.classList.remove(F);
|
|
204
204
|
});
|
|
205
205
|
})(_, W.animatedClassNames), bt("aos:out", _), w.options.id && bt("aos:in:" + w.options.id, _), w.animated = !1);
|
|
206
206
|
});
|
|
207
|
-
W.mirror && k >= H.out && !W.once ?
|
|
207
|
+
W.mirror && k >= H.out && !W.once ? R() : k >= H.in ? w.animated || ((function(M, ht) {
|
|
208
208
|
ht && ht.forEach(function(F) {
|
|
209
209
|
return M.classList.add(F);
|
|
210
210
|
});
|
|
211
|
-
})(_, W.animatedClassNames), bt("aos:in", _), w.options.id && bt("aos:in:" + w.options.id, _), w.animated = !0) : w.animated && !W.once &&
|
|
211
|
+
})(_, W.animatedClassNames), bt("aos:in", _), w.options.id && bt("aos:in:" + w.options.id, _), w.animated = !0) : w.animated && !W.once && R();
|
|
212
212
|
})(m, window.pageYOffset);
|
|
213
213
|
});
|
|
214
214
|
}, yt = function(p) {
|
|
@@ -223,7 +223,7 @@ function Qe() {
|
|
|
223
223
|
return w || y;
|
|
224
224
|
}, Et = function(p, m) {
|
|
225
225
|
return p.forEach(function(y, w) {
|
|
226
|
-
var k = q(y.node, "mirror", m.mirror), W = q(y.node, "once", m.once), H = q(y.node, "id"), _ = m.useClassNames && y.node.getAttribute("data-aos"),
|
|
226
|
+
var k = q(y.node, "mirror", m.mirror), W = q(y.node, "once", m.once), H = q(y.node, "id"), _ = m.useClassNames && y.node.getAttribute("data-aos"), R = [m.animatedClassName].concat(_ ? _.split(" ") : []).filter(function(M) {
|
|
227
227
|
return typeof M == "string";
|
|
228
228
|
});
|
|
229
229
|
m.initClassName && y.node.classList.add(m.initClassName), y.position = { in: (function(M, ht, F) {
|
|
@@ -261,7 +261,7 @@ function Qe() {
|
|
|
261
261
|
})(y.node, m.offset, m.anchorPlacement), out: k && (function(M, ht) {
|
|
262
262
|
var F = q(M, "anchor"), J = q(M, "offset", ht), ct = M;
|
|
263
263
|
return F && document.querySelectorAll(F) && (ct = document.querySelectorAll(F)[0]), yt(ct).top + ct.offsetHeight - J;
|
|
264
|
-
})(y.node, m.offset) }, y.options = { once: W, mirror: k, animatedClassNames:
|
|
264
|
+
})(y.node, m.offset) }, y.options = { once: W, mirror: k, animatedClassNames: R, id: H };
|
|
265
265
|
}), p;
|
|
266
266
|
}, Vt = function() {
|
|
267
267
|
var p = document.querySelectorAll("[data-aos]");
|
|
@@ -298,219 +298,219 @@ function Qe() {
|
|
|
298
298
|
});
|
|
299
299
|
})(me)), me.exports;
|
|
300
300
|
}
|
|
301
|
-
var
|
|
302
|
-
const Je = /* @__PURE__ */ je(
|
|
301
|
+
var Qe = Ge();
|
|
302
|
+
const Je = /* @__PURE__ */ je(Qe);
|
|
303
303
|
var Oe = { exports: {} }, Ye;
|
|
304
304
|
function ti() {
|
|
305
305
|
return Ye || (Ye = 1, (function(o) {
|
|
306
|
-
function t(
|
|
307
|
-
if (!(
|
|
306
|
+
function t(l, c) {
|
|
307
|
+
if (!(l instanceof c)) throw new TypeError("Cannot call a class as a function");
|
|
308
308
|
}
|
|
309
|
-
function i(
|
|
310
|
-
return c in
|
|
309
|
+
function i(l, c, u) {
|
|
310
|
+
return c in l ? Object.defineProperty(l, c, { value: u, enumerable: !0, configurable: !0, writable: !0 }) : l[c] = u, l;
|
|
311
311
|
}
|
|
312
|
-
function s(
|
|
313
|
-
return h(
|
|
312
|
+
function s(l, c) {
|
|
313
|
+
return h(l) || n(l, c) || a(l, c) || e();
|
|
314
314
|
}
|
|
315
315
|
function e() {
|
|
316
316
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
317
317
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
318
318
|
}
|
|
319
|
-
function a(
|
|
320
|
-
if (
|
|
321
|
-
if (typeof
|
|
322
|
-
var
|
|
323
|
-
return
|
|
319
|
+
function a(l, c) {
|
|
320
|
+
if (l) {
|
|
321
|
+
if (typeof l == "string") return r(l, c);
|
|
322
|
+
var u = Object.prototype.toString.call(l).slice(8, -1);
|
|
323
|
+
return u === "Object" && l.constructor && (u = l.constructor.name), u === "Map" || u === "Set" ? Array.from(l) : u === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u) ? r(l, c) : void 0;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
function r(
|
|
327
|
-
(c == null || c >
|
|
328
|
-
for (var
|
|
326
|
+
function r(l, c) {
|
|
327
|
+
(c == null || c > l.length) && (c = l.length);
|
|
328
|
+
for (var u = 0, b = new Array(c); u < c; u++) b[u] = l[u];
|
|
329
329
|
return b;
|
|
330
330
|
}
|
|
331
|
-
function n(
|
|
332
|
-
if (typeof Symbol < "u" && Symbol.iterator in Object(
|
|
333
|
-
var
|
|
331
|
+
function n(l, c) {
|
|
332
|
+
if (typeof Symbol < "u" && Symbol.iterator in Object(l)) {
|
|
333
|
+
var u = [], b = !0, C = !1, A = void 0;
|
|
334
334
|
try {
|
|
335
|
-
for (var E,
|
|
335
|
+
for (var E, Q = l[Symbol.iterator](); !(b = (E = Q.next()).done) && (u.push(E.value), !c || u.length !== c); b = !0) ;
|
|
336
336
|
} catch (ft) {
|
|
337
337
|
C = !0, A = ft;
|
|
338
338
|
} finally {
|
|
339
339
|
try {
|
|
340
|
-
b ||
|
|
340
|
+
b || Q.return == null || Q.return();
|
|
341
341
|
} finally {
|
|
342
342
|
if (C) throw A;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
return
|
|
345
|
+
return u;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
function h(
|
|
349
|
-
if (Array.isArray(
|
|
348
|
+
function h(l) {
|
|
349
|
+
if (Array.isArray(l)) return l;
|
|
350
350
|
}
|
|
351
351
|
(function() {
|
|
352
|
-
function d
|
|
353
|
-
return ["elInY+elHeight", "elCenterY-".concat(
|
|
354
|
-
}
|
|
355
|
-
var c,
|
|
356
|
-
return
|
|
357
|
-
}, fadeIn: function(
|
|
358
|
-
return { opacity: [["elInY+elHeight", 0 < arguments.length &&
|
|
359
|
-
}, fadeOut: function(
|
|
360
|
-
return { opacity: [[0 < arguments.length &&
|
|
361
|
-
}, blurInOut: function(
|
|
362
|
-
return
|
|
363
|
-
}, blurIn: function(
|
|
364
|
-
return { blur: [["elInY+elHeight", 0 < arguments.length &&
|
|
365
|
-
}, blurOut: function(
|
|
366
|
-
return { opacity: [[0 < arguments.length &&
|
|
367
|
-
}, scaleInOut: function(
|
|
368
|
-
return
|
|
369
|
-
}, scaleIn: function(
|
|
370
|
-
return { scale: [["elInY+elHeight", 0 < arguments.length &&
|
|
371
|
-
}, scaleOut: function(
|
|
372
|
-
return { scale: [[0 < arguments.length &&
|
|
373
|
-
}, slideX: function(
|
|
374
|
-
return { translateX: [["elInY", 0 < arguments.length &&
|
|
375
|
-
}, slideY: function(
|
|
376
|
-
return { translateY: [["elInY", 0 < arguments.length &&
|
|
377
|
-
}, spin: function(
|
|
378
|
-
return
|
|
379
|
-
}, flipX: function(
|
|
380
|
-
return
|
|
381
|
-
}, flipY: function(
|
|
382
|
-
return
|
|
383
|
-
}, jiggle: function(
|
|
384
|
-
return
|
|
385
|
-
}, seesaw: function(
|
|
386
|
-
return
|
|
387
|
-
}, zigzag: function(
|
|
388
|
-
return
|
|
389
|
-
}, hueRotate: function(
|
|
390
|
-
return
|
|
391
|
-
} }, ft = (c = ["perspective", "scaleX", "scaleY", "scale", "skewX", "skewY", "skew", "rotateX", "rotateY", "rotate"],
|
|
392
|
-
return
|
|
393
|
-
}, easeOutQuad: function(
|
|
394
|
-
return
|
|
395
|
-
}, easeInOutQuad: function(
|
|
396
|
-
return
|
|
397
|
-
}, easeInCubic: function(
|
|
398
|
-
return
|
|
399
|
-
}, easeOutCubic: function(
|
|
400
|
-
return --
|
|
401
|
-
}, easeInOutCubic: function(
|
|
402
|
-
return
|
|
403
|
-
}, easeInQuart: function(
|
|
404
|
-
return
|
|
405
|
-
}, easeOutQuart: function(
|
|
406
|
-
return 1 - --
|
|
407
|
-
}, easeInOutQuart: function(
|
|
408
|
-
return
|
|
409
|
-
}, easeInQuint: function(
|
|
410
|
-
return
|
|
411
|
-
}, easeOutQuint: function(
|
|
412
|
-
return 1 + --
|
|
413
|
-
}, easeInOutQuint: function(
|
|
414
|
-
return
|
|
415
|
-
}, easeOutBounce: function(
|
|
416
|
-
var
|
|
417
|
-
return
|
|
418
|
-
}, easeInBounce: function(
|
|
419
|
-
return 1 - E.easeOutBounce(1 -
|
|
420
|
-
}, easeOutBack: function(
|
|
421
|
-
return 1 + 2.70158 * Math.pow(
|
|
422
|
-
}, easeInBack: function(
|
|
423
|
-
return 2.70158 *
|
|
424
|
-
} }, new function
|
|
425
|
-
var
|
|
426
|
-
t(this,
|
|
427
|
-
|
|
352
|
+
function l(d) {
|
|
353
|
+
return ["elInY+elHeight", "elCenterY-".concat(d = 0 < arguments.length && d !== void 0 ? d : 30), "elCenterY", "elCenterY+".concat(d), "elOutY-elHeight"];
|
|
354
|
+
}
|
|
355
|
+
var c, u, b, C, A, E, Q = { fadeInOut: function(d, f) {
|
|
356
|
+
return f = 1 < arguments.length && f !== void 0 ? f : 0, { opacity: [l(0 < arguments.length && d !== void 0 ? d : 30), [f, 1, 1, 1, f]] };
|
|
357
|
+
}, fadeIn: function(d, f) {
|
|
358
|
+
return { opacity: [["elInY+elHeight", 0 < arguments.length && d !== void 0 ? d : "elCenterY"], [1 < arguments.length && f !== void 0 ? f : 0, 1]] };
|
|
359
|
+
}, fadeOut: function(d, f) {
|
|
360
|
+
return { opacity: [[0 < arguments.length && d !== void 0 ? d : "elCenterY", "elOutY-elHeight"], [1, 1 < arguments.length && f !== void 0 ? f : 0]] };
|
|
361
|
+
}, blurInOut: function(d, f) {
|
|
362
|
+
return f = 1 < arguments.length && f !== void 0 ? f : 20, { blur: [l(0 < arguments.length && d !== void 0 ? d : 100), [f, 0, 0, 0, f]] };
|
|
363
|
+
}, blurIn: function(d, f) {
|
|
364
|
+
return { blur: [["elInY+elHeight", 0 < arguments.length && d !== void 0 ? d : "elCenterY"], [1 < arguments.length && f !== void 0 ? f : 20, 0]] };
|
|
365
|
+
}, blurOut: function(d, f) {
|
|
366
|
+
return { opacity: [[0 < arguments.length && d !== void 0 ? d : "elCenterY", "elOutY-elHeight"], [0, 1 < arguments.length && f !== void 0 ? f : 20]] };
|
|
367
|
+
}, scaleInOut: function(d, f) {
|
|
368
|
+
return f = 1 < arguments.length && f !== void 0 ? f : 0.6, { scale: [l(0 < arguments.length && d !== void 0 ? d : 100), [f, 1, 1, 1, f]] };
|
|
369
|
+
}, scaleIn: function(d, f) {
|
|
370
|
+
return { scale: [["elInY+elHeight", 0 < arguments.length && d !== void 0 ? d : "elCenterY"], [1 < arguments.length && f !== void 0 ? f : 0.6, 1]] };
|
|
371
|
+
}, scaleOut: function(d, f) {
|
|
372
|
+
return { scale: [[0 < arguments.length && d !== void 0 ? d : "elCenterY", "elOutY-elHeight"], [1, 1 < arguments.length && f !== void 0 ? f : 0.6]] };
|
|
373
|
+
}, slideX: function(d, f) {
|
|
374
|
+
return { translateX: [["elInY", 0 < arguments.length && d !== void 0 ? d : 0], [0, 1 < arguments.length && f !== void 0 ? f : 500]] };
|
|
375
|
+
}, slideY: function(d, f) {
|
|
376
|
+
return { translateY: [["elInY", 0 < arguments.length && d !== void 0 ? d : 0], [0, 1 < arguments.length && f !== void 0 ? f : 500]] };
|
|
377
|
+
}, spin: function(d, f) {
|
|
378
|
+
return d = 0 < arguments.length && d !== void 0 ? d : 1e3, { rotate: [[0, d], [0, 1 < arguments.length && f !== void 0 ? f : 360], { modValue: d }] };
|
|
379
|
+
}, flipX: function(d, f) {
|
|
380
|
+
return d = 0 < arguments.length && d !== void 0 ? d : 1e3, { rotateX: [[0, d], [0, 1 < arguments.length && f !== void 0 ? f : 360], { modValue: d }] };
|
|
381
|
+
}, flipY: function(d, f) {
|
|
382
|
+
return d = 0 < arguments.length && d !== void 0 ? d : 1e3, { rotateY: [[0, d], [0, 1 < arguments.length && f !== void 0 ? f : 360], { modValue: d }] };
|
|
383
|
+
}, jiggle: function(d, f) {
|
|
384
|
+
return d = 0 < arguments.length && d !== void 0 ? d : 50, f = 1 < arguments.length && f !== void 0 ? f : 40, { skewX: [[0, +d, 2 * d, 3 * d, 4 * d], [0, f, 0, -f, 0], { modValue: 4 * d }] };
|
|
385
|
+
}, seesaw: function(d, f) {
|
|
386
|
+
return d = 0 < arguments.length && d !== void 0 ? d : 50, f = 1 < arguments.length && f !== void 0 ? f : 40, { skewY: [[0, +d, 2 * d, 3 * d, 4 * d], [0, f, 0, -f, 0], { modValue: 4 * d }] };
|
|
387
|
+
}, zigzag: function(d, f) {
|
|
388
|
+
return d = 0 < arguments.length && d !== void 0 ? d : 100, f = 1 < arguments.length && f !== void 0 ? f : 100, { translateX: [[0, +d, 2 * d, 3 * d, 4 * d], [0, f, 0, -f, 0], { modValue: 4 * d }] };
|
|
389
|
+
}, hueRotate: function(d, f) {
|
|
390
|
+
return d = 0 < arguments.length && d !== void 0 ? d : 600, { "hue-rotate": [[0, d], [0, 1 < arguments.length && f !== void 0 ? f : 360], { modValue: d }] };
|
|
391
|
+
} }, ft = (c = ["perspective", "scaleX", "scaleY", "scale", "skewX", "skewY", "skew", "rotateX", "rotateY", "rotate"], u = ["blur", "hue-rotate", "brightness"], b = ["translateX", "translateY", "translateZ"], C = ["perspective", "border-radius", "blur", "translateX", "translateY", "translateZ"], A = ["hue-rotate", "rotate", "rotateX", "rotateY", "skew", "skewX", "skewY"], E = { easeInQuad: function(d) {
|
|
392
|
+
return d * d;
|
|
393
|
+
}, easeOutQuad: function(d) {
|
|
394
|
+
return d * (2 - d);
|
|
395
|
+
}, easeInOutQuad: function(d) {
|
|
396
|
+
return d < 0.5 ? 2 * d * d : (4 - 2 * d) * d - 1;
|
|
397
|
+
}, easeInCubic: function(d) {
|
|
398
|
+
return d * d * d;
|
|
399
|
+
}, easeOutCubic: function(d) {
|
|
400
|
+
return --d * d * d + 1;
|
|
401
|
+
}, easeInOutCubic: function(d) {
|
|
402
|
+
return d < 0.5 ? 4 * d * d * d : (d - 1) * (2 * d - 2) * (2 * d - 2) + 1;
|
|
403
|
+
}, easeInQuart: function(d) {
|
|
404
|
+
return d * d * d * d;
|
|
405
|
+
}, easeOutQuart: function(d) {
|
|
406
|
+
return 1 - --d * d * d * d;
|
|
407
|
+
}, easeInOutQuart: function(d) {
|
|
408
|
+
return d < 0.5 ? 8 * d * d * d * d : 1 - 8 * --d * d * d * d;
|
|
409
|
+
}, easeInQuint: function(d) {
|
|
410
|
+
return d * d * d * d * d;
|
|
411
|
+
}, easeOutQuint: function(d) {
|
|
412
|
+
return 1 + --d * d * d * d * d;
|
|
413
|
+
}, easeInOutQuint: function(d) {
|
|
414
|
+
return d < 0.5 ? 16 * d * d * d * d * d : 1 + 16 * --d * d * d * d * d;
|
|
415
|
+
}, easeOutBounce: function(d) {
|
|
416
|
+
var f = 7.5625, v = 2.75;
|
|
417
|
+
return d < 1 / v ? f * d * d : d < 2 / v ? f * (d -= 1.5 / v) * d + 0.75 : d < 2.5 / v ? f * (d -= 2.25 / v) * d + 0.9375 : f * (d -= 2.625 / v) * d + 0.984375;
|
|
418
|
+
}, easeInBounce: function(d) {
|
|
419
|
+
return 1 - E.easeOutBounce(1 - d);
|
|
420
|
+
}, easeOutBack: function(d) {
|
|
421
|
+
return 1 + 2.70158 * Math.pow(d - 1, 3) + 1.70158 * Math.pow(d - 1, 2);
|
|
422
|
+
}, easeInBack: function(d) {
|
|
423
|
+
return 2.70158 * d * d * d - 1.70158 * d * d;
|
|
424
|
+
} }, new function d() {
|
|
425
|
+
var f = this;
|
|
426
|
+
t(this, d), i(this, "drivers", []), i(this, "elements", []), i(this, "frame", 0), i(this, "debug", !1), i(this, "windowWidth", 0), i(this, "windowHeight", 0), i(this, "presets", Q), i(this, "debugData", { frameLengths: [] }), i(this, "init", function() {
|
|
427
|
+
f.findAndAddElements(), window.requestAnimationFrame(f.onAnimationFrame), f.windowWidth = document.body.clientWidth, f.windowHeight = document.body.clientHeight, window.onresize = f.onWindowResize;
|
|
428
428
|
}), i(this, "onWindowResize", function() {
|
|
429
|
-
document.body.clientWidth ===
|
|
429
|
+
document.body.clientWidth === f.windowWidth && document.body.clientHeight === f.windowHeight || (f.windowWidth = document.body.clientWidth, f.windowHeight = document.body.clientHeight, f.elements.forEach(function(v) {
|
|
430
430
|
return v.calculateTransforms();
|
|
431
431
|
}));
|
|
432
432
|
}), i(this, "onAnimationFrame", function(v) {
|
|
433
|
-
|
|
433
|
+
f.debug && (f.debugData.frameStart = Date.now());
|
|
434
434
|
var T, O = {};
|
|
435
|
-
|
|
436
|
-
O[I.name] = I.getValue(
|
|
437
|
-
}),
|
|
438
|
-
I.update(O,
|
|
439
|
-
}),
|
|
435
|
+
f.drivers.forEach(function(I) {
|
|
436
|
+
O[I.name] = I.getValue(f.frame);
|
|
437
|
+
}), f.elements.forEach(function(I) {
|
|
438
|
+
I.update(O, f.frame);
|
|
439
|
+
}), f.debug && f.debugData.frameLengths.push(Date.now() - f.debugData.frameStart), f.frame % 60 == 0 && f.debug && (T = Math.ceil(f.debugData.frameLengths.reduce(function(I, tt) {
|
|
440
440
|
return I + tt;
|
|
441
|
-
}, 0) / 60), console.log("Average frame calculation time: ".concat(T, "ms")),
|
|
441
|
+
}, 0) / 60), console.log("Average frame calculation time: ".concat(T, "ms")), f.debugData.frameLengths = []), f.frame++, window.requestAnimationFrame(f.onAnimationFrame);
|
|
442
442
|
}), i(this, "addDriver", function(v, T) {
|
|
443
443
|
var O = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
|
|
444
|
-
|
|
444
|
+
f.drivers.push(new Lt(v, T, O));
|
|
445
445
|
}), i(this, "removeDriver", function(v) {
|
|
446
|
-
|
|
446
|
+
f.drivers = f.drivers.filter(function(T) {
|
|
447
447
|
return T.name !== v;
|
|
448
448
|
});
|
|
449
449
|
}), i(this, "findAndAddElements", function() {
|
|
450
|
-
|
|
450
|
+
f.elements = [], document.querySelectorAll(".lax").forEach(function(v) {
|
|
451
451
|
var T = [];
|
|
452
452
|
v.classList.forEach(function(I) {
|
|
453
453
|
I.includes("lax_preset") && (I = I.replace("lax_preset_", ""), T.push(I));
|
|
454
454
|
});
|
|
455
455
|
var O = i({}, "scrollY", { presets: T });
|
|
456
|
-
|
|
456
|
+
f.elements.push(new kt(".lax", f, v, O, 0, {}));
|
|
457
457
|
});
|
|
458
458
|
}), i(this, "addElements", function(v, T, O) {
|
|
459
459
|
document.querySelectorAll(v).forEach(function(I, tt) {
|
|
460
|
-
|
|
460
|
+
f.elements.push(new kt(v, f, I, T, tt, O));
|
|
461
461
|
});
|
|
462
462
|
}), i(this, "removeElements", function(v) {
|
|
463
|
-
|
|
463
|
+
f.elements = f.elements.filter(function(T) {
|
|
464
464
|
return T.selector !== v;
|
|
465
465
|
});
|
|
466
466
|
}), i(this, "addElement", function(v, T, O) {
|
|
467
|
-
|
|
467
|
+
f.elements.push(new kt("", f, v, T, 0, O));
|
|
468
468
|
}), i(this, "removeElement", function(v) {
|
|
469
|
-
|
|
469
|
+
f.elements = f.elements.filter(function(T) {
|
|
470
470
|
return T.domElement !== v;
|
|
471
471
|
});
|
|
472
472
|
});
|
|
473
473
|
}());
|
|
474
|
-
function Bt(
|
|
475
|
-
if (Array.isArray(
|
|
476
|
-
for (var v = Object.keys(
|
|
474
|
+
function Bt(d, f) {
|
|
475
|
+
if (Array.isArray(d)) return d;
|
|
476
|
+
for (var v = Object.keys(d).map(function(tt) {
|
|
477
477
|
return parseInt(tt);
|
|
478
478
|
}).sort(function(tt, At) {
|
|
479
479
|
return At < tt ? 1 : -1;
|
|
480
480
|
}), T = v[v.length - 1], O = 0; O < v.length; O++) {
|
|
481
481
|
var I = v[O];
|
|
482
|
-
if (
|
|
482
|
+
if (f < I) {
|
|
483
483
|
T = I;
|
|
484
484
|
break;
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
return
|
|
487
|
+
return d[T];
|
|
488
488
|
}
|
|
489
|
-
function Ct(
|
|
489
|
+
function Ct(d, L, v) {
|
|
490
490
|
var T = L.width, O = L.height, x = L.x, X = L.y;
|
|
491
|
-
if (typeof
|
|
491
|
+
if (typeof d == "number") return d;
|
|
492
492
|
var I, tt = document.body.scrollHeight, At = document.body.scrollWidth, B = window.innerWidth, gt = window.innerHeight, S = s((I = window.pageXOffset !== void 0, S = (document.compatMode || "") === "CSS1Compat", L = I ? window.pageXOffset : (S ? document.documentElement : document.body).scrollLeft, [I ? window.pageYOffset : (S ? document.documentElement : document.body).scrollTop, L]), 2), L = S[0], x = x + S[1], S = x + T, X = X + L, L = X + O;
|
|
493
|
-
return Function("return ".concat(
|
|
493
|
+
return Function("return ".concat(d.replace(/screenWidth/g, B).replace(/screenHeight/g, gt).replace(/pageHeight/g, tt).replace(/pageWidth/g, At).replace(/elWidth/g, T).replace(/elHeight/g, O).replace(/elInY/g, X - gt).replace(/elOutY/g, L).replace(/elCenterY/g, X + O / 2 - gt / 2).replace(/elInX/g, x - B).replace(/elOutX/g, S).replace(/elCenterX/g, x + T / 2 - B / 2).replace(/index/g, v)))();
|
|
494
494
|
}
|
|
495
|
-
function Lt(
|
|
495
|
+
function Lt(d, f) {
|
|
496
496
|
var v = this, T = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
|
|
497
497
|
t(this, Lt), i(this, "getValueFn", void 0), i(this, "name", ""), i(this, "lastValue", 0), i(this, "frameStep", 1), i(this, "m1", 0), i(this, "m2", 0), i(this, "inertia", 0), i(this, "inertiaEnabled", !1), i(this, "getValue", function(O) {
|
|
498
498
|
var I = v.lastValue;
|
|
499
499
|
return O % v.frameStep == 0 && (I = v.getValueFn(O)), v.inertiaEnabled && (O = I - v.lastValue, v.m1 = 0.8 * v.m1 + O * (1 - 0.8), v.m2 = 0.8 * v.m2 + v.m1 * (1 - 0.8), v.inertia = Math.round(5e3 * v.m2) / 15e3), v.lastValue = I, [v.lastValue, v.inertia];
|
|
500
|
-
}), this.name =
|
|
500
|
+
}), this.name = d, this.getValueFn = f, Object.keys(T).forEach(function(O) {
|
|
501
501
|
v[O] = T[O];
|
|
502
502
|
}), this.lastValue = this.getValueFn(0);
|
|
503
503
|
}
|
|
504
|
-
function kt(
|
|
504
|
+
function kt(d, f, v, T) {
|
|
505
505
|
var O = this, I = 4 < arguments.length && arguments[4] !== void 0 ? arguments[4] : 0, At = 5 < arguments.length && arguments[5] !== void 0 ? arguments[5] : {};
|
|
506
506
|
t(this, kt), i(this, "domElement", void 0), i(this, "transformsData", void 0), i(this, "styles", {}), i(this, "selector", ""), i(this, "groupIndex", 0), i(this, "laxInstance", void 0), i(this, "onUpdate", void 0), i(this, "update", function(B, gt) {
|
|
507
507
|
var x, S = O.transforms, X = {};
|
|
508
508
|
for (x in S) {
|
|
509
509
|
var L = S[x];
|
|
510
510
|
B[x] || console.error("No lax driver with name: ", x);
|
|
511
|
-
var
|
|
512
|
-
for (
|
|
513
|
-
var
|
|
511
|
+
var K, Z = s(B[x], 2), $ = Z[0], It = Z[1];
|
|
512
|
+
for (K in L) {
|
|
513
|
+
var G, ot = s(L[K], 3), P = ot[0], D = ot[1], Ot = ot[2], z = Ot === void 0 ? {} : Ot, rt = z.modValue, pt = z.frameStep, _t = pt === void 0 ? 1 : pt, lt = z.easing, ot = z.inertia, Ot = z.inertiaMode, pt = z.cssFn, z = z.cssUnit, z = z === void 0 ? "" : z, lt = E[lt];
|
|
514
514
|
gt % _t == 0 && (lt = (function(et, it, mt, bt) {
|
|
515
515
|
var st = 0;
|
|
516
516
|
if (et.forEach(function(Et) {
|
|
@@ -519,7 +519,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
519
519
|
if (st >= et.length) return it[et.length - 1];
|
|
520
520
|
var yt, q = (q = et[yt = st - 1], et = et[st], (mt - q) / (et - q));
|
|
521
521
|
return bt && (q = bt(q)), yt = it[yt], it = it[st], yt * (1 - (q = q)) + it * q;
|
|
522
|
-
})(P, D, rt ?
|
|
522
|
+
})(P, D, rt ? $ % rt : $, lt), ot && (G = It * ot, Ot === "absolute" && (G = Math.abs(G)), lt += G), G = (z || C.includes(K) ? "px" : A.includes(K) ? "deg" : "") == "px" ? 0 : 3, G = lt.toFixed(G), X[K] = pt ? pt(G, O.domElement) : G + z);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
O.applyStyles(X), O.onUpdate && O.onUpdate(B, O.domElement);
|
|
@@ -529,30 +529,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
529
529
|
for (B in O.transformsData) (function(x) {
|
|
530
530
|
var S = O.transformsData[x], X = {}, L = S.presets;
|
|
531
531
|
(L === void 0 ? [] : L).forEach(function(P) {
|
|
532
|
-
var
|
|
533
|
-
D ? (
|
|
534
|
-
S[rt] =
|
|
532
|
+
var $, D = s(P.split(":"), 3), It = D[0], G = D[1], P = D[2], D = window.lax.presets[It];
|
|
533
|
+
D ? ($ = D(G, P), Object.keys($).forEach(function(rt) {
|
|
534
|
+
S[rt] = $[rt];
|
|
535
535
|
})) : console.error("Lax preset cannot be found with name: ", It);
|
|
536
536
|
}), delete S.presets;
|
|
537
|
-
for (var
|
|
538
|
-
var
|
|
537
|
+
for (var K in S) (function(Z) {
|
|
538
|
+
var $ = s(S[Z], 3), P = $[0], G = P === void 0 ? [-1e9, 1e9] : P, P = $[1], P = P === void 0 ? [-1e9, 1e9] : P, $ = $[2], $ = $ === void 0 ? {} : $, It = O.domElement.getBoundingClientRect(), G = Bt(G, gt).map(function(D) {
|
|
539
539
|
return Ct(D, It, O.groupIndex);
|
|
540
540
|
}), P = Bt(P, gt).map(function(D) {
|
|
541
541
|
return Ct(D, It, O.groupIndex);
|
|
542
542
|
});
|
|
543
|
-
X[
|
|
544
|
-
})(
|
|
543
|
+
X[Z] = [G, P, $];
|
|
544
|
+
})(K);
|
|
545
545
|
O.transforms[x] = X;
|
|
546
546
|
})(B);
|
|
547
547
|
}), i(this, "applyStyles", function(B) {
|
|
548
548
|
var gt, x, S, X = (gt = B, x = { transform: "", filter: "" }, S = { translateX: 1e-5, translateY: 1e-5, translateZ: 1e-5 }, Object.keys(gt).forEach(function(L) {
|
|
549
|
-
var
|
|
550
|
-
b.includes(L) ? S[L] =
|
|
549
|
+
var K = gt[L], Z = C.includes(L) ? "px" : A.includes(L) ? "deg" : "";
|
|
550
|
+
b.includes(L) ? S[L] = K : c.includes(L) ? x.transform += "".concat(L, "(").concat(K).concat(Z, ") ") : u.includes(L) ? x.filter += "".concat(L, "(").concat(K).concat(Z, ") ") : x[L] = "".concat(K).concat(Z, " ");
|
|
551
551
|
}), x.transform = "translate3d(".concat(S.translateX, "px, ").concat(S.translateY, "px, ").concat(S.translateZ, "px) ").concat(x.transform), x);
|
|
552
552
|
Object.keys(X).forEach(function(L) {
|
|
553
553
|
O.domElement.style.setProperty(L, X[L]);
|
|
554
554
|
});
|
|
555
|
-
}), this.selector =
|
|
555
|
+
}), this.selector = d, this.laxInstance = f, this.domElement = v, this.transformsData = T, this.groupIndex = I;
|
|
556
556
|
var tt = (I = At.style) === void 0 ? {} : I, At = At.onUpdate;
|
|
557
557
|
Object.keys(tt).forEach(function(B) {
|
|
558
558
|
v.style.setProperty(B, tt[B]);
|
|
@@ -563,7 +563,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
563
563
|
})(Oe)), Oe.exports;
|
|
564
564
|
}
|
|
565
565
|
var ei = ti();
|
|
566
|
-
const
|
|
566
|
+
const Kt = /* @__PURE__ */ je(ei);
|
|
567
567
|
class ii {
|
|
568
568
|
constructor(t = {}) {
|
|
569
569
|
const i = {
|
|
@@ -572,14 +572,14 @@ class ii {
|
|
|
572
572
|
this.settings = Object.assign(this, i, t), this.elements = [];
|
|
573
573
|
}
|
|
574
574
|
init() {
|
|
575
|
-
|
|
575
|
+
Kt.init(), Kt.addDriver("scrollY", function() {
|
|
576
576
|
return window.scrollY;
|
|
577
|
-
}), this.refresh(), this.lax =
|
|
577
|
+
}), this.refresh(), this.lax = Kt, Object.assign(this, Kt);
|
|
578
578
|
}
|
|
579
579
|
refresh() {
|
|
580
580
|
let t = !1;
|
|
581
581
|
document.body.hasAttribute("data-skrollrr-off") && (t = !0), this.elements.forEach((e) => {
|
|
582
|
-
|
|
582
|
+
Kt.removeElement(e), e.style && (e.style.transition && (e.style.transition = ""), e.style.transform && (e.style.transform = ""));
|
|
583
583
|
}), this.elements = [];
|
|
584
584
|
let i = window.innerWidth;
|
|
585
585
|
document.querySelectorAll("[data-bottom-top],[data-center],[data-center-bottom],[data-100-top],[data-50-top],[data-top],[data-top-bottom],[data-center-top],[data--300-bottom],[data--150-bottom],[data--50-bottom],[data-bottom],[data-100-bottom],[data-150-bottom],[data-400-bottom],[data--400-bottom],[data--200-bottom],[data--100-bottom],[data-50-bottom],[data-200-bottom],[data-300-bottom],[data-in],[data-in-150],[data-in-300],[data-cen--150],[data-cen],[data-cen-150],[data-out--300],[data-out--150],[data-out][data-t],[data-t-100],[data-t-200],[data-t-300],[data-t-400],[data-t-500],[data-t-600],[data-t-700],[data-t-800],[data-t-900],[data-t-1000],[data-t-1100],[data-t-1200],[data-t-1300],[data-t-1400],[data-t-1500],[data-t-1600],[data-t-1700],[data-t-1800],[data-t-1900],[data-t-2000],[data-t-2100],[data-t-2200],[data-t-2300],[data-t-2400],[data-t-2500],[data-t-2600],[data-t-2700],[data-t-2800]").forEach((e) => {
|
|
@@ -589,18 +589,18 @@ class ii {
|
|
|
589
589
|
return;
|
|
590
590
|
}
|
|
591
591
|
e.style.transform = "";
|
|
592
|
-
let r = this.getObjVal(e, "data-top-bottom"), n = this.getObjVal(e, "data-top"), h = this.getObjVal(e, "data-50-top"),
|
|
593
|
-
e.hasAttribute("data-xs") && (
|
|
594
|
-
let
|
|
595
|
-
e.hasAttribute("data-sm") && (
|
|
596
|
-
let
|
|
597
|
-
e.hasAttribute("data-md") && (
|
|
598
|
-
let It = {},
|
|
599
|
-
(i > 1280 || i > 970 && i <= 1280 &&
|
|
600
|
-
let W = P, H = D, _ = rt,
|
|
601
|
-
Ft < 730 ? (It = W,
|
|
592
|
+
let r = this.getObjVal(e, "data-top-bottom"), n = this.getObjVal(e, "data-top"), h = this.getObjVal(e, "data-50-top"), l = this.getObjVal(e, "data-100-top"), c = this.getObjVal(e, "data-center-bottom"), u = this.getObjVal(e, "data-center"), b = this.getObjVal(e, "data-center-top"), C = this.getObjVal(e, "data--400-bottom"), A = this.getObjVal(e, "data--300-bottom"), E = this.getObjVal(e, "data--200-bottom"), Q = this.getObjVal(e, "data--150-bottom"), ft = this.getObjVal(e, "data--100-bottom"), Bt = this.getObjVal(e, "data--50-bottom"), Ct = this.getObjVal(e, "data-bottom"), Lt = this.getObjVal(e, "data-50-bottom"), kt = this.getObjVal(e, "data-100-bottom"), d = this.getObjVal(e, "data-150-bottom"), f = this.getObjVal(e, "data-200-bottom"), v = this.getObjVal(e, "data-300-bottom"), T = this.getObjVal(e, "data-400-bottom"), O = this.getObjVal(e, "data-bottom-top"), I = this.getObjVal(e, "data-in"), tt = this.getObjVal(e, "data-in-150"), At = this.getObjVal(e, "data-in-300"), B = this.getObjVal(e, "data-cen--150"), gt = this.getObjVal(e, "data-cen"), x = this.getObjVal(e, "data-cen-150"), S = this.getObjVal(e, "data-out--300"), X = this.getObjVal(e, "data-out--150"), L = this.getObjVal(e, "data-out"), K = !1;
|
|
593
|
+
e.hasAttribute("data-xs") && (K = !0);
|
|
594
|
+
let Z = !1;
|
|
595
|
+
e.hasAttribute("data-sm") && (Z = !0);
|
|
596
|
+
let $ = !1;
|
|
597
|
+
e.hasAttribute("data-md") && ($ = !0), e.hasAttribute("data-lg"), e.hasAttribute("data-xl");
|
|
598
|
+
let It = {}, G = {}, P = {}, D = {}, rt = {}, _t = {}, ot = {}, Ot = {}, pt = {}, z = {}, lt = {}, et = {}, it = {}, mt = {}, bt = {}, st = {}, yt = {}, q = {}, Et = {}, Vt = {}, dt = {}, Yt = {}, V = {}, Mt = {}, vt = {}, Pt = {}, qt = {}, Dt = {}, p = {}, m = {}, y = {}, w = {}, k = {};
|
|
599
|
+
(i > 1280 || i > 970 && i <= 1280 && !$ || i > 760 && i <= 970 && !Z || i <= 760 && !K) && (P = this.getObjVal(e, "data-t"), D = this.getObjVal(e, "data-t-100"), rt = this.getObjVal(e, "data-t-200"), _t = this.getObjVal(e, "data-t-300"), ot = this.getObjVal(e, "data-t-400"), Ot = this.getObjVal(e, "data-t-500"), pt = this.getObjVal(e, "data-t-600"), z = this.getObjVal(e, "data-t-700"), lt = this.getObjVal(e, "data-t-800"), et = this.getObjVal(e, "data-t-900"), it = this.getObjVal(e, "data-t-1000"), mt = this.getObjVal(e, "data-t-1100"), bt = this.getObjVal(e, "data-t-1200"), st = this.getObjVal(e, "data-t-1300"), yt = this.getObjVal(e, "data-t-1400"), q = this.getObjVal(e, "data-t-1500"), Et = this.getObjVal(e, "data-t-1600"), Vt = this.getObjVal(e, "data-t-1700"), dt = this.getObjVal(e, "data-t-1800"), Yt = this.getObjVal(e, "data-t-1900"), V = this.getObjVal(e, "data-t-2000"), Mt = this.getObjVal(e, "data-t-2100"), vt = this.getObjVal(e, "data-t-2200"), Pt = this.getObjVal(e, "data-t-2300"), qt = this.getObjVal(e, "data-t-2400"), Dt = this.getObjVal(e, "data-t-2500"), p = this.getObjVal(e, "data-t-2600"), m = this.getObjVal(e, "data-t-2700"), y = this.getObjVal(e, "data-t-2800")), i > 970 && i <= 1280 && $ && (e.hasAttribute("data-md-t") && (P = this.getObjVal(e, "data-md-t")), e.hasAttribute("data-md-t-100") && (D = this.getObjVal(e, "data-md-t-100")), e.hasAttribute("data-md-t-200") && (rt = this.getObjVal(e, "data-md-t-200")), e.hasAttribute("data-md-t-300") && (_t = this.getObjVal(e, "data-md-t-300")), e.hasAttribute("data-md-t-400") && (ot = this.getObjVal(e, "data-md-t-400")), e.hasAttribute("data-md-t-500") && (Ot = this.getObjVal(e, "data-md-t-500")), e.hasAttribute("data-md-t-600") && (pt = this.getObjVal(e, "data-md-t-600")), e.hasAttribute("data-md-t-700") && (z = this.getObjVal(e, "data-md-t-700")), e.hasAttribute("data-md-t-800") && (lt = this.getObjVal(e, "data-md-t-800")), e.hasAttribute("data-md-t-900") && (et = this.getObjVal(e, "data-md-t-900")), e.hasAttribute("data-md-t-1000") && (it = this.getObjVal(e, "data-md-t-1000")), e.hasAttribute("data-md-t-1100") && (mt = this.getObjVal(e, "data-md-t-1100")), e.hasAttribute("data-md-t-1200") && (bt = this.getObjVal(e, "data-md-t-1200")), e.hasAttribute("data-md-t-1300") && (st = this.getObjVal(e, "data-md-t-1300")), e.hasAttribute("data-md-t-1400") && (yt = this.getObjVal(e, "data-md-t-1400")), e.hasAttribute("data-md-t-1500") && (q = this.getObjVal(e, "data-md-t-1500")), e.hasAttribute("data-md-t-1600") && (Et = this.getObjVal(e, "data-md-t-1600")), e.hasAttribute("data-md-t-1700") && (Vt = this.getObjVal(e, "data-md-t-1700")), e.hasAttribute("data-md-t-1800") && (dt = this.getObjVal(e, "data-md-t-1800")), e.hasAttribute("data-md-t-1900") && (Yt = this.getObjVal(e, "data-md-t-1900")), e.hasAttribute("data-md-t-2000") && (V = this.getObjVal(e, "data-md-t-2000")), e.hasAttribute("data-md-t-2100") && (Mt = this.getObjVal(e, "data-md-t-2100")), e.hasAttribute("data-md-t-2200") && (vt = this.getObjVal(e, "data-md-t-2200")), e.hasAttribute("data-md-t-2300") && (Pt = this.getObjVal(e, "data-md-t-2300")), e.hasAttribute("data-md-t-2400") && (qt = this.getObjVal(e, "data-md-t-2400")), e.hasAttribute("data-md-t-2500") && (Dt = this.getObjVal(e, "data-md-t-2500")), e.hasAttribute("data-md-t-2600") && (p = this.getObjVal(e, "data-md-t-2600")), e.hasAttribute("data-md-t-2700") && (m = this.getObjVal(e, "data-md-t-2700")), e.hasAttribute("data-md-t-2800") && (y = this.getObjVal(e, "data-md-t-2800"))), i <= 970 && e.hasAttribute("m-data-out") && (L = this.getObjVal(e, "m-data-out")), (i > 760 && i <= 970 && Z || i <= 760 && !K && Z) && (e.hasAttribute("data-sm-t") && (P = this.getObjVal(e, "data-sm-t")), e.hasAttribute("data-sm-t-100") && (D = this.getObjVal(e, "data-sm-t-100")), e.hasAttribute("data-sm-t-200") && (rt = this.getObjVal(e, "data-sm-t-200")), e.hasAttribute("data-sm-t-300") && (_t = this.getObjVal(e, "data-sm-t-300")), e.hasAttribute("data-sm-t-400") && (ot = this.getObjVal(e, "data-sm-t-400")), e.hasAttribute("data-sm-t-500") && (Ot = this.getObjVal(e, "data-sm-t-500")), e.hasAttribute("data-sm-t-600") && (pt = this.getObjVal(e, "data-sm-t-600")), e.hasAttribute("data-sm-t-700") && (z = this.getObjVal(e, "data-sm-t-700")), e.hasAttribute("data-sm-t-800") && (lt = this.getObjVal(e, "data-sm-t-800")), e.hasAttribute("data-sm-t-900") && (et = this.getObjVal(e, "data-sm-t-900")), e.hasAttribute("data-sm-t-1000") && (it = this.getObjVal(e, "data-sm-t-1000")), e.hasAttribute("data-sm-t-1100") && (mt = this.getObjVal(e, "data-sm-t-1100")), e.hasAttribute("data-sm-t-1200") && (bt = this.getObjVal(e, "data-sm-t-1200")), e.hasAttribute("data-sm-t-1300") && (st = this.getObjVal(e, "data-sm-t-1300")), e.hasAttribute("data-sm-t-1400") && (yt = this.getObjVal(e, "data-sm-t-1400")), e.hasAttribute("data-sm-t-1500") && (q = this.getObjVal(e, "data-sm-t-1500")), e.hasAttribute("data-sm-t-1600") && (Et = this.getObjVal(e, "data-sm-t-1600")), e.hasAttribute("data-sm-t-1700") && (Vt = this.getObjVal(e, "data-sm-t-1700")), e.hasAttribute("data-sm-t-1800") && (dt = this.getObjVal(e, "data-sm-t-1800")), e.hasAttribute("data-sm-t-1900") && (Yt = this.getObjVal(e, "data-sm-t-1900")), e.hasAttribute("data-sm-t-2000") && (V = this.getObjVal(e, "data-sm-t-2000")), e.hasAttribute("data-sm-t-2100") && (Mt = this.getObjVal(e, "data-sm-t-2100")), e.hasAttribute("data-sm-t-2200") && (vt = this.getObjVal(e, "data-sm-t-2200")), e.hasAttribute("data-sm-t-2300") && (Pt = this.getObjVal(e, "data-sm-t-2300")), e.hasAttribute("data-sm-t-2400") && (qt = this.getObjVal(e, "data-sm-t-2400")), e.hasAttribute("data-sm-t-2500") && (Dt = this.getObjVal(e, "data-sm-t-2500")), e.hasAttribute("data-sm-t-2600") && (p = this.getObjVal(e, "data-sm-t-2600")), e.hasAttribute("data-sm-t-2700") && (m = this.getObjVal(e, "data-sm-t-2700")), e.hasAttribute("data-sm-t-2800") && (y = this.getObjVal(e, "data-sm-t-2800"))), i <= 414 && K && (e.hasAttribute("data-xs-t") && (P = this.getObjVal(e, "data-xs-t")), e.hasAttribute("data-xs-t-100") && (D = this.getObjVal(e, "data-xs-t-100")), e.hasAttribute("data-xs-t-200") && (rt = this.getObjVal(e, "data-xs-t-200")), e.hasAttribute("data-xs-t-300") && (_t = this.getObjVal(e, "data-xs-t-300")), e.hasAttribute("data-xs-t-400") && (ot = this.getObjVal(e, "data-xs-t-400")), e.hasAttribute("data-xs-t-500") && (Ot = this.getObjVal(e, "data-xs-t-500")), e.hasAttribute("data-xs-t-600") && (pt = this.getObjVal(e, "data-xs-t-600")), e.hasAttribute("data-xs-t-700") && (z = this.getObjVal(e, "data-xs-t-700")), e.hasAttribute("data-xs-t-800") && (lt = this.getObjVal(e, "data-xs-t-800")), e.hasAttribute("data-xs-t-900") && (et = this.getObjVal(e, "data-xs-t-900")), e.hasAttribute("data-xs-t-1000") && (it = this.getObjVal(e, "data-xs-t-1000")), e.hasAttribute("data-xs-t-1100") && (mt = this.getObjVal(e, "data-xs-t-1100")), e.hasAttribute("data-xs-t-1200") && (bt = this.getObjVal(e, "data-xs-t-1200")), e.hasAttribute("data-xs-t-1300") && (st = this.getObjVal(e, "data-xs-t-1300")), e.hasAttribute("data-xs-t-1400") && (yt = this.getObjVal(e, "data-xs-t-1400")), e.hasAttribute("data-xs-t-1500") && (q = this.getObjVal(e, "data-xs-t-1500")), e.hasAttribute("data-xs-t-1600") && (Et = this.getObjVal(e, "data-xs-t-1600")), e.hasAttribute("data-xs-t-1700") && (Vt = this.getObjVal(e, "data-xs-t-1700")), e.hasAttribute("data-xs-t-1800") && (dt = this.getObjVal(e, "data-xs-t-1800")), e.hasAttribute("data-xs-t-1900") && (Yt = this.getObjVal(e, "data-xs-t-1900")), e.hasAttribute("data-xs-t-2000") && (V = this.getObjVal(e, "data-xs-t-2000")), e.hasAttribute("data-xs-t-2100") && (Mt = this.getObjVal(e, "data-xs-t-2100")), e.hasAttribute("data-xs-t-2200") && (vt = this.getObjVal(e, "data-xs-t-2200")), e.hasAttribute("data-xs-t-2300") && (Pt = this.getObjVal(e, "data-xs-t-2300")), e.hasAttribute("data-xs-t-2400") && (qt = this.getObjVal(e, "data-xs-t-2400")), e.hasAttribute("data-xs-t-2500") && (Dt = this.getObjVal(e, "data-xs-t-2500")), e.hasAttribute("data-xs-t-2600") && (p = this.getObjVal(e, "data-xs-t-2600")), e.hasAttribute("data-xs-t-2700") && (m = this.getObjVal(e, "data-xs-t-2700")), e.hasAttribute("data-xs-t-2800") && (y = this.getObjVal(e, "data-xs-t-2800")));
|
|
600
|
+
let W = P, H = D, _ = rt, R = _t, M = ot, ht = Ot, F = pt, J = z, ct = lt, zt = et, St = it, Xt = mt, nt = bt, j = st, U = yt, ut = q, te = Et, ee = Vt, ie = dt, se = Yt, ne = V, ae = Mt, re = vt, oe = Pt, le = qt, de = Dt, he = p, ce = m, ue = y, Ft = window.innerHeight;
|
|
601
|
+
Ft < 730 ? (It = W, G = H, P = _, D = R, rt = M, _t = ht, ot = F, Ot = J, pt = ct, z = zt, lt = St, et = Xt, it = nt, mt = j, bt = U, st = ut, yt = te, q = ee, Et = ie, Vt = se, dt = ne, Yt = ae, V = re, Mt = oe, vt = le, Pt = de, qt = he, Dt = ce, p = ue, m = {}, y = {}) : Ft >= 730 && Ft < 790 ? (G = W, P = H, D = _, rt = R, _t = M, ot = ht, Ot = F, pt = J, z = ct, lt = zt, et = St, it = Xt, mt = nt, bt = j, st = U, yt = ut, q = te, Et = ee, Vt = ie, dt = se, Yt = ne, V = ae, Mt = re, vt = oe, Pt = le, qt = de, Dt = he, p = ce, m = ue, y = {}) : Ft >= 790 && Ft < 840 || (Ft >= 840 && Ft < 1125 ? (P = {}, D = W, rt = H, _t = _, ot = R, Ot = M, pt = ht, z = F, lt = J, et = ct, it = zt, mt = St, bt = Xt, st = nt, yt = j, q = U, Et = ut, Vt = te, dt = ee, Yt = ie, V = se, Mt = ne, vt = ae, Pt = re, qt = oe, Dt = le, p = de, m = he, y = ce, w = ue) : (P = {}, D = {}, rt = W, _t = H, ot = _, Ot = R, pt = M, z = ht, lt = F, et = J, it = ct, mt = zt, bt = St, st = Xt, yt = nt, q = j, Et = U, Vt = ut, dt = te, Yt = ee, V = ie, Mt = se, vt = ne, Pt = ae, qt = re, Dt = oe, p = le, m = de, y = he, w = ce, k = ue));
|
|
602
602
|
let g = {};
|
|
603
|
-
Object.keys(O).length !== 0 && (g = this.parseObj(O, "elInY", g)), Object.keys(T).length !== 0 && (g = this.parseObj(T, "elInY+50", g)), Object.keys(v).length !== 0 && (g = this.parseObj(v, "elInY+100", g)), Object.keys(
|
|
603
|
+
Object.keys(O).length !== 0 && (g = this.parseObj(O, "elInY", g)), Object.keys(T).length !== 0 && (g = this.parseObj(T, "elInY+50", g)), Object.keys(v).length !== 0 && (g = this.parseObj(v, "elInY+100", g)), Object.keys(f).length !== 0 && (g = this.parseObj(f, "elInY+150", g)), Object.keys(d).length !== 0 && (g = this.parseObj(d, "elInY+200", g)), Object.keys(kt).length !== 0 && (g = this.parseObj(kt, "elInY+250", g)), Object.keys(Lt).length !== 0 && (g = this.parseObj(Lt, "elInY+300", g)), Object.keys(Ct).length !== 0 && (g = this.parseObj(Ct, "elInY+350", g)), Object.keys(Bt).length !== 0 && (g = this.parseObj(Bt, "elInY+400", g)), Object.keys(ft).length !== 0 && (g = this.parseObj(ft, "elInY+450", g)), Object.keys(Q).length !== 0 && (g = this.parseObj(Q, "elInY+500", g)), Object.keys(E).length !== 0 && (g = this.parseObj(E, "elInY+550", g)), Object.keys(A).length !== 0 && (g = this.parseObj(A, "elInY+600", g)), Object.keys(C).length !== 0 && (g = this.parseObj(C, "elInY+650", g)), Object.keys(b).length !== 0 && (g = this.parseObj(b, "elCenterY-300", g)), Object.keys(u).length !== 0 && (g = this.parseObj(u, "elCenterY", g)), Object.keys(c).length !== 0 && (g = this.parseObj(c, "elCenterY+100", g)), Object.keys(l).length !== 0 && (g = this.parseObj(l, "elCenterY+200", g)), Object.keys(h).length !== 0 && (g = this.parseObj(h, "elCenterY+300", g)), Object.keys(n).length !== 0 && (g = this.parseObj(n, "elOutY-300", g)), Object.keys(r).length !== 0 && (g = this.parseObj(r, "elOutY", g)), Object.keys(I).length !== 0 && (g = this.parseObj(I, "elInY", g)), Object.keys(tt).length !== 0 && (g = this.parseObj(tt, "elInY+150", g)), Object.keys(At).length !== 0 && (g = this.parseObj(At, "elInY+300 ", g)), Object.keys(B).length !== 0 && (g = this.parseObj(B, "elCenterY-150", g)), Object.keys(gt).length !== 0 && (g = this.parseObj(gt, "elCenterY", g)), Object.keys(x).length !== 0 && (g = this.parseObj(x, "elCenterY+150", g)), Object.keys(S).length !== 0 && (g = this.parseObj(S, "elOutY-300 ", g)), Object.keys(X).length !== 0 && (g = this.parseObj(X, "elOutY-150 ", g)), Object.keys(L).length !== 0 && (g = this.parseObj(L, "elOutY", g)), Object.keys(It).length !== 0 && (g = this.parseObj(It, "elInY-200", g)), Object.keys(G).length !== 0 && (g = this.parseObj(G, "elInY-100", g)), Object.keys(P).length !== 0 && (g = this.parseObj(P, "elInY", g)), Object.keys(D).length !== 0 && (g = this.parseObj(D, "elInY+100", g)), Object.keys(rt).length !== 0 && (g = this.parseObj(rt, "elInY+200", g)), Object.keys(_t).length !== 0 && (g = this.parseObj(_t, "elInY+300 ", g)), Object.keys(ot).length !== 0 && (g = this.parseObj(ot, "elInY+400 ", g)), Object.keys(Ot).length !== 0 && (g = this.parseObj(Ot, "elInY+500 ", g)), Object.keys(pt).length !== 0 && (g = this.parseObj(pt, "elInY+600 ", g)), Object.keys(z).length !== 0 && (g = this.parseObj(z, "elInY+700 ", g)), Object.keys(lt).length !== 0 && (g = this.parseObj(lt, "elInY+800 ", g)), Object.keys(et).length !== 0 && (g = this.parseObj(et, "elInY+900 ", g)), Object.keys(it).length !== 0 && (g = this.parseObj(it, "elInY+1000 ", g)), Object.keys(mt).length !== 0 && (g = this.parseObj(mt, "elInY+1100 ", g)), Object.keys(bt).length !== 0 && (g = this.parseObj(bt, "elInY+1200 ", g)), Object.keys(st).length !== 0 && (g = this.parseObj(st, "elInY+1300 ", g)), Object.keys(yt).length !== 0 && (g = this.parseObj(yt, "elInY+1400 ", g)), Object.keys(q).length !== 0 && (g = this.parseObj(q, "elInY+1500 ", g)), Object.keys(Et).length !== 0 && (g = this.parseObj(Et, "elInY+1600 ", g)), Object.keys(Vt).length !== 0 && (g = this.parseObj(Vt, "elInY+1700 ", g)), Object.keys(dt).length !== 0 && (g = this.parseObj(dt, "elInY+1800 ", g)), Object.keys(Yt).length !== 0 && (g = this.parseObj(Yt, "elInY+1900 ", g)), Object.keys(V).length !== 0 && (g = this.parseObj(V, "elInY+2000 ", g)), Object.keys(Mt).length !== 0 && (g = this.parseObj(Mt, "elInY+2100 ", g)), Object.keys(vt).length !== 0 && (g = this.parseObj(vt, "elInY+2200 ", g)), Object.keys(Pt).length !== 0 && (g = this.parseObj(Pt, "elInY+2300 ", g)), Object.keys(qt).length !== 0 && (g = this.parseObj(qt, "elInY+2400 ", g)), Object.keys(Dt).length !== 0 && (g = this.parseObj(Dt, "elInY+2500 ", g)), Object.keys(p).length !== 0 && (g = this.parseObj(p, "elInY+2600 ", g)), Object.keys(m).length !== 0 && (g = this.parseObj(m, "elInY+2700 ", g)), Object.keys(y).length !== 0 && (g = this.parseObj(y, "elInY+2800 ", g)), Object.keys(w).length !== 0 && (g = this.parseObj(w, "elInY+2900 ", g)), Object.keys(k).length !== 0 && (g = this.parseObj(k, "elInY+3000 ", g)), e.style.transition = "", e.setAttribute("data-dummy-selector", "1"), Kt.addElements("[data-dummy-selector]", {
|
|
604
604
|
scrollY: g
|
|
605
605
|
}), this.elements.push(document.querySelector("[data-dummy-selector]")), e.removeAttribute("data-dummy-selector"), setTimeout(() => {
|
|
606
606
|
e.style.opacity = 1, e.getAttribute("data-smooth-scrolling") === "off" || this.settings.transition && (e.style.transition = this.settings.transition);
|
|
@@ -741,8 +741,8 @@ let be = class {
|
|
|
741
741
|
if (n !== this.visible) {
|
|
742
742
|
this.visible = n;
|
|
743
743
|
const h = this._toggleCallback();
|
|
744
|
-
h instanceof Promise ? h.then(this._toggleClass.bind(this)).catch((
|
|
745
|
-
console.error("Trigger promise failed"), console.error(
|
|
744
|
+
h instanceof Promise ? h.then(this._toggleClass.bind(this)).catch((l) => {
|
|
745
|
+
console.error("Trigger promise failed"), console.error(l);
|
|
746
746
|
}) : this._toggleClass(), this.visible && this.once && (this.active = !1);
|
|
747
747
|
} else if (n && typeof this.toggle.callback.visible == "function")
|
|
748
748
|
return this.toggle.callback.visible.call(this.element, this);
|
|
@@ -986,7 +986,7 @@ let be = class {
|
|
|
986
986
|
*
|
|
987
987
|
* Date: 2017-07-09
|
|
988
988
|
*/
|
|
989
|
-
const
|
|
989
|
+
const Zt = be, oi = ai, li = ri;
|
|
990
990
|
class di {
|
|
991
991
|
/**
|
|
992
992
|
* Constructor for the scroll trigger
|
|
@@ -1074,7 +1074,7 @@ class di {
|
|
|
1074
1074
|
* @returns Trigger
|
|
1075
1075
|
*/
|
|
1076
1076
|
createTrigger(t, i) {
|
|
1077
|
-
return new
|
|
1077
|
+
return new Zt(t, we(this.defaultTrigger, i));
|
|
1078
1078
|
}
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Creates an array of triggers
|
|
@@ -1095,7 +1095,7 @@ class di {
|
|
|
1095
1095
|
* @returns {ScrollTrigger}
|
|
1096
1096
|
*/
|
|
1097
1097
|
add(t, i) {
|
|
1098
|
-
return t instanceof HTMLElement ? (this.collection.add(this.createTrigger(t, i)), this) : t instanceof
|
|
1098
|
+
return t instanceof HTMLElement ? (this.collection.add(this.createTrigger(t, i)), this) : t instanceof Zt ? (this.collection.add(t), this) : t instanceof NodeList ? (this.collection.add(this.createTriggers(t, i)), this) : Array.isArray(t) && t.length && t[0] instanceof Zt ? (this.collection.add(t), this) : Array.isArray(t) && t.length && t[0] instanceof HTMLElement ? (this.collection.add(this.createTriggers(t, i)), this) : (this.collection.add(this.createTriggers(document.querySelectorAll(t), i)), this);
|
|
1099
1099
|
}
|
|
1100
1100
|
/**
|
|
1101
1101
|
* Removes triggers
|
|
@@ -1103,7 +1103,7 @@ class di {
|
|
|
1103
1103
|
* @returns {ScrollTrigger}
|
|
1104
1104
|
*/
|
|
1105
1105
|
remove(t) {
|
|
1106
|
-
return t instanceof
|
|
1106
|
+
return t instanceof Zt ? (this.collection.remove(t), this) : Array.isArray(t) && t.length && t[0] instanceof Zt ? (this.collection.remove(t), this) : t instanceof HTMLElement ? (this.collection.remove(this.search(t)), this) : Array.isArray(t) && t.length && t[0] instanceof HTMLElement ? (this.collection.remove(this.search(t)), this) : t instanceof NodeList ? (this.collection.remove(this.search(t)), this) : Array.isArray(t) && t.length && t[0] instanceof Zt ? (this.collection.remove(t), this) : (this.collection.remove(this.query(t.toString())), this);
|
|
1107
1107
|
}
|
|
1108
1108
|
/**
|
|
1109
1109
|
* Lookup one or multiple triggers by a query string
|
|
@@ -1135,12 +1135,12 @@ class di {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
const Pe = Date.now();
|
|
1138
|
-
function
|
|
1138
|
+
function Rt() {
|
|
1139
1139
|
let o = {}, t = !0, i = 0, s = arguments.length;
|
|
1140
1140
|
Object.prototype.toString.call(arguments[0]) === "[object Boolean]" && (t = arguments[0], i++);
|
|
1141
1141
|
let e = (a) => {
|
|
1142
1142
|
for (let r in a)
|
|
1143
|
-
Object.prototype.hasOwnProperty.call(a, r) && (t && Object.prototype.toString.call(a[r]) === "[object Object]" ? o[r] =
|
|
1143
|
+
Object.prototype.hasOwnProperty.call(a, r) && (t && Object.prototype.toString.call(a[r]) === "[object Object]" ? o[r] = Rt(!0, o[r], a[r]) : o[r] = a[r]);
|
|
1144
1144
|
};
|
|
1145
1145
|
for (; i < s; i++) {
|
|
1146
1146
|
let a = arguments[i];
|
|
@@ -1149,12 +1149,12 @@ function $t() {
|
|
|
1149
1149
|
return o;
|
|
1150
1150
|
}
|
|
1151
1151
|
function at(o, t) {
|
|
1152
|
-
if ((
|
|
1153
|
-
if (Ne(o) && !
|
|
1152
|
+
if (($t(o) || o === window || o === document) && (o = [o]), !Ne(o) && !Qt(o) && (o = [o]), Ke(o) != 0) {
|
|
1153
|
+
if (Ne(o) && !Qt(o)) {
|
|
1154
1154
|
let i = o.length, s = 0;
|
|
1155
1155
|
for (; s < i && t.call(o[s], o[s], s, o) !== !1; s++)
|
|
1156
1156
|
;
|
|
1157
|
-
} else if (
|
|
1157
|
+
} else if (Qt(o)) {
|
|
1158
1158
|
for (let i in o)
|
|
1159
1159
|
if (xt(o, i) && t.call(o[i], o[i], i, o) === !1)
|
|
1160
1160
|
break;
|
|
@@ -1163,7 +1163,7 @@ function at(o, t) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
function qe(o, t = null, i = null) {
|
|
1165
1165
|
const s = o[Pe] = o[Pe] || [], e = { all: s, evt: null, found: null };
|
|
1166
|
-
return t && i &&
|
|
1166
|
+
return t && i && Ke(s) > 0 && at(s, (a, r) => {
|
|
1167
1167
|
if (a.eventName == t && a.fn.toString() == i.toString())
|
|
1168
1168
|
return e.found = !0, e.evt = r, !1;
|
|
1169
1169
|
}), e;
|
|
@@ -1171,17 +1171,17 @@ function qe(o, t = null, i = null) {
|
|
|
1171
1171
|
function Ht(o, { onElement: t, withCallback: i, avoidDuplicate: s = !0, once: e = !1, useCapture: a = !1 } = {}, r) {
|
|
1172
1172
|
let n = t || [];
|
|
1173
1173
|
Jt(n) && (n = document.querySelectorAll(n));
|
|
1174
|
-
function h(
|
|
1175
|
-
N(i) && i.call(r,
|
|
1174
|
+
function h(l) {
|
|
1175
|
+
N(i) && i.call(r, l, this), e && h.destroy();
|
|
1176
1176
|
}
|
|
1177
1177
|
return h.destroy = function() {
|
|
1178
|
-
at(n, (
|
|
1179
|
-
const c = qe(
|
|
1180
|
-
c.found && c.all.splice(c.evt, 1),
|
|
1178
|
+
at(n, (l) => {
|
|
1179
|
+
const c = qe(l, o, h);
|
|
1180
|
+
c.found && c.all.splice(c.evt, 1), l.removeEventListener && l.removeEventListener(o, h, a);
|
|
1181
1181
|
});
|
|
1182
|
-
}, at(n, (
|
|
1183
|
-
const c = qe(
|
|
1184
|
-
(
|
|
1182
|
+
}, at(n, (l) => {
|
|
1183
|
+
const c = qe(l, o, h);
|
|
1184
|
+
(l.addEventListener && s && !c.found || !s) && (l.addEventListener(o, h, a), c.all.push({ eventName: o, fn: h }));
|
|
1185
1185
|
}), h;
|
|
1186
1186
|
}
|
|
1187
1187
|
function Y(o, t) {
|
|
@@ -1201,7 +1201,7 @@ function Wt(o, t) {
|
|
|
1201
1201
|
return o;
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function Gt(o, t = "", i = !1) {
|
|
1205
1205
|
if (!o || t === "")
|
|
1206
1206
|
return !1;
|
|
1207
1207
|
if (t === "none")
|
|
@@ -1340,7 +1340,7 @@ function N(o) {
|
|
|
1340
1340
|
function Jt(o) {
|
|
1341
1341
|
return typeof o == "string";
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function $t(o) {
|
|
1344
1344
|
return !!(o && o.nodeType && o.nodeType == 1);
|
|
1345
1345
|
}
|
|
1346
1346
|
function Ue(o) {
|
|
@@ -1349,7 +1349,7 @@ function Ue(o) {
|
|
|
1349
1349
|
function Ne(o) {
|
|
1350
1350
|
return o && o.length && isFinite(o.length);
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function Qt(o) {
|
|
1353
1353
|
return typeof o === "object" && o != null && !N(o) && !Ue(o);
|
|
1354
1354
|
}
|
|
1355
1355
|
function Nt(o) {
|
|
@@ -1358,8 +1358,8 @@ function Nt(o) {
|
|
|
1358
1358
|
function xt(o, t) {
|
|
1359
1359
|
return o !== null && hasOwnProperty.call(o, t);
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1362
|
-
if (
|
|
1361
|
+
function Ke(o) {
|
|
1362
|
+
if (Qt(o)) {
|
|
1363
1363
|
if (o.keys)
|
|
1364
1364
|
return o.keys().length;
|
|
1365
1365
|
let t = 0;
|
|
@@ -1501,8 +1501,8 @@ class wi {
|
|
|
1501
1501
|
} else {
|
|
1502
1502
|
if (this.x2 !== null) {
|
|
1503
1503
|
t.deltaX = e - this.x2, t.deltaY = a - this.y2;
|
|
1504
|
-
var
|
|
1505
|
-
(
|
|
1504
|
+
var l = Math.abs(this.x1 - this.x2), c = Math.abs(this.y1 - this.y2);
|
|
1505
|
+
(l > 10 || c > 10) && (this._preventTap = !0);
|
|
1506
1506
|
} else
|
|
1507
1507
|
t.deltaX = 0, t.deltaY = 0;
|
|
1508
1508
|
this.pressMove.dispatch(t, this.element);
|
|
@@ -1562,7 +1562,7 @@ function _e(o) {
|
|
|
1562
1562
|
function xi(o) {
|
|
1563
1563
|
if (o.events.hasOwnProperty("touch"))
|
|
1564
1564
|
return !1;
|
|
1565
|
-
let t = Fe(), i = t.width, s = t.height, e = !1, a = null, r = null, n = null, h = !1,
|
|
1565
|
+
let t = Fe(), i = t.width, s = t.height, e = !1, a = null, r = null, n = null, h = !1, l = 1, c = 4.5, u = 1, b = !1, C = !1, A = null, E = null, Q = null, ft = null, Bt, Ct, Lt = 0, kt = 0, d = !1, f = !1, v = {}, T = {}, O = 0, I = 0, tt;
|
|
1566
1566
|
const At = document.getElementById("glightbox-slider"), B = document.querySelector(".goverlay"), gt = new wi(At, {
|
|
1567
1567
|
touchStart: (x) => {
|
|
1568
1568
|
if (e = !0, (jt(x.targetTouches[0].target, "ginner-container") || Wt(x.targetTouches[0].target, ".gslide-desc") || x.targetTouches[0].target.nodeName.toLowerCase() == "a") && (e = !1), Wt(x.targetTouches[0].target, ".gslide-inline") && !jt(x.targetTouches[0].target.parentNode, "gslide-inline") && (e = !1), e) {
|
|
@@ -1575,15 +1575,15 @@ function xi(o) {
|
|
|
1575
1575
|
if (!e || (T = x.targetTouches[0], b || C))
|
|
1576
1576
|
return;
|
|
1577
1577
|
if (tt && tt.offsetHeight > s) {
|
|
1578
|
-
const
|
|
1579
|
-
if (Math.abs(
|
|
1578
|
+
const $ = v.pageX - T.pageX;
|
|
1579
|
+
if (Math.abs($) <= 13)
|
|
1580
1580
|
return !1;
|
|
1581
1581
|
}
|
|
1582
1582
|
h = !0;
|
|
1583
|
-
let S = x.targetTouches[0].clientX, X = x.targetTouches[0].clientY, L = O - S,
|
|
1584
|
-
Math.abs(L) > Math.abs(
|
|
1585
|
-
let
|
|
1586
|
-
if (
|
|
1583
|
+
let S = x.targetTouches[0].clientX, X = x.targetTouches[0].clientY, L = O - S, K = I - X;
|
|
1584
|
+
Math.abs(L) > Math.abs(K) ? (d = !1, f = !0) : (f = !1, d = !0), Bt = T.pageX - v.pageX, Lt = Bt * 100 / i, Ct = T.pageY - v.pageY, kt = Ct * 100 / s;
|
|
1585
|
+
let Z;
|
|
1586
|
+
if (d && n && (Z = 1 - Math.abs(Ct) / s, B.style.opacity = Z, o.settings.touchFollowAxis && (Lt = 0)), f && (Z = 1 - Math.abs(Bt) / i, r.style.opacity = Z, o.settings.touchFollowAxis && (kt = 0)), !n)
|
|
1587
1587
|
return ye(r, `translate3d(${Lt}%, 0, 0)`);
|
|
1588
1588
|
ye(r, `translate3d(${Lt}%, ${kt}%, 0)`);
|
|
1589
1589
|
},
|
|
@@ -1591,7 +1591,7 @@ function xi(o) {
|
|
|
1591
1591
|
if (!e)
|
|
1592
1592
|
return;
|
|
1593
1593
|
if (h = !1, C || b) {
|
|
1594
|
-
|
|
1594
|
+
Q = A, ft = E;
|
|
1595
1595
|
return;
|
|
1596
1596
|
}
|
|
1597
1597
|
const x = Math.abs(parseInt(kt)), S = Math.abs(parseInt(Lt));
|
|
@@ -1608,25 +1608,25 @@ function xi(o) {
|
|
|
1608
1608
|
}, 50);
|
|
1609
1609
|
},
|
|
1610
1610
|
multipointStart: () => {
|
|
1611
|
-
b = !0,
|
|
1611
|
+
b = !0, l = u || 1;
|
|
1612
1612
|
},
|
|
1613
1613
|
pinch: (x) => {
|
|
1614
1614
|
if (!n || h)
|
|
1615
1615
|
return !1;
|
|
1616
|
-
b = !0, n.scaleX = n.scaleY =
|
|
1617
|
-
let S =
|
|
1616
|
+
b = !0, n.scaleX = n.scaleY = l * x.zoom;
|
|
1617
|
+
let S = l * x.zoom;
|
|
1618
1618
|
if (C = !0, S <= 1) {
|
|
1619
|
-
C = !1, S = 1, ft = null,
|
|
1619
|
+
C = !1, S = 1, ft = null, Q = null, A = null, E = null, n.setAttribute("style", "");
|
|
1620
1620
|
return;
|
|
1621
1621
|
}
|
|
1622
|
-
S > c && (S = c), n.style.transform = `scale3d(${S}, ${S}, 1)`,
|
|
1622
|
+
S > c && (S = c), n.style.transform = `scale3d(${S}, ${S}, 1)`, u = S;
|
|
1623
1623
|
},
|
|
1624
1624
|
pressMove: (x) => {
|
|
1625
1625
|
if (C && !b) {
|
|
1626
1626
|
var S = T.pageX - v.pageX, X = T.pageY - v.pageY;
|
|
1627
|
-
|
|
1627
|
+
Q && (S = S + Q), ft && (X = X + ft), A = S, E = X;
|
|
1628
1628
|
let L = `translate3d(${S}px, ${X}px, 0)`;
|
|
1629
|
-
|
|
1629
|
+
u && (L += ` scale3d(${u}, ${u}, 1)`), ye(n, L);
|
|
1630
1630
|
}
|
|
1631
1631
|
},
|
|
1632
1632
|
swipe: (x) => {
|
|
@@ -1779,14 +1779,14 @@ function Si(o, t, i, s) {
|
|
|
1779
1779
|
Y(e, "gvideo-container"), r.insertBefore(Ut('<div class="gvideo-wrapper"></div>'), r.firstChild);
|
|
1780
1780
|
const h = o.querySelector(".gvideo-wrapper");
|
|
1781
1781
|
ze(this.settings.plyr.css, "Plyr");
|
|
1782
|
-
let
|
|
1782
|
+
let l = t.href, c = t?.videoProvider, u = !1;
|
|
1783
1783
|
r.style.maxWidth = t.width, ze(this.settings.plyr.js, "Plyr", () => {
|
|
1784
|
-
if (!c &&
|
|
1784
|
+
if (!c && l.match(/vimeo\.com\/([0-9]*)/) && (c = "vimeo"), !c && (l.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || l.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || l.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)) && (c = "youtube"), c === "local" || !c) {
|
|
1785
1785
|
c = "local";
|
|
1786
1786
|
let E = '<video id="' + a + '" ';
|
|
1787
|
-
E += `style="background:#000; max-width: ${t.width};" `, E += 'preload="metadata" ', E += 'x-webkit-airplay="allow" ', E += "playsinline ", E += "controls ", E += 'class="gvideo-local">', E += `<source src="${
|
|
1787
|
+
E += `style="background:#000; max-width: ${t.width};" `, E += 'preload="metadata" ', E += 'x-webkit-airplay="allow" ', E += "playsinline ", E += "controls ", E += 'class="gvideo-local">', E += `<source src="${l}">`, E += "</video>", u = Ut(E);
|
|
1788
1788
|
}
|
|
1789
|
-
const b =
|
|
1789
|
+
const b = u || Ut(`<div id="${a}" data-plyr-provider="${c}" data-plyr-embed-id="${l}"></div>`);
|
|
1790
1790
|
Y(h, `${c}-video gvideo`), h.appendChild(b), h.setAttribute("data-id", a), h.setAttribute("data-index", i);
|
|
1791
1791
|
const C = xt(this.settings.plyr, "config") ? this.settings.plyr.config : {}, A = new Plyr("#" + a, C);
|
|
1792
1792
|
A.on("ready", (E) => {
|
|
@@ -1806,7 +1806,7 @@ function Be(o) {
|
|
|
1806
1806
|
function _i(o, t, i, s) {
|
|
1807
1807
|
const e = o.querySelector(".gslide-media"), a = xt(t, "href") && t.href ? t.href.split("#").pop().trim() : !1, r = xt(t, "content") && t.content ? t.content : !1;
|
|
1808
1808
|
let n;
|
|
1809
|
-
if (r && (Jt(r) && (n = Ut(`<div class="ginlined-content">${r}</div>`)),
|
|
1809
|
+
if (r && (Jt(r) && (n = Ut(`<div class="ginlined-content">${r}</div>`)), $t(r))) {
|
|
1810
1810
|
r.style.display == "none" && (r.style.display = "block");
|
|
1811
1811
|
const h = document.createElement("div");
|
|
1812
1812
|
h.className = "ginlined-content", h.appendChild(r), n = h;
|
|
@@ -1815,8 +1815,8 @@ function _i(o, t, i, s) {
|
|
|
1815
1815
|
let h = document.getElementById(a);
|
|
1816
1816
|
if (!h)
|
|
1817
1817
|
return !1;
|
|
1818
|
-
const
|
|
1819
|
-
|
|
1818
|
+
const l = h.cloneNode(!0);
|
|
1819
|
+
l.style.height = t.height, l.style.maxWidth = t.width, Y(l, "ginlined-content"), n = l;
|
|
1820
1820
|
}
|
|
1821
1821
|
if (!n)
|
|
1822
1822
|
return console.error("Unable to append inline slide content", t), !1;
|
|
@@ -1852,7 +1852,7 @@ class Ti {
|
|
|
1852
1852
|
content: !1,
|
|
1853
1853
|
zoomable: !0,
|
|
1854
1854
|
draggable: !0
|
|
1855
|
-
},
|
|
1855
|
+
}, Qt(t) && (this.defaults = Rt(this.defaults, t));
|
|
1856
1856
|
}
|
|
1857
1857
|
/**
|
|
1858
1858
|
* Get source type
|
|
@@ -1865,17 +1865,17 @@ class Ti {
|
|
|
1865
1865
|
return t = t.toLowerCase(), t.match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/) !== null ? "image" : t.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || t.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || t.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/) || t.match(/vimeo\.com\/([0-9]*)/) || t.match(/\.(mp4|ogg|webm|mov)/) !== null ? "video" : t.match(/\.(mp3|wav|wma|aac|ogg)/) !== null ? "audio" : t.indexOf("#") > -1 && i.split("#").pop().trim() !== "" ? "inline" : t.indexOf("goajax=true") > -1 ? "ajax" : "external";
|
|
1866
1866
|
}
|
|
1867
1867
|
parseConfig(t, i) {
|
|
1868
|
-
let s =
|
|
1869
|
-
if (
|
|
1868
|
+
let s = Rt({ descPosition: i.descPosition }, this.defaults);
|
|
1869
|
+
if (Qt(t) && !$t(t)) {
|
|
1870
1870
|
xt(t, "type") || (xt(t, "content") && t.content ? t.type = "inline" : xt(t, "href") && (t.type = this.sourceType(t.href)));
|
|
1871
|
-
let n =
|
|
1871
|
+
let n = Rt(s, t);
|
|
1872
1872
|
return this.setSize(n, i), n;
|
|
1873
1873
|
}
|
|
1874
1874
|
let e = "", a = t.getAttribute("data-glightbox"), r = t.nodeName.toLowerCase();
|
|
1875
1875
|
if (r === "a" && (e = t.href), r === "img" && (e = t.src, s.alt = t.alt), s.href = e, at(s, (n, h) => {
|
|
1876
1876
|
xt(i, h) && h !== "width" && (s[h] = i[h]);
|
|
1877
|
-
const
|
|
1878
|
-
Nt(
|
|
1877
|
+
const l = t.dataset[h];
|
|
1878
|
+
Nt(l) || (s[h] = this.sanitizeValue(l));
|
|
1879
1879
|
}), s.content && (s.type = "inline"), !s.type && e && (s.type = this.sourceType(e)), Nt(a)) {
|
|
1880
1880
|
if (!s.title && r == "a") {
|
|
1881
1881
|
let n = t.title;
|
|
@@ -1887,13 +1887,13 @@ class Ti {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
} else {
|
|
1889
1889
|
let n = [];
|
|
1890
|
-
at(s, (h,
|
|
1891
|
-
n.push(";\\s?" +
|
|
1892
|
-
}), n = n.join("\\s?:|"), a.trim() !== "" && at(s, (h,
|
|
1893
|
-
const c = a,
|
|
1890
|
+
at(s, (h, l) => {
|
|
1891
|
+
n.push(";\\s?" + l);
|
|
1892
|
+
}), n = n.join("\\s?:|"), a.trim() !== "" && at(s, (h, l) => {
|
|
1893
|
+
const c = a, u = "s?" + l + "s?:s?(.*?)(" + n + "s?:|$)", b = new RegExp(u), C = c.match(b);
|
|
1894
1894
|
if (C && C.length && C[1]) {
|
|
1895
1895
|
const A = C[1].trim().replace(/;\s*$/, "");
|
|
1896
|
-
s[
|
|
1896
|
+
s[l] = this.sanitizeValue(A);
|
|
1897
1897
|
}
|
|
1898
1898
|
});
|
|
1899
1899
|
}
|
|
@@ -1966,14 +1966,14 @@ class pe {
|
|
|
1966
1966
|
slide: t,
|
|
1967
1967
|
player: !1
|
|
1968
1968
|
});
|
|
1969
|
-
let r = e.type, n = e.descPosition, h = t.querySelector(".gslide-media"),
|
|
1969
|
+
let r = e.type, n = e.descPosition, h = t.querySelector(".gslide-media"), l = t.querySelector(".gslide-title"), c = t.querySelector(".gslide-desc"), u = t.querySelector(".gdesc-inner"), b = i, C = "gSlideTitle_" + this.index, A = "gSlideDesc_" + this.index;
|
|
1970
1970
|
if (N(s.afterSlideLoad) && (b = () => {
|
|
1971
1971
|
N(i) && i(), s.afterSlideLoad({
|
|
1972
1972
|
index: this.index,
|
|
1973
1973
|
slide: t,
|
|
1974
1974
|
player: this.instance.getSlidePlayerInstance(this.index)
|
|
1975
1975
|
});
|
|
1976
|
-
}), e.title == "" && e.description == "" ?
|
|
1976
|
+
}), e.title == "" && e.description == "" ? u && u.parentNode.parentNode.removeChild(u.parentNode) : (l && e.title !== "" ? (l.id = C, l.innerHTML = e.title) : l.parentNode.removeChild(l), c && e.description !== "" ? (c.id = A, a && s.moreLength > 0 ? (e.smallDescription = this.slideShortDesc(e.description, s.moreLength, s.moreText), c.innerHTML = e.smallDescription, this.descriptionEvents(c, e)) : c.innerHTML = e.description) : c.parentNode.removeChild(c), Y(h.parentNode, `desc-${n}`), Y(u.parentNode, `description-${n}`)), Y(h, `gslide-${r}`), Y(t, "loaded"), r === "video") {
|
|
1977
1977
|
Si.apply(this.instance, [t, e, this.index, b]);
|
|
1978
1978
|
return;
|
|
1979
1979
|
}
|
|
@@ -2032,8 +2032,8 @@ class pe {
|
|
|
2032
2032
|
n.innerHTML = i.description, Y(r, "gdesc-open");
|
|
2033
2033
|
let h = Ht("click", {
|
|
2034
2034
|
onElement: [r, Wt(n, ".gslide-description")],
|
|
2035
|
-
withCallback: (
|
|
2036
|
-
|
|
2035
|
+
withCallback: (l, c) => {
|
|
2036
|
+
l.target.nodeName.toLowerCase() !== "a" && (wt(r, "gdesc-open"), Y(r, "gdesc-closed"), n.innerHTML = i.smallDescription, this.descriptionEvents(n, i), setTimeout(() => {
|
|
2037
2037
|
wt(r, "gdesc-closed");
|
|
2038
2038
|
}, 400), h.destroy());
|
|
2039
2039
|
}
|
|
@@ -2059,12 +2059,12 @@ class pe {
|
|
|
2059
2059
|
* @return { object }
|
|
2060
2060
|
*/
|
|
2061
2061
|
getConfig() {
|
|
2062
|
-
|
|
2062
|
+
!$t(this.element) && !this.element.hasOwnProperty("draggable") && (this.element.draggable = this.instance.settings.draggable);
|
|
2063
2063
|
const t = new Ti(this.instance.settings.slideExtraAttributes);
|
|
2064
2064
|
return this.slideConfig = t.parseConfig(this.element, this.instance.settings), this.slideConfig;
|
|
2065
2065
|
}
|
|
2066
2066
|
}
|
|
2067
|
-
const ji = "3.2.0", We = Le(),
|
|
2067
|
+
const ji = "3.2.0", We = Le(), Re = fi();
|
|
2068
2068
|
let Te;
|
|
2069
2069
|
typeof document > "u" || (Te = document.getElementsByTagName("html")[0]);
|
|
2070
2070
|
const ke = {
|
|
@@ -2169,9 +2169,9 @@ ke.lightboxHTML = `<div id="glightbox-body" class="glightbox-container" tabindex
|
|
|
2169
2169
|
<button class="gnext gbtn" aria-label="Next" data-taborder="1">{nextSVG}</button>
|
|
2170
2170
|
</div>
|
|
2171
2171
|
</div>`;
|
|
2172
|
-
class
|
|
2172
|
+
class $e {
|
|
2173
2173
|
constructor(t = {}) {
|
|
2174
|
-
this.customOptions = t, this.settings =
|
|
2174
|
+
this.customOptions = t, this.settings = Rt(ke, t), this.effectsClasses = this.getAnimationClasses(), this.videoPlayers = {}, this.apiEvents = [], this.fullElementsList = !1;
|
|
2175
2175
|
}
|
|
2176
2176
|
init() {
|
|
2177
2177
|
const t = this.getSelector();
|
|
@@ -2187,17 +2187,17 @@ class Re {
|
|
|
2187
2187
|
return !1;
|
|
2188
2188
|
this.activeSlide = null, this.prevActiveSlideIndex = null, this.prevActiveSlide = null;
|
|
2189
2189
|
let s = ve(i) ? i : this.settings.startAt;
|
|
2190
|
-
if (
|
|
2190
|
+
if ($t(t)) {
|
|
2191
2191
|
const n = t.getAttribute("data-gallery");
|
|
2192
2192
|
n && (this.fullElementsList = this.elements, this.elements = this.getGalleryElements(this.elements, n)), Nt(s) && (s = this.getElementIndex(t), s < 0 && (s = 0));
|
|
2193
2193
|
}
|
|
2194
|
-
ve(s) || (s = 0), this.build(),
|
|
2194
|
+
ve(s) || (s = 0), this.build(), Gt(this.overlay, this.settings.openEffect === "none" ? "none" : this.settings.cssEfects.fade.in);
|
|
2195
2195
|
const e = document.body, a = window.innerWidth - document.documentElement.clientWidth;
|
|
2196
2196
|
if (a > 0) {
|
|
2197
2197
|
var r = document.createElement("style");
|
|
2198
2198
|
r.type = "text/css", r.className = "gcss-styles", r.innerText = `.gscrollbar-fixer {margin-right: ${a}px}`, document.head.appendChild(r), Y(e, "gscrollbar-fixer");
|
|
2199
2199
|
}
|
|
2200
|
-
Y(e, "glightbox-open"), Y(Te, "glightbox-open"), We && (Y(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (Y(this.prevButton, "glightbox-button-hidden"), Y(this.nextButton, "glightbox-button-hidden")) : (wt(this.prevButton, "glightbox-button-hidden"), wt(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), N(this.settings.onOpen) && this.settings.onOpen(),
|
|
2200
|
+
Y(e, "glightbox-open"), Y(Te, "glightbox-open"), We && (Y(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (Y(this.prevButton, "glightbox-button-hidden"), Y(this.nextButton, "glightbox-button-hidden")) : (wt(this.prevButton, "glightbox-button-hidden"), wt(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), N(this.settings.onOpen) && this.settings.onOpen(), Re && this.settings.touchNavigation && xi(this), this.settings.keyboardNavigation && gi(this);
|
|
2201
2201
|
}
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Open at specific index
|
|
@@ -2295,9 +2295,9 @@ class Re {
|
|
|
2295
2295
|
*/
|
|
2296
2296
|
insertSlide(t = {}, i = -1) {
|
|
2297
2297
|
i < 0 && (i = this.elements.length);
|
|
2298
|
-
const s = new pe(t, this, i), e = s.getConfig(), a =
|
|
2298
|
+
const s = new pe(t, this, i), e = s.getConfig(), a = Rt({}, e), r = s.create(), n = this.elements.length - 1;
|
|
2299
2299
|
a.index = i, a.node = !1, a.instance = s, a.slideConfig = e, this.elements.splice(i, 0, a);
|
|
2300
|
-
let h = null,
|
|
2300
|
+
let h = null, l = null;
|
|
2301
2301
|
if (this.slidesContainer) {
|
|
2302
2302
|
if (i > n)
|
|
2303
2303
|
this.slidesContainer.appendChild(r);
|
|
@@ -2305,7 +2305,7 @@ class Re {
|
|
|
2305
2305
|
let c = this.slidesContainer.querySelectorAll(".gslide")[i];
|
|
2306
2306
|
this.slidesContainer.insertBefore(r, c);
|
|
2307
2307
|
}
|
|
2308
|
-
(this.settings.preload && this.index == 0 && i == 0 || this.index - 1 == i || this.index + 1 == i) && this.preloadSlide(i), this.index === 0 && i === 0 && (this.index = 1), this.updateNavigationClasses(), h = this.slidesContainer.querySelectorAll(".gslide")[i],
|
|
2308
|
+
(this.settings.preload && this.index == 0 && i == 0 || this.index - 1 == i || this.index + 1 == i) && this.preloadSlide(i), this.index === 0 && i === 0 && (this.index = 1), this.updateNavigationClasses(), h = this.slidesContainer.querySelectorAll(".gslide")[i], l = this.getSlidePlayerInstance(i), a.slideNode = h;
|
|
2309
2309
|
}
|
|
2310
2310
|
this.trigger("slide_inserted", {
|
|
2311
2311
|
index: i,
|
|
@@ -2314,11 +2314,11 @@ class Re {
|
|
|
2314
2314
|
slideConfig: e,
|
|
2315
2315
|
slideIndex: i,
|
|
2316
2316
|
trigger: null,
|
|
2317
|
-
player:
|
|
2317
|
+
player: l
|
|
2318
2318
|
}), N(this.settings.slideInserted) && this.settings.slideInserted({
|
|
2319
2319
|
index: i,
|
|
2320
2320
|
slide: h,
|
|
2321
|
-
player:
|
|
2321
|
+
player: l
|
|
2322
2322
|
});
|
|
2323
2323
|
}
|
|
2324
2324
|
/**
|
|
@@ -2357,7 +2357,7 @@ class Re {
|
|
|
2357
2357
|
player: this.getSlidePlayerInstance(this.index)
|
|
2358
2358
|
};
|
|
2359
2359
|
if (s.offsetWidth > 0 && e && (Se(e), e.style.display = ""), wt(t, this.effectsClasses), i)
|
|
2360
|
-
|
|
2360
|
+
Gt(t, this.settings.cssEfects[this.settings.openEffect].in, () => {
|
|
2361
2361
|
this.settings.autoplayVideos && this.slidePlayerPlay(t), this.trigger("slide_changed", {
|
|
2362
2362
|
prev: a,
|
|
2363
2363
|
current: r
|
|
@@ -2365,7 +2365,7 @@ class Re {
|
|
|
2365
2365
|
});
|
|
2366
2366
|
else {
|
|
2367
2367
|
let n = this.settings.slideEffect, h = n !== "none" ? this.settings.cssEfects[n].in : n;
|
|
2368
|
-
this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (h = this.settings.cssEfects.slideBack.in),
|
|
2368
|
+
this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (h = this.settings.cssEfects.slideBack.in), Gt(t, h, () => {
|
|
2369
2369
|
this.settings.autoplayVideos && this.slidePlayerPlay(t), this.trigger("slide_changed", {
|
|
2370
2370
|
prev: a,
|
|
2371
2371
|
current: r
|
|
@@ -2419,7 +2419,7 @@ class Re {
|
|
|
2419
2419
|
slide: this.activeSlide,
|
|
2420
2420
|
player: this.getSlidePlayerInstance(this.index)
|
|
2421
2421
|
}
|
|
2422
|
-
]), this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (s = this.settings.cssEfects.slideBack.out),
|
|
2422
|
+
]), this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (s = this.settings.cssEfects.slideBack.out), Gt(t, s, () => {
|
|
2423
2423
|
let e = t.querySelector(".ginner-container"), a = t.querySelector(".gslide-media"), r = t.querySelector(".gslide-description");
|
|
2424
2424
|
e.style.transform = "", a.style.transform = "", wt(a, "greset"), a.style.opacity = "", r && (r.style.opacity = ""), wt(t, "prev");
|
|
2425
2425
|
});
|
|
@@ -2448,7 +2448,7 @@ class Re {
|
|
|
2448
2448
|
* @return void
|
|
2449
2449
|
*/
|
|
2450
2450
|
stopSlideVideo(t) {
|
|
2451
|
-
if (
|
|
2451
|
+
if ($t(t)) {
|
|
2452
2452
|
let s = t.querySelector(".gvideo-wrapper");
|
|
2453
2453
|
s && (t = s.getAttribute("data-index"));
|
|
2454
2454
|
}
|
|
@@ -2463,7 +2463,7 @@ class Re {
|
|
|
2463
2463
|
* @return void
|
|
2464
2464
|
*/
|
|
2465
2465
|
slidePlayerPause(t) {
|
|
2466
|
-
if (
|
|
2466
|
+
if ($t(t)) {
|
|
2467
2467
|
let s = t.querySelector(".gvideo-wrapper");
|
|
2468
2468
|
s && (t = s.getAttribute("data-index"));
|
|
2469
2469
|
}
|
|
@@ -2478,7 +2478,7 @@ class Re {
|
|
|
2478
2478
|
* @return void
|
|
2479
2479
|
*/
|
|
2480
2480
|
playSlideVideo(t) {
|
|
2481
|
-
if (
|
|
2481
|
+
if ($t(t)) {
|
|
2482
2482
|
let s = t.querySelector(".gvideo-wrapper");
|
|
2483
2483
|
s && (t = s.getAttribute("data-index"));
|
|
2484
2484
|
}
|
|
@@ -2496,7 +2496,7 @@ class Re {
|
|
|
2496
2496
|
slidePlayerPlay(t) {
|
|
2497
2497
|
if (We && !this.settings.plyr.config?.muted)
|
|
2498
2498
|
return;
|
|
2499
|
-
if (
|
|
2499
|
+
if ($t(t)) {
|
|
2500
2500
|
let s = t.querySelector(".gvideo-wrapper");
|
|
2501
2501
|
s && (t = s.getAttribute("data-index"));
|
|
2502
2502
|
}
|
|
@@ -2515,7 +2515,7 @@ class Re {
|
|
|
2515
2515
|
this.settings.elements = !1;
|
|
2516
2516
|
const i = [];
|
|
2517
2517
|
t && t.length && at(t, (s, e) => {
|
|
2518
|
-
const a = new pe(s, this, e), r = a.getConfig(), n =
|
|
2518
|
+
const a = new pe(s, this, e), r = a.getConfig(), n = Rt({}, r);
|
|
2519
2519
|
n.slideConfig = r, n.instance = a, n.index = e, i.push(n);
|
|
2520
2520
|
}), this.elements = i, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (at(this.elements, () => {
|
|
2521
2521
|
let s = Ut(this.settings.slideHTML);
|
|
@@ -2552,12 +2552,12 @@ class Re {
|
|
|
2552
2552
|
getElements() {
|
|
2553
2553
|
let t = [];
|
|
2554
2554
|
this.elements = this.elements ? this.elements : [], !Nt(this.settings.elements) && Ue(this.settings.elements) && this.settings.elements.length && at(this.settings.elements, (e, a) => {
|
|
2555
|
-
const r = new pe(e, this, a), n = r.getConfig(), h =
|
|
2555
|
+
const r = new pe(e, this, a), n = r.getConfig(), h = Rt({}, n);
|
|
2556
2556
|
h.node = !1, h.index = a, h.instance = r, h.slideConfig = n, t.push(h);
|
|
2557
2557
|
});
|
|
2558
2558
|
let i = !1;
|
|
2559
2559
|
return this.getSelector() && (i = document.querySelectorAll(this.getSelector())), i && at(i, (e, a) => {
|
|
2560
|
-
const r = new pe(e, this, a), n = r.getConfig(), h =
|
|
2560
|
+
const r = new pe(e, this, a), n = r.getConfig(), h = Rt({}, n);
|
|
2561
2561
|
h.node = e, h.index = a, h.instance = r, h.slideConfig = n, h.gallery = e.getAttribute("data-gallery"), t.push(h);
|
|
2562
2562
|
}), t;
|
|
2563
2563
|
}
|
|
@@ -2609,8 +2609,8 @@ class Re {
|
|
|
2609
2609
|
if (this.built)
|
|
2610
2610
|
return !1;
|
|
2611
2611
|
const t = document.body.childNodes, i = [];
|
|
2612
|
-
at(t, (
|
|
2613
|
-
|
|
2612
|
+
at(t, (l) => {
|
|
2613
|
+
l.parentNode == document.body && l.nodeName.charAt(0) !== "#" && l.hasAttribute && !l.hasAttribute("aria-hidden") && (i.push(l), l.setAttribute("aria-hidden", "true"));
|
|
2614
2614
|
});
|
|
2615
2615
|
const s = xt(this.settings.svg, "next") ? this.settings.svg.next : "", e = xt(this.settings.svg, "prev") ? this.settings.svg.prev : "", a = xt(this.settings.svg, "close") ? this.settings.svg.close : "";
|
|
2616
2616
|
let r = this.settings.lightboxHTML;
|
|
@@ -2620,27 +2620,27 @@ class Re {
|
|
|
2620
2620
|
let h = n.querySelector(".gclose");
|
|
2621
2621
|
this.prevButton = n.querySelector(".gprev"), this.nextButton = n.querySelector(".gnext"), this.overlay = n.querySelector(".goverlay"), this.loader = n.querySelector(".gloader"), this.slidesContainer = document.getElementById("glightbox-slider"), this.bodyHiddenChildElms = i, this.events = {}, Y(this.modal, "glightbox-" + this.settings.skin), this.settings.closeButton && h && (this.events.close = Ht("click", {
|
|
2622
2622
|
onElement: h,
|
|
2623
|
-
withCallback: (
|
|
2624
|
-
|
|
2623
|
+
withCallback: (l, c) => {
|
|
2624
|
+
l.preventDefault(), this.close();
|
|
2625
2625
|
}
|
|
2626
2626
|
})), h && !this.settings.closeButton && h.parentNode.removeChild(h), this.nextButton && (this.events.next = Ht("click", {
|
|
2627
2627
|
onElement: this.nextButton,
|
|
2628
|
-
withCallback: (
|
|
2629
|
-
|
|
2628
|
+
withCallback: (l, c) => {
|
|
2629
|
+
l.preventDefault(), this.nextSlide();
|
|
2630
2630
|
}
|
|
2631
2631
|
})), this.prevButton && (this.events.prev = Ht("click", {
|
|
2632
2632
|
onElement: this.prevButton,
|
|
2633
|
-
withCallback: (
|
|
2634
|
-
|
|
2633
|
+
withCallback: (l, c) => {
|
|
2634
|
+
l.preventDefault(), this.prevSlide();
|
|
2635
2635
|
}
|
|
2636
2636
|
})), this.settings.closeOnOutsideClick && (this.events.outClose = Ht("click", {
|
|
2637
2637
|
onElement: n,
|
|
2638
|
-
withCallback: (
|
|
2639
|
-
!this.preventOutsideClick && !jt(document.body, "glightbox-mobile") && !Wt(
|
|
2638
|
+
withCallback: (l, c) => {
|
|
2639
|
+
!this.preventOutsideClick && !jt(document.body, "glightbox-mobile") && !Wt(l.target, ".ginner-container") && !Wt(l.target, ".gbtn") && !jt(l.target, "gnext") && !jt(l.target, "gprev") && this.close();
|
|
2640
2640
|
}
|
|
2641
|
-
})), at(this.elements, (
|
|
2642
|
-
this.slidesContainer.appendChild(
|
|
2643
|
-
}),
|
|
2641
|
+
})), at(this.elements, (l, c) => {
|
|
2642
|
+
this.slidesContainer.appendChild(l.instance.create()), l.slideNode = this.slidesContainer.querySelectorAll(".gslide")[c];
|
|
2643
|
+
}), Re && Y(document.body, "glightbox-touch"), this.events.resize = Ht("resize", {
|
|
2644
2644
|
onElement: window,
|
|
2645
2645
|
withCallback: () => {
|
|
2646
2646
|
this.resize();
|
|
@@ -2667,25 +2667,25 @@ class Re {
|
|
|
2667
2667
|
if (r <= 768)
|
|
2668
2668
|
e.querySelector("img");
|
|
2669
2669
|
else if (h) {
|
|
2670
|
-
let
|
|
2670
|
+
let l = a.offsetHeight, c = e.querySelector("img");
|
|
2671
2671
|
const b = this.elements[this.index].node.getAttribute("data-height") ?? "100vh";
|
|
2672
|
-
c.setAttribute("style", `max-height: calc(${b} - ${
|
|
2672
|
+
c.setAttribute("style", `max-height: calc(${b} - ${l}px)`), a.setAttribute("style", `max-width: ${c.offsetWidth}px;`);
|
|
2673
2673
|
}
|
|
2674
2674
|
}
|
|
2675
2675
|
if (s) {
|
|
2676
|
-
let
|
|
2677
|
-
if (!
|
|
2678
|
-
const A = s.clientWidth, E = s.clientHeight,
|
|
2679
|
-
|
|
2676
|
+
let l = xt(this.settings.plyr.config, "ratio") ? this.settings.plyr.config.ratio : "";
|
|
2677
|
+
if (!l) {
|
|
2678
|
+
const A = s.clientWidth, E = s.clientHeight, Q = A / E;
|
|
2679
|
+
l = `${A / Q}:${E / Q}`;
|
|
2680
2680
|
}
|
|
2681
|
-
let c =
|
|
2682
|
-
ve(
|
|
2681
|
+
let c = l.split(":"), u = this.settings.videosWidth, b = this.settings.videosWidth;
|
|
2682
|
+
ve(u) || u.indexOf("px") !== -1 ? b = parseInt(u) : u.indexOf("vw") !== -1 ? b = r * parseInt(u) / 100 : u.indexOf("vh") !== -1 ? b = n * parseInt(u) / 100 : u.indexOf("%") !== -1 ? b = r * parseInt(u) / 100 : b = parseInt(s.clientWidth);
|
|
2683
2683
|
let C = b / (parseInt(c[0]) / parseInt(c[1]));
|
|
2684
2684
|
if (C = Math.floor(C), h && (n = n - a.offsetHeight), b > r || C > n || n < C && r > b) {
|
|
2685
|
-
let A = s.offsetWidth, E = s.offsetHeight,
|
|
2685
|
+
let A = s.offsetWidth, E = s.offsetHeight, Q = n / E, ft = { width: A * Q };
|
|
2686
2686
|
s.parentNode.setAttribute("style", `max-width: ${ft.width}px`), h && a.setAttribute("style", `max-width: ${ft.width}px;`);
|
|
2687
2687
|
} else
|
|
2688
|
-
s.parentNode.style.maxWidth = `${
|
|
2688
|
+
s.parentNode.style.maxWidth = `${u}`, h && a.setAttribute("style", `max-width: ${u};`);
|
|
2689
2689
|
}
|
|
2690
2690
|
}
|
|
2691
2691
|
/**
|
|
@@ -2727,7 +2727,7 @@ class Re {
|
|
|
2727
2727
|
return !1;
|
|
2728
2728
|
this.closing = !0, this.slidePlayerPause(this.activeSlide), this.fullElementsList && (this.elements = this.fullElementsList), this.bodyHiddenChildElms.length && at(this.bodyHiddenChildElms, (t) => {
|
|
2729
2729
|
t.removeAttribute("aria-hidden");
|
|
2730
|
-
}), Y(this.modal, "glightbox-closing"),
|
|
2730
|
+
}), Y(this.modal, "glightbox-closing"), Gt(this.overlay, this.settings.openEffect == "none" ? "none" : this.settings.cssEfects.fade.out), Gt(this.activeSlide, this.settings.cssEfects[this.settings.closeEffect].out, () => {
|
|
2731
2731
|
if (this.activeSlide = null, this.prevActiveSlideIndex = null, this.prevActiveSlide = null, this.built = !1, this.events) {
|
|
2732
2732
|
for (let s in this.events)
|
|
2733
2733
|
this.events.hasOwnProperty(s) && this.events[s].destroy();
|
|
@@ -2809,7 +2809,7 @@ class Ci {
|
|
|
2809
2809
|
let r = 0, n = 0;
|
|
2810
2810
|
const h = this._findScrollableAncestor(this.activeElement || document.activeElement);
|
|
2811
2811
|
if (!h) return;
|
|
2812
|
-
const
|
|
2812
|
+
const l = h === document.body ? window.innerHeight : h.clientHeight;
|
|
2813
2813
|
switch (t.code) {
|
|
2814
2814
|
case "ArrowUp":
|
|
2815
2815
|
n = -this.arrowScroll;
|
|
@@ -2818,20 +2818,20 @@ class Ci {
|
|
|
2818
2818
|
n = this.arrowScroll;
|
|
2819
2819
|
break;
|
|
2820
2820
|
case "Space":
|
|
2821
|
-
n = -(t.shiftKey ? 1 : -1) *
|
|
2821
|
+
n = -(t.shiftKey ? 1 : -1) * l * 0.9;
|
|
2822
2822
|
break;
|
|
2823
2823
|
case "PageUp":
|
|
2824
|
-
n = -
|
|
2824
|
+
n = -l * 0.9;
|
|
2825
2825
|
break;
|
|
2826
2826
|
case "PageDown":
|
|
2827
|
-
n =
|
|
2827
|
+
n = l * 0.9;
|
|
2828
2828
|
break;
|
|
2829
2829
|
case "Home":
|
|
2830
2830
|
n = -h.scrollTop;
|
|
2831
2831
|
break;
|
|
2832
2832
|
case "End":
|
|
2833
|
-
const
|
|
2834
|
-
n =
|
|
2833
|
+
const u = h.scrollHeight - h.scrollTop - l;
|
|
2834
|
+
n = u > 0 ? u + 10 : 0;
|
|
2835
2835
|
break;
|
|
2836
2836
|
case "ArrowLeft":
|
|
2837
2837
|
r = -this.arrowScroll;
|
|
@@ -2854,12 +2854,12 @@ class Ci {
|
|
|
2854
2854
|
if (!a) return;
|
|
2855
2855
|
const r = Math.sign(i), n = Math.sign(s);
|
|
2856
2856
|
(r !== this.direction.x || n !== this.direction.y) && (this.direction = { x: r, y: n }, this.queue = [], this.lastScrollTime = 0);
|
|
2857
|
-
const h = Date.now(),
|
|
2858
|
-
if (
|
|
2859
|
-
const c = (1 + 50 /
|
|
2857
|
+
const h = Date.now(), l = h - this.lastScrollTime;
|
|
2858
|
+
if (l < this.accelerationDelta) {
|
|
2859
|
+
const c = (1 + 50 / l) / 2;
|
|
2860
2860
|
if (c > 1) {
|
|
2861
|
-
const
|
|
2862
|
-
i *=
|
|
2861
|
+
const u = Math.min(c, this.accelerationMax);
|
|
2862
|
+
i *= u, s *= u;
|
|
2863
2863
|
}
|
|
2864
2864
|
}
|
|
2865
2865
|
this.lastScrollTime = h, this._enqueueScroll(a, i, s), t.preventDefault();
|
|
@@ -2881,8 +2881,8 @@ class Ci {
|
|
|
2881
2881
|
const i = document.scrollingElement || document.documentElement;
|
|
2882
2882
|
let s = t;
|
|
2883
2883
|
for (; s && s !== document.body; ) {
|
|
2884
|
-
const e = window.getComputedStyle(s), a = e.overflowY, r = e.overflowX, n = ["auto", "scroll"].includes(a), h = ["auto", "scroll"].includes(r),
|
|
2885
|
-
if (n &&
|
|
2884
|
+
const e = window.getComputedStyle(s), a = e.overflowY, r = e.overflowX, n = ["auto", "scroll"].includes(a), h = ["auto", "scroll"].includes(r), l = s.scrollHeight > s.clientHeight, c = s.scrollWidth > s.clientWidth;
|
|
2885
|
+
if (n && l || h && c)
|
|
2886
2886
|
return s;
|
|
2887
2887
|
if (s === i) return i;
|
|
2888
2888
|
s = s.parentElement;
|
|
@@ -2908,7 +2908,7 @@ class Ci {
|
|
|
2908
2908
|
const s = Date.now();
|
|
2909
2909
|
let e = 0, a = 0;
|
|
2910
2910
|
for (let n = this.queue.length - 1; n >= 0; n--) {
|
|
2911
|
-
const h = this.queue[n],
|
|
2911
|
+
const h = this.queue[n], l = s - h.start, c = l >= this.animationTime, u = c ? 1 : l / this.animationTime, b = this._pulse(u), C = h.x * b - h.lastX >> 0, A = h.y * b - h.lastY >> 0;
|
|
2912
2912
|
e += C, a += A, h.lastX += C, h.lastY += A, c && this.queue.splice(n, 1);
|
|
2913
2913
|
}
|
|
2914
2914
|
if (t === document.scrollingElement || t === document.documentElement || t === document.body ? window.scrollBy(e, a) : (e && (t.scrollLeft += e), a && (t.scrollTop += a)), this.queue.length > 0)
|
|
@@ -3032,14 +3032,14 @@ class Li {
|
|
|
3032
3032
|
try {
|
|
3033
3033
|
const r = this.parseOptions(i);
|
|
3034
3034
|
let n = i.querySelector(".grid-sortable");
|
|
3035
|
-
n || i.classList.contains("grid-sortable") && (n = i), n && Array.from(n.children).forEach((c,
|
|
3036
|
-
c.nodeType === 1 && c.tagName !== "STYLE" && c.tagName !== "SCRIPT" && c.setAttribute("data-index",
|
|
3037
|
-
}), i.querySelectorAll(".edit").forEach((c,
|
|
3038
|
-
const b = `content-${Date.now()}-${s}-${
|
|
3035
|
+
n || i.classList.contains("grid-sortable") && (n = i), n && Array.from(n.children).forEach((c, u) => {
|
|
3036
|
+
c.nodeType === 1 && c.tagName !== "STYLE" && c.tagName !== "SCRIPT" && c.setAttribute("data-index", u);
|
|
3037
|
+
}), i.querySelectorAll(".edit").forEach((c, u) => {
|
|
3038
|
+
const b = `content-${Date.now()}-${s}-${u}`;
|
|
3039
3039
|
c.setAttribute("data-edit-id", b);
|
|
3040
3040
|
}), i.hasAttribute("data-cb-original-content") || i.setAttribute("data-cb-original-content", i.innerHTML);
|
|
3041
|
-
const
|
|
3042
|
-
this.components.set(i,
|
|
3041
|
+
const l = a.mount(i, r);
|
|
3042
|
+
this.components.set(i, l), this.setupInlineEditing(i, r), i.setAttribute("data-cb-loaded", "true"), typeof i.mount == "function" && i.mount();
|
|
3043
3043
|
} catch (r) {
|
|
3044
3044
|
console.error(`[PluginManager] Failed to mount component "${e}":`, r);
|
|
3045
3045
|
}
|
|
@@ -3081,28 +3081,43 @@ class Li {
|
|
|
3081
3081
|
const s = t.querySelectorAll(".edit[data-edit-id]");
|
|
3082
3082
|
if (s.length === 0)
|
|
3083
3083
|
return;
|
|
3084
|
-
t.querySelectorAll('[contenteditable="true"]').forEach((r) => {
|
|
3085
|
-
r.removeAttribute("contenteditable"), r._cbObserver && (r._cbObserver.disconnect(), delete r._cbObserver);
|
|
3084
|
+
t.querySelectorAll('.edit[contenteditable="true"]').forEach((r) => {
|
|
3085
|
+
r.removeAttribute("contenteditable"), r._cbObserver && (r._cbObserver.disconnect(), delete r._cbObserver), r._cbKeydownHandler && (r.removeEventListener("keydown", r._cbKeydownHandler), delete r._cbKeydownHandler);
|
|
3086
3086
|
});
|
|
3087
3087
|
const a = (r, n) => {
|
|
3088
3088
|
const h = t.getAttribute("data-cb-original-content");
|
|
3089
3089
|
if (!h) return;
|
|
3090
|
-
const
|
|
3091
|
-
|
|
3092
|
-
const
|
|
3093
|
-
if (
|
|
3094
|
-
|
|
3095
|
-
const b =
|
|
3090
|
+
const l = document.createElement("template");
|
|
3091
|
+
l.innerHTML = h.trim();
|
|
3092
|
+
const u = l.content.querySelector(`[data-edit-id="${r}"]`);
|
|
3093
|
+
if (u) {
|
|
3094
|
+
u.innerHTML = n;
|
|
3095
|
+
const b = l.innerHTML;
|
|
3096
3096
|
t.setAttribute("data-cb-original-content", b);
|
|
3097
3097
|
}
|
|
3098
3098
|
};
|
|
3099
3099
|
s.forEach((r) => {
|
|
3100
3100
|
r.setAttribute("contenteditable", "true");
|
|
3101
|
-
const n =
|
|
3102
|
-
|
|
3103
|
-
|
|
3101
|
+
const n = (c) => {
|
|
3102
|
+
var u = document.createRange();
|
|
3103
|
+
u.selectNodeContents(c);
|
|
3104
|
+
var b = window.getSelection();
|
|
3105
|
+
b.removeAllRanges(), b.addRange(u);
|
|
3106
|
+
}, h = (c) => {
|
|
3107
|
+
if ((c.ctrlKey || c.metaKey) && c.which === 65) {
|
|
3108
|
+
let u;
|
|
3109
|
+
try {
|
|
3110
|
+
window.getSelection ? u = window.getSelection().getRangeAt(0).commonAncestorContainer.parentNode : document.selection && (u = document.selection.createRange().parentElement()), n(u), c.preventDefault();
|
|
3111
|
+
} catch {
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
};
|
|
3115
|
+
r.addEventListener("keydown", h), r._cbKeydownHandler = h;
|
|
3116
|
+
const l = new MutationObserver(() => {
|
|
3117
|
+
const c = r.getAttribute("data-edit-id"), u = r.innerHTML;
|
|
3118
|
+
a(c, u);
|
|
3104
3119
|
});
|
|
3105
|
-
|
|
3120
|
+
l.observe(r, {
|
|
3106
3121
|
childList: !0,
|
|
3107
3122
|
// Child elements added/removed
|
|
3108
3123
|
characterData: !0,
|
|
@@ -3113,7 +3128,7 @@ class Li {
|
|
|
3113
3128
|
// Attribute changes
|
|
3114
3129
|
attributeFilter: ["style"]
|
|
3115
3130
|
// Specifically watch style (color picker)
|
|
3116
|
-
}), r._cbObserver =
|
|
3131
|
+
}), r._cbObserver = l;
|
|
3117
3132
|
});
|
|
3118
3133
|
}
|
|
3119
3134
|
/**
|
|
@@ -3166,7 +3181,7 @@ class Li {
|
|
|
3166
3181
|
this.components.forEach((n, h) => {
|
|
3167
3182
|
(t === document || t.contains(h)) && i.push({ element: h, instance: n });
|
|
3168
3183
|
}), i.forEach(({ element: n, instance: h }) => {
|
|
3169
|
-
const
|
|
3184
|
+
const l = n.dataset.cbType, c = this.plugins.get(l);
|
|
3170
3185
|
c && typeof c.unmount == "function" && c.unmount(n, h), this.components.delete(n);
|
|
3171
3186
|
});
|
|
3172
3187
|
const e = this.detectComponentTypesInContainer(t).filter(
|
|
@@ -3178,23 +3193,23 @@ class Li {
|
|
|
3178
3193
|
const a = t.querySelectorAll("[data-cb-type]");
|
|
3179
3194
|
let r = 0;
|
|
3180
3195
|
for (const n of a) {
|
|
3181
|
-
const h = n.dataset.cbType,
|
|
3182
|
-
if (
|
|
3196
|
+
const h = n.dataset.cbType, l = this.plugins.get(h);
|
|
3197
|
+
if (l && typeof l.mount == "function")
|
|
3183
3198
|
try {
|
|
3184
3199
|
const c = this.parseOptions(n);
|
|
3185
|
-
let
|
|
3186
|
-
if (
|
|
3200
|
+
let u = n.querySelector(".grid-sortable");
|
|
3201
|
+
if (u || n.classList.contains("grid-sortable") && (u = n), u && Array.from(u.children).forEach((A, E) => {
|
|
3187
3202
|
A.nodeType === 1 && A.tagName !== "STYLE" && A.tagName !== "SCRIPT" && A.setAttribute("data-index", E);
|
|
3188
3203
|
}), n.querySelectorAll(".edit").forEach((A, E) => {
|
|
3189
|
-
const
|
|
3190
|
-
A.setAttribute("data-edit-id",
|
|
3204
|
+
const Q = `content-${Date.now()}-${r}-${E}`;
|
|
3205
|
+
A.setAttribute("data-edit-id", Q);
|
|
3191
3206
|
}), !n.hasAttribute("data-cb-original-content"))
|
|
3192
3207
|
n.setAttribute("data-cb-original-content", n.innerHTML);
|
|
3193
3208
|
else {
|
|
3194
3209
|
let A = document.createRange();
|
|
3195
3210
|
n.innerHTML = "", n.appendChild(A.createContextualFragment(n.getAttribute("data-cb-original-content")));
|
|
3196
3211
|
}
|
|
3197
|
-
const C = await
|
|
3212
|
+
const C = await l.mount(n, c);
|
|
3198
3213
|
this.components.set(n, C), this.setupInlineEditing(n, c), n.setAttribute("data-cb-loaded", "true"), typeof n.mount == "function" && n.mount(), r++;
|
|
3199
3214
|
} catch (c) {
|
|
3200
3215
|
console.error(`[PluginManager] Failed to mount component "${h}":`, c);
|
|
@@ -3339,13 +3354,15 @@ class Li {
|
|
|
3339
3354
|
* Destroy all components and plugins
|
|
3340
3355
|
*/
|
|
3341
3356
|
destroy() {
|
|
3342
|
-
this.components.forEach((
|
|
3343
|
-
const
|
|
3344
|
-
|
|
3345
|
-
}),
|
|
3346
|
-
i.
|
|
3347
|
-
|
|
3348
|
-
|
|
3357
|
+
this.components.forEach((t, i) => {
|
|
3358
|
+
const s = i.dataset.cbType, e = this.plugins.get(s);
|
|
3359
|
+
e && typeof e.unmount == "function" && e.unmount(i, t);
|
|
3360
|
+
}), this.components.forEach((t, i) => {
|
|
3361
|
+
i.querySelectorAll('.edit[contenteditable="true"]').forEach((e) => {
|
|
3362
|
+
e.removeAttribute("contenteditable"), e._cbObserver && (e._cbObserver.disconnect(), delete e._cbObserver), e._cbKeydownHandler && (e.removeEventListener("keydown", e._cbKeydownHandler), delete e._cbKeydownHandler);
|
|
3363
|
+
});
|
|
3364
|
+
}), this.plugins.forEach((t, i) => {
|
|
3365
|
+
typeof t.destroy == "function" && t.destroy(this);
|
|
3349
3366
|
}), this.components.clear(), this.plugins.clear();
|
|
3350
3367
|
}
|
|
3351
3368
|
/**
|
|
@@ -3502,26 +3519,26 @@ class Yi {
|
|
|
3502
3519
|
r.addEventListener("click", function(n) {
|
|
3503
3520
|
let h = n.target.closest(".is-section");
|
|
3504
3521
|
if (h) {
|
|
3505
|
-
let
|
|
3506
|
-
|
|
3522
|
+
let l = i(h);
|
|
3523
|
+
l && this.scrollIt(l, 1e3, "easeInQuad");
|
|
3507
3524
|
}
|
|
3508
3525
|
n.preventDefault(), n.stopImmediatePropagation();
|
|
3509
3526
|
});
|
|
3510
3527
|
}), t && (t.classList.contains("is-edit") || t.querySelectorAll("a").forEach((n) => {
|
|
3511
3528
|
n.addEventListener("click", (h) => {
|
|
3512
|
-
let
|
|
3513
|
-
if (
|
|
3514
|
-
if (
|
|
3515
|
-
let c =
|
|
3529
|
+
let l = n.getAttribute("href");
|
|
3530
|
+
if (l && l.indexOf("#") === 0)
|
|
3531
|
+
if (l.indexOf("#section") === 0) {
|
|
3532
|
+
let c = l.replace("#section", "");
|
|
3516
3533
|
if (!isNaN(parseInt(c))) {
|
|
3517
|
-
let
|
|
3518
|
-
|
|
3534
|
+
let u = document.querySelectorAll(".is-section"), b, C = 0;
|
|
3535
|
+
u.forEach(function(A) {
|
|
3519
3536
|
A.classList.contains("is-section-navbar") || (C === c - 1 && (b = A), C++);
|
|
3520
3537
|
}), b && this.scrollIt(b, 1e3, "easeInQuad"), h.preventDefault();
|
|
3521
3538
|
}
|
|
3522
3539
|
} else
|
|
3523
3540
|
try {
|
|
3524
|
-
let c = document.querySelector(
|
|
3541
|
+
let c = document.querySelector(l);
|
|
3525
3542
|
c && (this.scrollIt(c, 1e3, "easeInQuad"), h.preventDefault());
|
|
3526
3543
|
} catch {
|
|
3527
3544
|
}
|
|
@@ -3534,8 +3551,8 @@ class Yi {
|
|
|
3534
3551
|
r.classList.contains("once") ? (r.removeAttribute("data-scroll", ""), r.setAttribute("data-scroll-once", "")) : (r.removeAttribute("data-scroll-once", ""), r.setAttribute("data-scroll", ""));
|
|
3535
3552
|
}), a = document.querySelectorAll(".is-container > div"), a.forEach(function(r) {
|
|
3536
3553
|
let n = r.querySelectorAll(".is-animated[data-scroll],.is-animated[data-scroll-once]"), h = 0;
|
|
3537
|
-
n.length > 1 && n.forEach(function(
|
|
3538
|
-
|
|
3554
|
+
n.length > 1 && n.forEach(function(l) {
|
|
3555
|
+
l.className.indexOf("delay-") === -1 && (h > 0 && (l.style.transitionDelay = h + "s", l.style.animationDelay = h + "s"), h = h + 0.2);
|
|
3539
3556
|
});
|
|
3540
3557
|
}), this.skrollrSetup(), this.adjustBgPos();
|
|
3541
3558
|
}
|
|
@@ -3587,13 +3604,13 @@ class Yi {
|
|
|
3587
3604
|
const e = window.self !== window.top;
|
|
3588
3605
|
let a;
|
|
3589
3606
|
e ? a = document.querySelectorAll(".is-wrapper .section-pin") : a = document.querySelectorAll(".is-wrapper:not(.is-edit) .section-pin"), a.length > 0 && window.scrollTo(0, 0), a.forEach(function(n) {
|
|
3590
|
-
s <= 970 && n.querySelector(".is-box") && (n.querySelectorAll(".is-box").forEach((
|
|
3607
|
+
s <= 970 && n.querySelector(".is-box") && (n.querySelectorAll(".is-box").forEach((l) => {
|
|
3591
3608
|
const c = n.cloneNode(!1);
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
}), c.classList.add("is-box"),
|
|
3595
|
-
(
|
|
3596
|
-
}), c.setAttribute("data-section-clone", ""), c.innerHTML =
|
|
3609
|
+
l.getAttributeNames().map((u) => {
|
|
3610
|
+
u.indexOf("data-") !== -1 && c.setAttribute(u, l.getAttribute(u));
|
|
3611
|
+
}), c.classList.add("is-box"), l.classList.forEach((u) => {
|
|
3612
|
+
(u.indexOf("is-box-") !== -1 || u.indexOf("is-content-") !== -1 || u.indexOf("box-autofit") !== -1 || u.indexOf("is-light-text") !== -1 || u.indexOf("is-dark-text") !== -1 || u.indexOf("is-align-") !== -1 || u.indexOf("type-") !== -1 || u.indexOf("block-click") !== -1 || u.indexOf("hover-zoom") !== -1) && c.classList.add(u);
|
|
3613
|
+
}), c.setAttribute("data-section-clone", ""), c.innerHTML = l.innerHTML, n.parentNode.insertBefore(c, n);
|
|
3597
3614
|
}), n.setAttribute("data-section-original", ""), n.style.display = "none");
|
|
3598
3615
|
}), e ? a = document.querySelectorAll(".is-wrapper .section-pin") : a = document.querySelectorAll(".is-wrapper:not(.is-edit) .section-pin"), a.forEach(function(n) {
|
|
3599
3616
|
if (n.parentNode.closest(".section-wrap") || s <= 970 && n.hasAttribute("data-section-original")) return;
|
|
@@ -3601,11 +3618,11 @@ class Yi {
|
|
|
3601
3618
|
h.classList.add("pin-wrap"), n.classList.contains("m-skrollrr-off") && h.classList.add("m-skrollrr-off"), n.classList.contains("pin-space-lg") && h.classList.add("pin-space-lg"), n.classList.contains("pin-space-xl") && h.classList.add("pin-space-xl"), n.classList.contains("xs-hidden") && h.classList.add("xs-hidden"), n.classList.contains("sm-hidden") && h.classList.add("sm-hidden"), n.classList.contains("desktop-hidden") && h.classList.add("desktop-hidden"), n.after(h), h.appendChild(n);
|
|
3602
3619
|
});
|
|
3603
3620
|
const r = (n) => {
|
|
3604
|
-
document.querySelectorAll(".is-section").forEach((
|
|
3605
|
-
const c =
|
|
3606
|
-
let
|
|
3607
|
-
|
|
3608
|
-
A !==
|
|
3621
|
+
document.querySelectorAll(".is-section").forEach((l) => {
|
|
3622
|
+
const c = l.getBoundingClientRect().top;
|
|
3623
|
+
let u, b;
|
|
3624
|
+
l.parentNode.classList.contains("pin-wrap") ? (u = l.parentNode.nextElementSibling, b = l.parentNode.previousElementSibling) : (u = l.nextElementSibling, b = l.previousElementSibling), u && u.classList.contains("pin-wrap") && (u = u.querySelector(".is-section")), b && b.classList.contains("pin-wrap") && (b = b.querySelector(".is-section")), c <= 0 && ((l.classList.contains("no-spacing") || l.classList.contains("pin-overlap")) && l.classList.add("section-inview"), document.querySelectorAll(".is-section").forEach((A) => {
|
|
3625
|
+
A !== l && A.classList.remove("section-inview");
|
|
3609
3626
|
}));
|
|
3610
3627
|
});
|
|
3611
3628
|
};
|
|
@@ -3721,7 +3738,7 @@ class Yi {
|
|
|
3721
3738
|
});
|
|
3722
3739
|
}
|
|
3723
3740
|
refreshLightbox(t) {
|
|
3724
|
-
this.glightbox && this.glightbox.destroy(), this.glightbox = new
|
|
3741
|
+
this.glightbox && this.glightbox.destroy(), this.glightbox = new $e(t), window.GLightbox = $e.default;
|
|
3725
3742
|
}
|
|
3726
3743
|
openLightbox(t, i, s) {
|
|
3727
3744
|
let e = [], a = 0;
|
|
@@ -3730,11 +3747,11 @@ class Yi {
|
|
|
3730
3747
|
let h = [];
|
|
3731
3748
|
n ? h = n.querySelectorAll(".is-lightbox") : document.querySelectorAll(".is-lightbox,.block-click").forEach((c) => {
|
|
3732
3749
|
c.closest("[data-gallery]") || h.push(c);
|
|
3733
|
-
}), h.forEach((
|
|
3734
|
-
let
|
|
3735
|
-
|
|
3736
|
-
href:
|
|
3737
|
-
}), t ===
|
|
3750
|
+
}), h.forEach((l, c) => {
|
|
3751
|
+
let u = l.getAttribute("href");
|
|
3752
|
+
u || (u = l.getAttribute("data-modal-url")), e.push({
|
|
3753
|
+
href: u
|
|
3754
|
+
}), t === u && (a = c);
|
|
3738
3755
|
});
|
|
3739
3756
|
}
|
|
3740
3757
|
const r = document.activeElement;
|
|
@@ -3828,71 +3845,71 @@ class Yi {
|
|
|
3828
3845
|
document.querySelectorAll(".is-box").forEach((r) => {
|
|
3829
3846
|
let n = [];
|
|
3830
3847
|
const h = r.attributes;
|
|
3831
|
-
for (let
|
|
3832
|
-
let
|
|
3833
|
-
if (
|
|
3834
|
-
const b = parseInt(
|
|
3848
|
+
for (let l = 0; l < h.length; l++) {
|
|
3849
|
+
let u = h[l].name.match(/^data--h-(\d+)$/);
|
|
3850
|
+
if (u) {
|
|
3851
|
+
const b = parseInt(u[1], 10);
|
|
3835
3852
|
n.push(b);
|
|
3836
3853
|
}
|
|
3837
3854
|
}
|
|
3838
|
-
n = [...new Set(n)], n.sort((
|
|
3839
|
-
for (let
|
|
3840
|
-
const c = n[
|
|
3841
|
-
if (
|
|
3855
|
+
n = [...new Set(n)], n.sort((l, c) => c - l);
|
|
3856
|
+
for (let l = 0; l < n.length; l++) {
|
|
3857
|
+
const c = n[l];
|
|
3858
|
+
if (l === 0) {
|
|
3842
3859
|
if (a > c) {
|
|
3843
|
-
let
|
|
3844
|
-
|
|
3860
|
+
let u = r.getAttribute("data--h");
|
|
3861
|
+
u ? r.style.height = u : r.style.height = "";
|
|
3845
3862
|
}
|
|
3846
3863
|
} else {
|
|
3847
|
-
const
|
|
3848
|
-
if (
|
|
3849
|
-
let b = r.getAttribute("data--h-" +
|
|
3864
|
+
const u = n[l - 1];
|
|
3865
|
+
if (u >= a && a > c) {
|
|
3866
|
+
let b = r.getAttribute("data--h-" + u);
|
|
3850
3867
|
b && (r.style.height = b);
|
|
3851
3868
|
}
|
|
3852
3869
|
}
|
|
3853
3870
|
}
|
|
3854
3871
|
if (n.length > 0 && n[n.length - 1] >= a) {
|
|
3855
3872
|
const c = n[n.length - 1];
|
|
3856
|
-
let
|
|
3857
|
-
|
|
3873
|
+
let u = r.getAttribute("data--h-" + c);
|
|
3874
|
+
u && (r.style.height = u);
|
|
3858
3875
|
}
|
|
3859
3876
|
}), document.querySelectorAll(".is-block").forEach((r) => {
|
|
3860
3877
|
if (!r.classList.contains("locked")) {
|
|
3861
3878
|
r.offsetWidth + 0 > a && !r.classList.contains("fluid") && (r.setAttribute("data-fluid-val", r.offsetWidth), t.applyFluid(r, "yes"));
|
|
3862
|
-
let
|
|
3863
|
-
|
|
3879
|
+
let l = r.getAttribute("data-fluid-val");
|
|
3880
|
+
l && parseInt(l) + 0 <= a && r.classList.contains("fluid") && t.applyFluid(r, "no");
|
|
3864
3881
|
}
|
|
3865
3882
|
let n = [];
|
|
3866
3883
|
const h = r.attributes;
|
|
3867
|
-
for (let
|
|
3868
|
-
const c = h[
|
|
3869
|
-
let
|
|
3870
|
-
if (
|
|
3871
|
-
const b = parseInt(
|
|
3884
|
+
for (let l = 0; l < h.length; l++) {
|
|
3885
|
+
const c = h[l].name;
|
|
3886
|
+
let u = c.match(/^data--t-(\d+)$/);
|
|
3887
|
+
if (u) {
|
|
3888
|
+
const b = parseInt(u[1], 10);
|
|
3872
3889
|
n.push(b);
|
|
3873
3890
|
}
|
|
3874
|
-
if (
|
|
3875
|
-
const b = parseInt(
|
|
3891
|
+
if (u = c.match(/^data--w-(\d+)$/), u) {
|
|
3892
|
+
const b = parseInt(u[1], 10);
|
|
3876
3893
|
n.push(b);
|
|
3877
3894
|
}
|
|
3878
|
-
if (
|
|
3879
|
-
const b = parseInt(
|
|
3895
|
+
if (u = c.match(/^data--transform-(\d+)$/), u) {
|
|
3896
|
+
const b = parseInt(u[1], 10);
|
|
3880
3897
|
n.push(b);
|
|
3881
3898
|
}
|
|
3882
3899
|
}
|
|
3883
|
-
n = [...new Set(n)], n.sort((
|
|
3884
|
-
for (let
|
|
3885
|
-
const c = n[
|
|
3886
|
-
if (
|
|
3900
|
+
n = [...new Set(n)], n.sort((l, c) => c - l);
|
|
3901
|
+
for (let l = 0; l < n.length; l++) {
|
|
3902
|
+
const c = n[l];
|
|
3903
|
+
if (l === 0)
|
|
3887
3904
|
a > c && t.apply(r, 1e4, e);
|
|
3888
3905
|
else {
|
|
3889
|
-
const
|
|
3890
|
-
|
|
3906
|
+
const u = n[l - 1];
|
|
3907
|
+
u >= a && a > c && t.apply(r, u, e);
|
|
3891
3908
|
}
|
|
3892
3909
|
}
|
|
3893
3910
|
if (n.length > 0) {
|
|
3894
|
-
const
|
|
3895
|
-
|
|
3911
|
+
const l = n[n.length - 1];
|
|
3912
|
+
l >= a && t.apply(r, l, e);
|
|
3896
3913
|
}
|
|
3897
3914
|
});
|
|
3898
3915
|
},
|