@innovastudio/contentbox-runtime-base 1.0.10 → 1.0.11
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.
|
@@ -8,140 +8,140 @@ function Qe() {
|
|
|
8
8
|
(function(i, s) {
|
|
9
9
|
o.exports = s();
|
|
10
10
|
})(Ge, 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, d = /^0o[0-7]+$/i, u = parseInt,
|
|
12
|
-
return
|
|
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, d = /^0o[0-7]+$/i, u = parseInt, g = typeof i == "object" && i && i.Object === Object && i, b = typeof self == "object" && self && self.Object === Object && self, S = g || b || Function("return this")(), L = Object.prototype.toString, k = Math.max, at = Math.min, ft = function() {
|
|
12
|
+
return S.Date.now();
|
|
13
13
|
};
|
|
14
|
-
function Wt(
|
|
15
|
-
var w,
|
|
16
|
-
if (typeof
|
|
17
|
-
function ct(
|
|
18
|
-
var U = w, ut =
|
|
19
|
-
return w =
|
|
14
|
+
function Wt(p, m, y) {
|
|
15
|
+
var w, C, H, B, _, $, M = 0, ht = !1, F = !1, K = !0;
|
|
16
|
+
if (typeof p != "function") throw new TypeError(s);
|
|
17
|
+
function ct(T) {
|
|
18
|
+
var U = w, ut = C;
|
|
19
|
+
return w = C = void 0, M = T, B = p.apply(ut, U);
|
|
20
20
|
}
|
|
21
|
-
function zt(
|
|
22
|
-
var U =
|
|
23
|
-
return $ === void 0 || U >= m || U < 0 || F &&
|
|
21
|
+
function zt(T) {
|
|
22
|
+
var U = T - $;
|
|
23
|
+
return $ === void 0 || U >= m || U < 0 || F && T - M >= H;
|
|
24
24
|
}
|
|
25
25
|
function St() {
|
|
26
|
-
var
|
|
27
|
-
if (zt(
|
|
28
|
-
|
|
26
|
+
var T = ft();
|
|
27
|
+
if (zt(T)) return Xt(T);
|
|
28
|
+
_ = setTimeout(St, (function(U) {
|
|
29
29
|
var ut = m - (U - $);
|
|
30
30
|
return F ? at(ut, H - (U - M)) : ut;
|
|
31
|
-
})(
|
|
31
|
+
})(T));
|
|
32
32
|
}
|
|
33
|
-
function Xt(
|
|
34
|
-
return
|
|
33
|
+
function Xt(T) {
|
|
34
|
+
return _ = void 0, K && w ? ct(T) : (w = C = void 0, B);
|
|
35
35
|
}
|
|
36
36
|
function st() {
|
|
37
|
-
var
|
|
38
|
-
if (w = arguments,
|
|
39
|
-
if (
|
|
40
|
-
return M = ut,
|
|
37
|
+
var T = ft(), U = zt(T);
|
|
38
|
+
if (w = arguments, C = this, $ = T, U) {
|
|
39
|
+
if (_ === void 0) return (function(ut) {
|
|
40
|
+
return M = ut, _ = setTimeout(St, m), ht ? ct(ut) : B;
|
|
41
41
|
})($);
|
|
42
|
-
if (F) return
|
|
42
|
+
if (F) return _ = setTimeout(St, m), ct($);
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return _ === void 0 && (_ = setTimeout(St, m)), B;
|
|
45
45
|
}
|
|
46
|
-
return m = Lt(m) || 0, Ct(y) && (ht = !!y.leading, H = (F = "maxWait" in y) ?
|
|
47
|
-
|
|
46
|
+
return m = Lt(m) || 0, Ct(y) && (ht = !!y.leading, H = (F = "maxWait" in y) ? k(Lt(y.maxWait) || 0, m) : H, K = "trailing" in y ? !!y.trailing : K), st.cancel = function() {
|
|
47
|
+
_ !== void 0 && clearTimeout(_), M = 0, w = $ = C = _ = void 0;
|
|
48
48
|
}, st.flush = function() {
|
|
49
|
-
return
|
|
49
|
+
return _ === void 0 ? B : Xt(ft());
|
|
50
50
|
}, st;
|
|
51
51
|
}
|
|
52
|
-
function Ct(
|
|
53
|
-
var m = typeof
|
|
54
|
-
return !!
|
|
52
|
+
function Ct(p) {
|
|
53
|
+
var m = typeof p;
|
|
54
|
+
return !!p && (m == "object" || m == "function");
|
|
55
55
|
}
|
|
56
|
-
function Lt(
|
|
57
|
-
if (typeof
|
|
56
|
+
function Lt(p) {
|
|
57
|
+
if (typeof p == "number") return p;
|
|
58
58
|
if ((function(w) {
|
|
59
|
-
return typeof w == "symbol" || /* @__PURE__ */ (function(
|
|
60
|
-
return !!
|
|
61
|
-
})(w) &&
|
|
62
|
-
})(
|
|
63
|
-
if (Ct(
|
|
64
|
-
var m = typeof
|
|
65
|
-
|
|
59
|
+
return typeof w == "symbol" || /* @__PURE__ */ (function(C) {
|
|
60
|
+
return !!C && typeof C == "object";
|
|
61
|
+
})(w) && L.call(w) == a;
|
|
62
|
+
})(p)) return e;
|
|
63
|
+
if (Ct(p)) {
|
|
64
|
+
var m = typeof p.valueOf == "function" ? p.valueOf() : p;
|
|
65
|
+
p = Ct(m) ? m + "" : m;
|
|
66
66
|
}
|
|
67
|
-
if (typeof
|
|
68
|
-
|
|
69
|
-
var y = h.test(
|
|
70
|
-
return y || d.test(
|
|
71
|
-
}
|
|
72
|
-
var kt = function(
|
|
73
|
-
var w = !0,
|
|
74
|
-
if (typeof
|
|
75
|
-
return Ct(y) && (w = "leading" in y ? !!y.leading : w,
|
|
76
|
-
}, l = "Expected a function", c = NaN, v = "[object Symbol]",
|
|
67
|
+
if (typeof p != "string") return p === 0 ? p : +p;
|
|
68
|
+
p = p.replace(r, "");
|
|
69
|
+
var y = h.test(p);
|
|
70
|
+
return y || d.test(p) ? u(p.slice(2), y ? 2 : 8) : n.test(p) ? e : +p;
|
|
71
|
+
}
|
|
72
|
+
var kt = function(p, m, y) {
|
|
73
|
+
var w = !0, C = !0;
|
|
74
|
+
if (typeof p != "function") throw new TypeError(s);
|
|
75
|
+
return Ct(y) && (w = "leading" in y ? !!y.leading : w, C = "trailing" in y ? !!y.trailing : C), Wt(p, m, { leading: w, maxWait: m, trailing: C });
|
|
76
|
+
}, l = "Expected a function", c = NaN, v = "[object Symbol]", E = /^\s+|\s+$/g, O = /^[-+]0x[0-9a-f]+$/i, I = /^0b[01]+$/i, J = /^0o[0-7]+$/i, At = parseInt, W = typeof i == "object" && i && i.Object === Object && i, gt = typeof self == "object" && self && self.Object === Object && self, x = W || gt || Function("return this")(), A = Object.prototype.toString, X = Math.max, j = Math.min, Z = function() {
|
|
77
77
|
return x.Date.now();
|
|
78
78
|
};
|
|
79
|
-
function G(
|
|
80
|
-
var m = typeof
|
|
81
|
-
return !!
|
|
79
|
+
function G(p) {
|
|
80
|
+
var m = typeof p;
|
|
81
|
+
return !!p && (m == "object" || m == "function");
|
|
82
82
|
}
|
|
83
|
-
function R(
|
|
84
|
-
if (typeof
|
|
83
|
+
function R(p) {
|
|
84
|
+
if (typeof p == "number") return p;
|
|
85
85
|
if ((function(w) {
|
|
86
|
-
return typeof w == "symbol" || /* @__PURE__ */ (function(
|
|
87
|
-
return !!
|
|
86
|
+
return typeof w == "symbol" || /* @__PURE__ */ (function(C) {
|
|
87
|
+
return !!C && typeof C == "object";
|
|
88
88
|
})(w) && A.call(w) == v;
|
|
89
|
-
})(
|
|
90
|
-
if (G(
|
|
91
|
-
var m = typeof
|
|
92
|
-
|
|
89
|
+
})(p)) return c;
|
|
90
|
+
if (G(p)) {
|
|
91
|
+
var m = typeof p.valueOf == "function" ? p.valueOf() : p;
|
|
92
|
+
p = G(m) ? m + "" : m;
|
|
93
93
|
}
|
|
94
|
-
if (typeof
|
|
95
|
-
|
|
96
|
-
var y = I.test(
|
|
97
|
-
return y || J.test(
|
|
98
|
-
}
|
|
99
|
-
var It = function(
|
|
100
|
-
var w,
|
|
101
|
-
if (typeof
|
|
102
|
-
function ct(
|
|
103
|
-
var U = w, ut =
|
|
104
|
-
return w =
|
|
94
|
+
if (typeof p != "string") return p === 0 ? p : +p;
|
|
95
|
+
p = p.replace(E, "");
|
|
96
|
+
var y = I.test(p);
|
|
97
|
+
return y || J.test(p) ? At(p.slice(2), y ? 2 : 8) : O.test(p) ? c : +p;
|
|
98
|
+
}
|
|
99
|
+
var It = function(p, m, y) {
|
|
100
|
+
var w, C, H, B, _, $, M = 0, ht = !1, F = !1, K = !0;
|
|
101
|
+
if (typeof p != "function") throw new TypeError(l);
|
|
102
|
+
function ct(T) {
|
|
103
|
+
var U = w, ut = C;
|
|
104
|
+
return w = C = void 0, M = T, B = p.apply(ut, U);
|
|
105
105
|
}
|
|
106
|
-
function zt(
|
|
107
|
-
var U =
|
|
108
|
-
return $ === void 0 || U >= m || U < 0 || F &&
|
|
106
|
+
function zt(T) {
|
|
107
|
+
var U = T - $;
|
|
108
|
+
return $ === void 0 || U >= m || U < 0 || F && T - M >= H;
|
|
109
109
|
}
|
|
110
110
|
function St() {
|
|
111
|
-
var
|
|
112
|
-
if (zt(
|
|
113
|
-
|
|
111
|
+
var T = Z();
|
|
112
|
+
if (zt(T)) return Xt(T);
|
|
113
|
+
_ = setTimeout(St, (function(U) {
|
|
114
114
|
var ut = m - (U - $);
|
|
115
|
-
return F ?
|
|
116
|
-
})(
|
|
115
|
+
return F ? j(ut, H - (U - M)) : ut;
|
|
116
|
+
})(T));
|
|
117
117
|
}
|
|
118
|
-
function Xt(
|
|
119
|
-
return
|
|
118
|
+
function Xt(T) {
|
|
119
|
+
return _ = void 0, K && w ? ct(T) : (w = C = void 0, B);
|
|
120
120
|
}
|
|
121
121
|
function st() {
|
|
122
|
-
var
|
|
123
|
-
if (w = arguments,
|
|
124
|
-
if (
|
|
125
|
-
return M = ut,
|
|
122
|
+
var T = Z(), U = zt(T);
|
|
123
|
+
if (w = arguments, C = this, $ = T, U) {
|
|
124
|
+
if (_ === void 0) return (function(ut) {
|
|
125
|
+
return M = ut, _ = setTimeout(St, m), ht ? ct(ut) : B;
|
|
126
126
|
})($);
|
|
127
|
-
if (F) return
|
|
127
|
+
if (F) return _ = setTimeout(St, m), ct($);
|
|
128
128
|
}
|
|
129
|
-
return
|
|
129
|
+
return _ === void 0 && (_ = setTimeout(St, m)), B;
|
|
130
130
|
}
|
|
131
131
|
return m = R(m) || 0, G(y) && (ht = !!y.leading, H = (F = "maxWait" in y) ? X(R(y.maxWait) || 0, m) : H, K = "trailing" in y ? !!y.trailing : K), st.cancel = function() {
|
|
132
|
-
|
|
132
|
+
_ !== void 0 && clearTimeout(_), M = 0, w = $ = C = _ = void 0;
|
|
133
133
|
}, st.flush = function() {
|
|
134
|
-
return
|
|
134
|
+
return _ === void 0 ? B : Xt(Z());
|
|
135
135
|
}, st;
|
|
136
136
|
}, Q = function() {
|
|
137
137
|
};
|
|
138
|
-
function P(
|
|
139
|
-
|
|
138
|
+
function P(p) {
|
|
139
|
+
p && p.forEach(function(m) {
|
|
140
140
|
var y = Array.prototype.slice.call(m.addedNodes), w = Array.prototype.slice.call(m.removedNodes);
|
|
141
|
-
if ((function
|
|
142
|
-
var B = void 0,
|
|
141
|
+
if ((function C(H) {
|
|
142
|
+
var B = void 0, _ = void 0;
|
|
143
143
|
for (B = 0; B < H.length; B += 1)
|
|
144
|
-
if ((
|
|
144
|
+
if ((_ = H[B]).dataset && _.dataset.aos || _.children && C(_.children)) return !0;
|
|
145
145
|
return !1;
|
|
146
146
|
})(y.concat(w))) return Q();
|
|
147
147
|
});
|
|
@@ -151,36 +151,36 @@ function Qe() {
|
|
|
151
151
|
}
|
|
152
152
|
var rt = { isSupported: function() {
|
|
153
153
|
return !!D();
|
|
154
|
-
}, ready: function(
|
|
154
|
+
}, ready: function(p, m) {
|
|
155
155
|
var y = window.document, w = new (D())(P);
|
|
156
156
|
Q = m, w.observe(y.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
|
|
157
|
-
} }, _t = function(
|
|
158
|
-
if (!(
|
|
157
|
+
} }, _t = function(p, m) {
|
|
158
|
+
if (!(p instanceof m)) throw new TypeError("Cannot call a class as a function");
|
|
159
159
|
}, ot = /* @__PURE__ */ (function() {
|
|
160
|
-
function
|
|
160
|
+
function p(m, y) {
|
|
161
161
|
for (var w = 0; w < y.length; w++) {
|
|
162
|
-
var
|
|
163
|
-
|
|
162
|
+
var C = y[w];
|
|
163
|
+
C.enumerable = C.enumerable || !1, C.configurable = !0, "value" in C && (C.writable = !0), Object.defineProperty(m, C.key, C);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
return function(m, y, w) {
|
|
167
|
-
return y &&
|
|
167
|
+
return y && p(m.prototype, y), w && p(m, w), m;
|
|
168
168
|
};
|
|
169
|
-
})(), Ot = Object.assign || function(
|
|
169
|
+
})(), Ot = Object.assign || function(p) {
|
|
170
170
|
for (var m = 1; m < arguments.length; m++) {
|
|
171
171
|
var y = arguments[m];
|
|
172
|
-
for (var w in y) Object.prototype.hasOwnProperty.call(y, w) && (
|
|
172
|
+
for (var w in y) Object.prototype.hasOwnProperty.call(y, w) && (p[w] = y[w]);
|
|
173
173
|
}
|
|
174
|
-
return
|
|
174
|
+
return p;
|
|
175
175
|
}, pt = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i, z = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i, lt = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i, tt = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;
|
|
176
176
|
function et() {
|
|
177
177
|
return navigator.userAgent || navigator.vendor || window.opera || "";
|
|
178
178
|
}
|
|
179
179
|
var mt = new ((function() {
|
|
180
|
-
function
|
|
181
|
-
_t(this,
|
|
180
|
+
function p() {
|
|
181
|
+
_t(this, p);
|
|
182
182
|
}
|
|
183
|
-
return ot(
|
|
183
|
+
return ot(p, [{ key: "phone", value: function() {
|
|
184
184
|
var m = et();
|
|
185
185
|
return !(!pt.test(m) && !z.test(m.substr(0, 4)));
|
|
186
186
|
} }, { key: "mobile", value: function() {
|
|
@@ -190,82 +190,82 @@ function Qe() {
|
|
|
190
190
|
return this.mobile() && !this.phone();
|
|
191
191
|
} }, { key: "ie11", value: function() {
|
|
192
192
|
return "-ms-scroll-limit" in document.documentElement.style && "-ms-ime-align" in document.documentElement.style;
|
|
193
|
-
} }]),
|
|
194
|
-
})())(), bt = function(
|
|
193
|
+
} }]), p;
|
|
194
|
+
})())(), bt = function(p, m) {
|
|
195
195
|
var y = void 0;
|
|
196
|
-
return mt.ie11() ? (y = document.createEvent("CustomEvent")).initCustomEvent(
|
|
197
|
-
}, it = function(
|
|
198
|
-
return
|
|
199
|
-
return (function(w,
|
|
200
|
-
var H = w.options, B = w.position,
|
|
196
|
+
return mt.ie11() ? (y = document.createEvent("CustomEvent")).initCustomEvent(p, !0, !0, { detail: m }) : y = new CustomEvent(p, { detail: m }), document.dispatchEvent(y);
|
|
197
|
+
}, it = function(p) {
|
|
198
|
+
return p.forEach(function(m, y) {
|
|
199
|
+
return (function(w, C) {
|
|
200
|
+
var H = w.options, B = w.position, _ = w.node, $ = (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
|
+
})(_, H.animatedClassNames), bt("aos:out", _), w.options.id && bt("aos:in:" + w.options.id, _), w.animated = !1);
|
|
206
206
|
});
|
|
207
|
-
H.mirror &&
|
|
207
|
+
H.mirror && C >= B.out && !H.once ? $() : C >= B.in ? w.animated || ((function(M, ht) {
|
|
208
208
|
ht && ht.forEach(function(F) {
|
|
209
209
|
return M.classList.add(F);
|
|
210
210
|
});
|
|
211
|
-
})(
|
|
211
|
+
})(_, H.animatedClassNames), bt("aos:in", _), w.options.id && bt("aos:in:" + w.options.id, _), w.animated = !0) : w.animated && !H.once && $();
|
|
212
212
|
})(m, window.pageYOffset);
|
|
213
213
|
});
|
|
214
|
-
}, yt = function(
|
|
215
|
-
for (var m = 0, y = 0;
|
|
214
|
+
}, yt = function(p) {
|
|
215
|
+
for (var m = 0, y = 0; p && !isNaN(p.offsetLeft) && !isNaN(p.offsetTop); ) m += p.offsetLeft - (p.tagName != "BODY" ? p.scrollLeft : 0), y += p.offsetTop - (p.tagName != "BODY" ? p.scrollTop : 0), p = p.offsetParent;
|
|
216
216
|
return { top: y, left: m };
|
|
217
|
-
}, q = function(
|
|
218
|
-
var w =
|
|
217
|
+
}, q = function(p, m, y) {
|
|
218
|
+
var w = p.getAttribute("data-aos-" + m);
|
|
219
219
|
if (w !== void 0) {
|
|
220
220
|
if (w === "true") return !0;
|
|
221
221
|
if (w === "false") return !1;
|
|
222
222
|
}
|
|
223
223
|
return w || y;
|
|
224
|
-
}, Et = function(
|
|
225
|
-
return
|
|
226
|
-
var
|
|
224
|
+
}, Et = function(p, m) {
|
|
225
|
+
return p.forEach(function(y, w) {
|
|
226
|
+
var C = q(y.node, "mirror", m.mirror), H = q(y.node, "once", m.once), B = q(y.node, "id"), _ = m.useClassNames && y.node.getAttribute("data-aos"), $ = [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) {
|
|
230
230
|
var K = window.innerHeight, ct = q(M, "anchor"), zt = q(M, "anchor-placement"), St = Number(q(M, "offset", zt ? 0 : ht)), Xt = zt || F, st = M;
|
|
231
231
|
ct && document.querySelectorAll(ct) && (st = document.querySelectorAll(ct)[0]);
|
|
232
|
-
var
|
|
232
|
+
var T = yt(st).top - K;
|
|
233
233
|
switch (Xt) {
|
|
234
234
|
case "top-bottom":
|
|
235
235
|
break;
|
|
236
236
|
case "center-bottom":
|
|
237
|
-
|
|
237
|
+
T += st.offsetHeight / 2;
|
|
238
238
|
break;
|
|
239
239
|
case "bottom-bottom":
|
|
240
|
-
|
|
240
|
+
T += st.offsetHeight;
|
|
241
241
|
break;
|
|
242
242
|
case "top-center":
|
|
243
|
-
|
|
243
|
+
T += K / 2;
|
|
244
244
|
break;
|
|
245
245
|
case "center-center":
|
|
246
|
-
|
|
246
|
+
T += K / 2 + st.offsetHeight / 2;
|
|
247
247
|
break;
|
|
248
248
|
case "bottom-center":
|
|
249
|
-
|
|
249
|
+
T += K / 2 + st.offsetHeight;
|
|
250
250
|
break;
|
|
251
251
|
case "top-top":
|
|
252
|
-
|
|
252
|
+
T += K;
|
|
253
253
|
break;
|
|
254
254
|
case "bottom-top":
|
|
255
|
-
|
|
255
|
+
T += K + st.offsetHeight;
|
|
256
256
|
break;
|
|
257
257
|
case "center-top":
|
|
258
|
-
|
|
258
|
+
T += K + st.offsetHeight / 2;
|
|
259
259
|
}
|
|
260
|
-
return
|
|
261
|
-
})(y.node, m.offset, m.anchorPlacement), out:
|
|
260
|
+
return T + St;
|
|
261
|
+
})(y.node, m.offset, m.anchorPlacement), out: C && (function(M, ht) {
|
|
262
262
|
var F = q(M, "anchor"), K = q(M, "offset", ht), ct = M;
|
|
263
263
|
return F && document.querySelectorAll(F) && (ct = document.querySelectorAll(F)[0]), yt(ct).top + ct.offsetHeight - K;
|
|
264
|
-
})(y.node, m.offset) }, y.options = { once: H, mirror:
|
|
265
|
-
}),
|
|
264
|
+
})(y.node, m.offset) }, y.options = { once: H, mirror: C, animatedClassNames: $, id: B };
|
|
265
|
+
}), p;
|
|
266
266
|
}, Vt = function() {
|
|
267
|
-
var
|
|
268
|
-
return Array.prototype.map.call(
|
|
267
|
+
var p = document.querySelectorAll("[data-aos]");
|
|
268
|
+
return Array.prototype.map.call(p, function(m) {
|
|
269
269
|
return { node: m };
|
|
270
270
|
});
|
|
271
271
|
}, dt = [], Yt = !1, V = { offset: 120, delay: 0, easing: "ease", duration: 400, disable: !1, once: !1, mirror: !1, anchorPlacement: "top-bottom", startEvent: "DOMContentLoaded", animatedClassName: "aos-animate", initClassName: "aos-init", useClassNames: !1, disableMutationObserver: !1, throttleDelay: 99, debounceDelay: 50 }, Mt = function() {
|
|
@@ -278,14 +278,14 @@ function Qe() {
|
|
|
278
278
|
if (dt = Vt(), Dt(V.disable) || Mt()) return qt();
|
|
279
279
|
vt();
|
|
280
280
|
}, qt = function() {
|
|
281
|
-
dt.forEach(function(
|
|
282
|
-
|
|
281
|
+
dt.forEach(function(p, m) {
|
|
282
|
+
p.node.removeAttribute("data-aos"), p.node.removeAttribute("data-aos-easing"), p.node.removeAttribute("data-aos-duration"), p.node.removeAttribute("data-aos-delay"), V.initClassName && p.node.classList.remove(V.initClassName), V.animatedClassName && p.node.classList.remove(V.animatedClassName);
|
|
283
283
|
});
|
|
284
|
-
}, Dt = function(
|
|
285
|
-
return
|
|
284
|
+
}, Dt = function(p) {
|
|
285
|
+
return p === !0 || p === "mobile" && mt.mobile() || p === "phone" && mt.phone() || p === "tablet" && mt.tablet() || typeof p == "function" && p() === !0;
|
|
286
286
|
};
|
|
287
|
-
return { init: function(
|
|
288
|
-
return V = Ot(V,
|
|
287
|
+
return { init: function(p) {
|
|
288
|
+
return V = Ot(V, p), dt = Vt(), V.disableMutationObserver || rt.isSupported() || (console.info(`
|
|
289
289
|
aos: MutationObserver is not supported on this browser,
|
|
290
290
|
code mutations observing has been disabled.
|
|
291
291
|
You may have to call "refreshHard()" by yourself.
|
|
@@ -306,8 +306,8 @@ function ti() {
|
|
|
306
306
|
function t(d, u) {
|
|
307
307
|
if (!(d instanceof u)) throw new TypeError("Cannot call a class as a function");
|
|
308
308
|
}
|
|
309
|
-
function i(d, u,
|
|
310
|
-
return u in d ? Object.defineProperty(d, u, { value:
|
|
309
|
+
function i(d, u, g) {
|
|
310
|
+
return u in d ? Object.defineProperty(d, u, { value: g, enumerable: !0, configurable: !0, writable: !0 }) : d[u] = g, d;
|
|
311
311
|
}
|
|
312
312
|
function s(d, u) {
|
|
313
313
|
return h(d) || n(d, u) || a(d, u) || e();
|
|
@@ -319,30 +319,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
319
319
|
function a(d, u) {
|
|
320
320
|
if (d) {
|
|
321
321
|
if (typeof d == "string") return r(d, u);
|
|
322
|
-
var
|
|
323
|
-
return
|
|
322
|
+
var g = Object.prototype.toString.call(d).slice(8, -1);
|
|
323
|
+
return g === "Object" && d.constructor && (g = d.constructor.name), g === "Map" || g === "Set" ? Array.from(d) : g === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g) ? r(d, u) : void 0;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
function r(d, u) {
|
|
327
327
|
(u == null || u > d.length) && (u = d.length);
|
|
328
|
-
for (var
|
|
328
|
+
for (var g = 0, b = new Array(u); g < u; g++) b[g] = d[g];
|
|
329
329
|
return b;
|
|
330
330
|
}
|
|
331
331
|
function n(d, u) {
|
|
332
332
|
if (typeof Symbol < "u" && Symbol.iterator in Object(d)) {
|
|
333
|
-
var
|
|
333
|
+
var g = [], b = !0, S = !1, L = void 0;
|
|
334
334
|
try {
|
|
335
|
-
for (var
|
|
335
|
+
for (var k, at = d[Symbol.iterator](); !(b = (k = at.next()).done) && (g.push(k.value), !u || g.length !== u); b = !0) ;
|
|
336
336
|
} catch (ft) {
|
|
337
|
-
|
|
337
|
+
S = !0, L = ft;
|
|
338
338
|
} finally {
|
|
339
339
|
try {
|
|
340
340
|
b || at.return == null || at.return();
|
|
341
341
|
} finally {
|
|
342
|
-
if (
|
|
342
|
+
if (S) throw L;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
return
|
|
345
|
+
return g;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
function h(d) {
|
|
@@ -352,7 +352,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
352
352
|
function d(l) {
|
|
353
353
|
return ["elInY+elHeight", "elCenterY-".concat(l = 0 < arguments.length && l !== void 0 ? l : 30), "elCenterY", "elCenterY+".concat(l), "elOutY-elHeight"];
|
|
354
354
|
}
|
|
355
|
-
var u,
|
|
355
|
+
var u, g, b, S, L, k, at = { fadeInOut: function(l, c) {
|
|
356
356
|
return c = 1 < arguments.length && c !== void 0 ? c : 0, { opacity: [d(0 < arguments.length && l !== void 0 ? l : 30), [c, 1, 1, 1, c]] };
|
|
357
357
|
}, fadeIn: function(l, c) {
|
|
358
358
|
return { opacity: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length && c !== void 0 ? c : 0, 1]] };
|
|
@@ -388,7 +388,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
388
388
|
return l = 0 < arguments.length && l !== void 0 ? l : 100, c = 1 < arguments.length && c !== void 0 ? c : 100, { translateX: [[0, +l, 2 * l, 3 * l, 4 * l], [0, c, 0, -c, 0], { modValue: 4 * l }] };
|
|
389
389
|
}, hueRotate: function(l, c) {
|
|
390
390
|
return l = 0 < arguments.length && l !== void 0 ? l : 600, { "hue-rotate": [[0, l], [0, 1 < arguments.length && c !== void 0 ? c : 360], { modValue: l }] };
|
|
391
|
-
} }, ft = (u = ["perspective", "scaleX", "scaleY", "scale", "skewX", "skewY", "skew", "rotateX", "rotateY", "rotate"],
|
|
391
|
+
} }, ft = (u = ["perspective", "scaleX", "scaleY", "scale", "skewX", "skewY", "skew", "rotateX", "rotateY", "rotate"], g = ["blur", "hue-rotate", "brightness"], b = ["translateX", "translateY", "translateZ"], S = ["perspective", "border-radius", "blur", "translateX", "translateY", "translateZ"], L = ["hue-rotate", "rotate", "rotateX", "rotateY", "skew", "skewX", "skewY"], k = { easeInQuad: function(l) {
|
|
392
392
|
return l * l;
|
|
393
393
|
}, easeOutQuad: function(l) {
|
|
394
394
|
return l * (2 - l);
|
|
@@ -416,7 +416,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
416
416
|
var c = 7.5625, v = 2.75;
|
|
417
417
|
return l < 1 / v ? c * l * l : l < 2 / v ? c * (l -= 1.5 / v) * l + 0.75 : l < 2.5 / v ? c * (l -= 2.25 / v) * l + 0.9375 : c * (l -= 2.625 / v) * l + 0.984375;
|
|
418
418
|
}, easeInBounce: function(l) {
|
|
419
|
-
return 1 -
|
|
419
|
+
return 1 - k.easeOutBounce(1 - l);
|
|
420
420
|
}, easeOutBack: function(l) {
|
|
421
421
|
return 1 + 2.70158 * Math.pow(l - 1, 3) + 1.70158 * Math.pow(l - 1, 2);
|
|
422
422
|
}, easeInBack: function(l) {
|
|
@@ -431,43 +431,43 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
431
431
|
}));
|
|
432
432
|
}), i(this, "onAnimationFrame", function(v) {
|
|
433
433
|
c.debug && (c.debugData.frameStart = Date.now());
|
|
434
|
-
var
|
|
434
|
+
var E, O = {};
|
|
435
435
|
c.drivers.forEach(function(I) {
|
|
436
436
|
O[I.name] = I.getValue(c.frame);
|
|
437
437
|
}), c.elements.forEach(function(I) {
|
|
438
438
|
I.update(O, c.frame);
|
|
439
|
-
}), c.debug && c.debugData.frameLengths.push(Date.now() - c.debugData.frameStart), c.frame % 60 == 0 && c.debug && (
|
|
439
|
+
}), c.debug && c.debugData.frameLengths.push(Date.now() - c.debugData.frameStart), c.frame % 60 == 0 && c.debug && (E = Math.ceil(c.debugData.frameLengths.reduce(function(I, J) {
|
|
440
440
|
return I + J;
|
|
441
|
-
}, 0) / 60), console.log("Average frame calculation time: ".concat(
|
|
442
|
-
}), i(this, "addDriver", function(v,
|
|
441
|
+
}, 0) / 60), console.log("Average frame calculation time: ".concat(E, "ms")), c.debugData.frameLengths = []), c.frame++, window.requestAnimationFrame(c.onAnimationFrame);
|
|
442
|
+
}), i(this, "addDriver", function(v, E) {
|
|
443
443
|
var O = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
|
|
444
|
-
c.drivers.push(new Lt(v,
|
|
444
|
+
c.drivers.push(new Lt(v, E, O));
|
|
445
445
|
}), i(this, "removeDriver", function(v) {
|
|
446
|
-
c.drivers = c.drivers.filter(function(
|
|
447
|
-
return
|
|
446
|
+
c.drivers = c.drivers.filter(function(E) {
|
|
447
|
+
return E.name !== v;
|
|
448
448
|
});
|
|
449
449
|
}), i(this, "findAndAddElements", function() {
|
|
450
450
|
c.elements = [], document.querySelectorAll(".lax").forEach(function(v) {
|
|
451
|
-
var
|
|
451
|
+
var E = [];
|
|
452
452
|
v.classList.forEach(function(I) {
|
|
453
|
-
I.includes("lax_preset") && (I = I.replace("lax_preset_", ""),
|
|
453
|
+
I.includes("lax_preset") && (I = I.replace("lax_preset_", ""), E.push(I));
|
|
454
454
|
});
|
|
455
|
-
var O = i({}, "scrollY", { presets:
|
|
455
|
+
var O = i({}, "scrollY", { presets: E });
|
|
456
456
|
c.elements.push(new kt(".lax", c, v, O, 0, {}));
|
|
457
457
|
});
|
|
458
|
-
}), i(this, "addElements", function(v,
|
|
458
|
+
}), i(this, "addElements", function(v, E, O) {
|
|
459
459
|
document.querySelectorAll(v).forEach(function(I, J) {
|
|
460
|
-
c.elements.push(new kt(v, c, I,
|
|
460
|
+
c.elements.push(new kt(v, c, I, E, J, O));
|
|
461
461
|
});
|
|
462
462
|
}), i(this, "removeElements", function(v) {
|
|
463
|
-
c.elements = c.elements.filter(function(
|
|
464
|
-
return
|
|
463
|
+
c.elements = c.elements.filter(function(E) {
|
|
464
|
+
return E.selector !== v;
|
|
465
465
|
});
|
|
466
|
-
}), i(this, "addElement", function(v,
|
|
467
|
-
c.elements.push(new kt("", c, v,
|
|
466
|
+
}), i(this, "addElement", function(v, E, O) {
|
|
467
|
+
c.elements.push(new kt("", c, v, E, 0, O));
|
|
468
468
|
}), i(this, "removeElement", function(v) {
|
|
469
|
-
c.elements = c.elements.filter(function(
|
|
470
|
-
return
|
|
469
|
+
c.elements = c.elements.filter(function(E) {
|
|
470
|
+
return E.domElement !== v;
|
|
471
471
|
});
|
|
472
472
|
});
|
|
473
473
|
}());
|
|
@@ -477,40 +477,40 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
477
477
|
return parseInt(J);
|
|
478
478
|
}).sort(function(J, At) {
|
|
479
479
|
return At < J ? 1 : -1;
|
|
480
|
-
}),
|
|
480
|
+
}), E = v[v.length - 1], O = 0; O < v.length; O++) {
|
|
481
481
|
var I = v[O];
|
|
482
482
|
if (c < I) {
|
|
483
|
-
|
|
483
|
+
E = I;
|
|
484
484
|
break;
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
return l[
|
|
487
|
+
return l[E];
|
|
488
488
|
}
|
|
489
|
-
function Ct(l,
|
|
490
|
-
var
|
|
489
|
+
function Ct(l, j, v) {
|
|
490
|
+
var E = j.width, O = j.height, x = j.x, X = j.y;
|
|
491
491
|
if (typeof l == "number") return l;
|
|
492
|
-
var I, J = document.body.scrollHeight, At = document.body.scrollWidth, W = window.innerWidth, gt = window.innerHeight, A = s((I = window.pageXOffset !== void 0, A = (document.compatMode || "") === "CSS1Compat",
|
|
493
|
-
return Function("return ".concat(l.replace(/screenWidth/g, W).replace(/screenHeight/g, gt).replace(/pageHeight/g, J).replace(/pageWidth/g, At).replace(/elWidth/g,
|
|
492
|
+
var I, J = document.body.scrollHeight, At = document.body.scrollWidth, W = window.innerWidth, gt = window.innerHeight, A = s((I = window.pageXOffset !== void 0, A = (document.compatMode || "") === "CSS1Compat", j = I ? window.pageXOffset : (A ? document.documentElement : document.body).scrollLeft, [I ? window.pageYOffset : (A ? document.documentElement : document.body).scrollTop, j]), 2), j = A[0], x = x + A[1], A = x + E, X = X + j, j = X + O;
|
|
493
|
+
return Function("return ".concat(l.replace(/screenWidth/g, W).replace(/screenHeight/g, gt).replace(/pageHeight/g, J).replace(/pageWidth/g, At).replace(/elWidth/g, E).replace(/elHeight/g, O).replace(/elInY/g, X - gt).replace(/elOutY/g, j).replace(/elCenterY/g, X + O / 2 - gt / 2).replace(/elInX/g, x - W).replace(/elOutX/g, A).replace(/elCenterX/g, x + E / 2 - W / 2).replace(/index/g, v)))();
|
|
494
494
|
}
|
|
495
495
|
function Lt(l, c) {
|
|
496
|
-
var v = this,
|
|
496
|
+
var v = this, E = 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 = l, this.getValueFn = c, Object.keys(
|
|
501
|
-
v[O] =
|
|
500
|
+
}), this.name = l, this.getValueFn = c, Object.keys(E).forEach(function(O) {
|
|
501
|
+
v[O] = E[O];
|
|
502
502
|
}), this.lastValue = this.getValueFn(0);
|
|
503
503
|
}
|
|
504
|
-
function kt(l, c, v,
|
|
504
|
+
function kt(l, c, v, E) {
|
|
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(W, gt) {
|
|
507
507
|
var x, A = O.transforms, X = {};
|
|
508
508
|
for (x in A) {
|
|
509
|
-
var
|
|
509
|
+
var j = A[x];
|
|
510
510
|
W[x] || console.error("No lax driver with name: ", x);
|
|
511
511
|
var Z, G = s(W[x], 2), R = G[0], It = G[1];
|
|
512
|
-
for (Z in
|
|
513
|
-
var Q, ot = s(
|
|
512
|
+
for (Z in j) {
|
|
513
|
+
var Q, ot = s(j[Z], 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 = k[lt];
|
|
514
514
|
gt % _t == 0 && (lt = (function(tt, et, mt, bt) {
|
|
515
515
|
var it = 0;
|
|
516
516
|
if (tt.forEach(function(Et) {
|
|
@@ -519,7 +519,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
519
519
|
if (it >= tt.length) return et[tt.length - 1];
|
|
520
520
|
var yt, q = (q = tt[yt = it - 1], tt = tt[it], (mt - q) / (tt - q));
|
|
521
521
|
return bt && (q = bt(q)), yt = et[yt], et = et[it], yt * (1 - (q = q)) + et * q;
|
|
522
|
-
})(P, D, rt ? R % rt : R, lt), ot && (Q = It * ot, Ot === "absolute" && (Q = Math.abs(Q)), lt += Q), Q = (z ||
|
|
522
|
+
})(P, D, rt ? R % rt : R, lt), ot && (Q = It * ot, Ot === "absolute" && (Q = Math.abs(Q)), lt += Q), Q = (z || S.includes(Z) ? "px" : L.includes(Z) ? "deg" : "") == "px" ? 0 : 3, Q = lt.toFixed(Q), X[Z] = pt ? pt(Q, O.domElement) : Q + z);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
O.applyStyles(X), O.onUpdate && O.onUpdate(W, O.domElement);
|
|
@@ -527,8 +527,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
527
527
|
O.transforms = {};
|
|
528
528
|
var W, gt = O.laxInstance.windowWidth;
|
|
529
529
|
for (W in O.transformsData) (function(x) {
|
|
530
|
-
var A = O.transformsData[x], X = {},
|
|
531
|
-
(
|
|
530
|
+
var A = O.transformsData[x], X = {}, j = A.presets;
|
|
531
|
+
(j === void 0 ? [] : j).forEach(function(P) {
|
|
532
532
|
var R, D = s(P.split(":"), 3), It = D[0], Q = D[1], P = D[2], D = window.lax.presets[It];
|
|
533
533
|
D ? (R = D(Q, P), Object.keys(R).forEach(function(rt) {
|
|
534
534
|
A[rt] = R[rt];
|
|
@@ -545,14 +545,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
545
545
|
O.transforms[x] = X;
|
|
546
546
|
})(W);
|
|
547
547
|
}), i(this, "applyStyles", function(W) {
|
|
548
|
-
var gt, x, A, X = (gt = W, x = { transform: "", filter: "" }, A = { translateX: 1e-5, translateY: 1e-5, translateZ: 1e-5 }, Object.keys(gt).forEach(function(
|
|
549
|
-
var Z = gt[
|
|
550
|
-
b.includes(
|
|
548
|
+
var gt, x, A, X = (gt = W, x = { transform: "", filter: "" }, A = { translateX: 1e-5, translateY: 1e-5, translateZ: 1e-5 }, Object.keys(gt).forEach(function(j) {
|
|
549
|
+
var Z = gt[j], G = S.includes(j) ? "px" : L.includes(j) ? "deg" : "";
|
|
550
|
+
b.includes(j) ? A[j] = Z : u.includes(j) ? x.transform += "".concat(j, "(").concat(Z).concat(G, ") ") : g.includes(j) ? x.filter += "".concat(j, "(").concat(Z).concat(G, ") ") : x[j] = "".concat(Z).concat(G, " ");
|
|
551
551
|
}), x.transform = "translate3d(".concat(A.translateX, "px, ").concat(A.translateY, "px, ").concat(A.translateZ, "px) ").concat(x.transform), x);
|
|
552
|
-
Object.keys(X).forEach(function(
|
|
553
|
-
O.domElement.style.setProperty(
|
|
552
|
+
Object.keys(X).forEach(function(j) {
|
|
553
|
+
O.domElement.style.setProperty(j, X[j]);
|
|
554
554
|
});
|
|
555
|
-
}), this.selector = l, this.laxInstance = c, this.domElement = v, this.transformsData =
|
|
555
|
+
}), this.selector = l, this.laxInstance = c, this.domElement = v, this.transformsData = E, this.groupIndex = I;
|
|
556
556
|
var J = (I = At.style) === void 0 ? {} : I, At = At.onUpdate;
|
|
557
557
|
Object.keys(J).forEach(function(W) {
|
|
558
558
|
v.style.setProperty(W, J[W]);
|
|
@@ -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"), d = this.getObjVal(e, "data-100-top"), u = this.getObjVal(e, "data-center-bottom"),
|
|
592
|
+
let r = this.getObjVal(e, "data-top-bottom"), n = this.getObjVal(e, "data-top"), h = this.getObjVal(e, "data-50-top"), d = this.getObjVal(e, "data-100-top"), u = this.getObjVal(e, "data-center-bottom"), g = this.getObjVal(e, "data-center"), b = this.getObjVal(e, "data-center-top"), S = this.getObjVal(e, "data--400-bottom"), L = this.getObjVal(e, "data--300-bottom"), k = this.getObjVal(e, "data--200-bottom"), at = this.getObjVal(e, "data--150-bottom"), ft = this.getObjVal(e, "data--100-bottom"), Wt = 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"), l = this.getObjVal(e, "data-150-bottom"), c = this.getObjVal(e, "data-200-bottom"), v = this.getObjVal(e, "data-300-bottom"), E = this.getObjVal(e, "data-400-bottom"), O = this.getObjVal(e, "data-bottom-top"), I = this.getObjVal(e, "data-in"), J = this.getObjVal(e, "data-in-150"), At = this.getObjVal(e, "data-in-300"), W = this.getObjVal(e, "data-cen--150"), gt = this.getObjVal(e, "data-cen"), x = this.getObjVal(e, "data-cen-150"), A = this.getObjVal(e, "data-out--300"), X = this.getObjVal(e, "data-out--150"), j = this.getObjVal(e, "data-out"), Z = !1;
|
|
593
593
|
e.hasAttribute("data-xs") && (Z = !0);
|
|
594
594
|
let G = !1;
|
|
595
595
|
e.hasAttribute("data-sm") && (G = !0);
|
|
596
596
|
let R = !1;
|
|
597
597
|
e.hasAttribute("data-md") && (R = !0), e.hasAttribute("data-lg"), e.hasAttribute("data-xl");
|
|
598
|
-
let It = {}, Q = {}, P = {}, D = {}, rt = {}, _t = {}, ot = {}, Ot = {}, pt = {}, z = {}, lt = {}, tt = {}, et = {}, mt = {}, bt = {}, it = {}, yt = {}, q = {}, Et = {}, Vt = {}, dt = {}, Yt = {}, V = {}, Mt = {}, vt = {}, Pt = {}, qt = {}, Dt = {},
|
|
599
|
-
(i > 1280 || i > 970 && i <= 1280 && !R || i > 760 && i <= 970 && !G || i <= 760 && !Z) && (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"), tt = this.getObjVal(e, "data-t-900"), et = this.getObjVal(e, "data-t-1000"), mt = this.getObjVal(e, "data-t-1100"), bt = this.getObjVal(e, "data-t-1200"), it = 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"),
|
|
600
|
-
let H = P, B = D,
|
|
601
|
-
Ft < 730 ? (It = H, Q = B, P =
|
|
598
|
+
let It = {}, Q = {}, P = {}, D = {}, rt = {}, _t = {}, ot = {}, Ot = {}, pt = {}, z = {}, lt = {}, tt = {}, et = {}, mt = {}, bt = {}, it = {}, yt = {}, q = {}, Et = {}, Vt = {}, dt = {}, Yt = {}, V = {}, Mt = {}, vt = {}, Pt = {}, qt = {}, Dt = {}, p = {}, m = {}, y = {}, w = {}, C = {};
|
|
599
|
+
(i > 1280 || i > 970 && i <= 1280 && !R || i > 760 && i <= 970 && !G || i <= 760 && !Z) && (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"), tt = this.getObjVal(e, "data-t-900"), et = this.getObjVal(e, "data-t-1000"), mt = this.getObjVal(e, "data-t-1100"), bt = this.getObjVal(e, "data-t-1200"), it = 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 && R && (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") && (tt = this.getObjVal(e, "data-md-t-900")), e.hasAttribute("data-md-t-1000") && (et = 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") && (it = 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") && (j = this.getObjVal(e, "m-data-out")), (i > 760 && i <= 970 && G || i <= 760 && !Z && G) && (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") && (tt = this.getObjVal(e, "data-sm-t-900")), e.hasAttribute("data-sm-t-1000") && (et = 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") && (it = 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 && Z && (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") && (tt = this.getObjVal(e, "data-xs-t-900")), e.hasAttribute("data-xs-t-1000") && (et = 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") && (it = 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 H = P, B = D, _ = rt, $ = _t, M = ot, ht = Ot, F = pt, K = z, ct = lt, zt = tt, St = et, Xt = mt, st = bt, T = it, 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 = H, Q = B, P = _, D = $, rt = M, _t = ht, ot = F, Ot = K, pt = ct, z = zt, lt = St, tt = Xt, et = st, mt = T, bt = U, it = 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 ? (Q = H, P = B, D = _, rt = $, _t = M, ot = ht, Ot = F, pt = K, z = ct, lt = zt, tt = St, et = Xt, mt = st, bt = T, it = 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 = H, rt = B, _t = _, ot = $, Ot = M, pt = ht, z = F, lt = K, tt = ct, et = zt, mt = St, bt = Xt, it = st, yt = T, 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 = H, _t = B, ot = _, Ot = $, pt = M, z = ht, lt = F, tt = K, et = ct, mt = zt, bt = St, it = Xt, yt = st, q = T, 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, C = ue));
|
|
602
602
|
let f = {};
|
|
603
|
-
Object.keys(O).length !== 0 && (f = this.parseObj(O, "elInY", f)), Object.keys(
|
|
603
|
+
Object.keys(O).length !== 0 && (f = this.parseObj(O, "elInY", f)), Object.keys(E).length !== 0 && (f = this.parseObj(E, "elInY+50", f)), Object.keys(v).length !== 0 && (f = this.parseObj(v, "elInY+100", f)), Object.keys(c).length !== 0 && (f = this.parseObj(c, "elInY+150", f)), Object.keys(l).length !== 0 && (f = this.parseObj(l, "elInY+200", f)), Object.keys(kt).length !== 0 && (f = this.parseObj(kt, "elInY+250", f)), Object.keys(Lt).length !== 0 && (f = this.parseObj(Lt, "elInY+300", f)), Object.keys(Ct).length !== 0 && (f = this.parseObj(Ct, "elInY+350", f)), Object.keys(Wt).length !== 0 && (f = this.parseObj(Wt, "elInY+400", f)), Object.keys(ft).length !== 0 && (f = this.parseObj(ft, "elInY+450", f)), Object.keys(at).length !== 0 && (f = this.parseObj(at, "elInY+500", f)), Object.keys(k).length !== 0 && (f = this.parseObj(k, "elInY+550", f)), Object.keys(L).length !== 0 && (f = this.parseObj(L, "elInY+600", f)), Object.keys(S).length !== 0 && (f = this.parseObj(S, "elInY+650", f)), Object.keys(b).length !== 0 && (f = this.parseObj(b, "elCenterY-300", f)), Object.keys(g).length !== 0 && (f = this.parseObj(g, "elCenterY", f)), Object.keys(u).length !== 0 && (f = this.parseObj(u, "elCenterY+100", f)), Object.keys(d).length !== 0 && (f = this.parseObj(d, "elCenterY+200", f)), Object.keys(h).length !== 0 && (f = this.parseObj(h, "elCenterY+300", f)), Object.keys(n).length !== 0 && (f = this.parseObj(n, "elOutY-300", f)), Object.keys(r).length !== 0 && (f = this.parseObj(r, "elOutY", f)), Object.keys(I).length !== 0 && (f = this.parseObj(I, "elInY", f)), Object.keys(J).length !== 0 && (f = this.parseObj(J, "elInY+150", f)), Object.keys(At).length !== 0 && (f = this.parseObj(At, "elInY+300 ", f)), Object.keys(W).length !== 0 && (f = this.parseObj(W, "elCenterY-150", f)), Object.keys(gt).length !== 0 && (f = this.parseObj(gt, "elCenterY", f)), Object.keys(x).length !== 0 && (f = this.parseObj(x, "elCenterY+150", f)), Object.keys(A).length !== 0 && (f = this.parseObj(A, "elOutY-300 ", f)), Object.keys(X).length !== 0 && (f = this.parseObj(X, "elOutY-150 ", f)), Object.keys(j).length !== 0 && (f = this.parseObj(j, "elOutY", f)), Object.keys(It).length !== 0 && (f = this.parseObj(It, "elInY-200", f)), Object.keys(Q).length !== 0 && (f = this.parseObj(Q, "elInY-100", f)), Object.keys(P).length !== 0 && (f = this.parseObj(P, "elInY", f)), Object.keys(D).length !== 0 && (f = this.parseObj(D, "elInY+100", f)), Object.keys(rt).length !== 0 && (f = this.parseObj(rt, "elInY+200", f)), Object.keys(_t).length !== 0 && (f = this.parseObj(_t, "elInY+300 ", f)), Object.keys(ot).length !== 0 && (f = this.parseObj(ot, "elInY+400 ", f)), Object.keys(Ot).length !== 0 && (f = this.parseObj(Ot, "elInY+500 ", f)), Object.keys(pt).length !== 0 && (f = this.parseObj(pt, "elInY+600 ", f)), Object.keys(z).length !== 0 && (f = this.parseObj(z, "elInY+700 ", f)), Object.keys(lt).length !== 0 && (f = this.parseObj(lt, "elInY+800 ", f)), Object.keys(tt).length !== 0 && (f = this.parseObj(tt, "elInY+900 ", f)), Object.keys(et).length !== 0 && (f = this.parseObj(et, "elInY+1000 ", f)), Object.keys(mt).length !== 0 && (f = this.parseObj(mt, "elInY+1100 ", f)), Object.keys(bt).length !== 0 && (f = this.parseObj(bt, "elInY+1200 ", f)), Object.keys(it).length !== 0 && (f = this.parseObj(it, "elInY+1300 ", f)), Object.keys(yt).length !== 0 && (f = this.parseObj(yt, "elInY+1400 ", f)), Object.keys(q).length !== 0 && (f = this.parseObj(q, "elInY+1500 ", f)), Object.keys(Et).length !== 0 && (f = this.parseObj(Et, "elInY+1600 ", f)), Object.keys(Vt).length !== 0 && (f = this.parseObj(Vt, "elInY+1700 ", f)), Object.keys(dt).length !== 0 && (f = this.parseObj(dt, "elInY+1800 ", f)), Object.keys(Yt).length !== 0 && (f = this.parseObj(Yt, "elInY+1900 ", f)), Object.keys(V).length !== 0 && (f = this.parseObj(V, "elInY+2000 ", f)), Object.keys(Mt).length !== 0 && (f = this.parseObj(Mt, "elInY+2100 ", f)), Object.keys(vt).length !== 0 && (f = this.parseObj(vt, "elInY+2200 ", f)), Object.keys(Pt).length !== 0 && (f = this.parseObj(Pt, "elInY+2300 ", f)), Object.keys(qt).length !== 0 && (f = this.parseObj(qt, "elInY+2400 ", f)), Object.keys(Dt).length !== 0 && (f = this.parseObj(Dt, "elInY+2500 ", f)), Object.keys(p).length !== 0 && (f = this.parseObj(p, "elInY+2600 ", f)), Object.keys(m).length !== 0 && (f = this.parseObj(m, "elInY+2700 ", f)), Object.keys(y).length !== 0 && (f = this.parseObj(y, "elInY+2800 ", f)), Object.keys(w).length !== 0 && (f = this.parseObj(w, "elInY+2900 ", f)), Object.keys(C).length !== 0 && (f = this.parseObj(C, "elInY+3000 ", f)), e.style.transition = "", e.setAttribute("data-dummy-selector", "1"), Zt.addElements("[data-dummy-selector]", {
|
|
604
604
|
scrollY: f
|
|
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);
|
|
@@ -1562,26 +1562,26 @@ 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, d = 1, u = 4.5,
|
|
1565
|
+
let t = Fe(), i = t.width, s = t.height, e = !1, a = null, r = null, n = null, h = !1, d = 1, u = 4.5, g = 1, b = !1, S = !1, L = null, k = null, at = null, ft = null, Wt, Ct, Lt = 0, kt = 0, l = !1, c = !1, v = {}, E = {}, O = 0, I = 0, J;
|
|
1566
1566
|
const At = document.getElementById("glightbox-slider"), W = document.querySelector(".goverlay"), gt = new wi(At, {
|
|
1567
1567
|
touchStart: (x) => {
|
|
1568
1568
|
if (e = !0, (jt(x.targetTouches[0].target, "ginner-container") || Ht(x.targetTouches[0].target, ".gslide-desc") || x.targetTouches[0].target.nodeName.toLowerCase() == "a") && (e = !1), Ht(x.targetTouches[0].target, ".gslide-inline") && !jt(x.targetTouches[0].target.parentNode, "gslide-inline") && (e = !1), e) {
|
|
1569
|
-
if (
|
|
1569
|
+
if (E = x.targetTouches[0], v.pageX = x.targetTouches[0].pageX, v.pageY = x.targetTouches[0].pageY, O = x.targetTouches[0].clientX, I = x.targetTouches[0].clientY, a = o.activeSlide, r = a.querySelector(".gslide-media"), J = a.querySelector(".gslide-inline"), n = null, jt(r, "gslide-image") && (n = r.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (r = a.querySelector(".ginner-container")), wt(W, "greset"), x.pageX > 20 && x.pageX < window.innerWidth - 20)
|
|
1570
1570
|
return;
|
|
1571
1571
|
x.preventDefault();
|
|
1572
1572
|
}
|
|
1573
1573
|
},
|
|
1574
1574
|
touchMove: (x) => {
|
|
1575
|
-
if (!e || (
|
|
1575
|
+
if (!e || (E = x.targetTouches[0], b || S))
|
|
1576
1576
|
return;
|
|
1577
1577
|
if (J && J.offsetHeight > s) {
|
|
1578
|
-
const R = v.pageX -
|
|
1578
|
+
const R = v.pageX - E.pageX;
|
|
1579
1579
|
if (Math.abs(R) <= 13)
|
|
1580
1580
|
return !1;
|
|
1581
1581
|
}
|
|
1582
1582
|
h = !0;
|
|
1583
|
-
let A = x.targetTouches[0].clientX, X = x.targetTouches[0].clientY,
|
|
1584
|
-
Math.abs(
|
|
1583
|
+
let A = x.targetTouches[0].clientX, X = x.targetTouches[0].clientY, j = O - A, Z = I - X;
|
|
1584
|
+
Math.abs(j) > Math.abs(Z) ? (l = !1, c = !0) : (c = !1, l = !0), Wt = E.pageX - v.pageX, Lt = Wt * 100 / i, Ct = E.pageY - v.pageY, kt = Ct * 100 / s;
|
|
1585
1585
|
let G;
|
|
1586
1586
|
if (l && n && (G = 1 - Math.abs(Ct) / s, W.style.opacity = G, o.settings.touchFollowAxis && (Lt = 0)), c && (G = 1 - Math.abs(Wt) / i, r.style.opacity = G, o.settings.touchFollowAxis && (kt = 0)), !n)
|
|
1587
1587
|
return ye(r, `translate3d(${Lt}%, 0, 0)`);
|
|
@@ -1590,8 +1590,8 @@ function xi(o) {
|
|
|
1590
1590
|
touchEnd: () => {
|
|
1591
1591
|
if (!e)
|
|
1592
1592
|
return;
|
|
1593
|
-
if (h = !1,
|
|
1594
|
-
at =
|
|
1593
|
+
if (h = !1, S || b) {
|
|
1594
|
+
at = L, ft = k;
|
|
1595
1595
|
return;
|
|
1596
1596
|
}
|
|
1597
1597
|
const x = Math.abs(parseInt(kt)), A = Math.abs(parseInt(Lt));
|
|
@@ -1608,29 +1608,29 @@ function xi(o) {
|
|
|
1608
1608
|
}, 50);
|
|
1609
1609
|
},
|
|
1610
1610
|
multipointStart: () => {
|
|
1611
|
-
b = !0, d =
|
|
1611
|
+
b = !0, d = g || 1;
|
|
1612
1612
|
},
|
|
1613
1613
|
pinch: (x) => {
|
|
1614
1614
|
if (!n || h)
|
|
1615
1615
|
return !1;
|
|
1616
1616
|
b = !0, n.scaleX = n.scaleY = d * x.zoom;
|
|
1617
1617
|
let A = d * x.zoom;
|
|
1618
|
-
if (
|
|
1619
|
-
|
|
1618
|
+
if (S = !0, A <= 1) {
|
|
1619
|
+
S = !1, A = 1, ft = null, at = null, L = null, k = null, n.setAttribute("style", "");
|
|
1620
1620
|
return;
|
|
1621
1621
|
}
|
|
1622
|
-
A > u && (A = u), n.style.transform = `scale3d(${A}, ${A}, 1)`,
|
|
1622
|
+
A > u && (A = u), n.style.transform = `scale3d(${A}, ${A}, 1)`, g = A;
|
|
1623
1623
|
},
|
|
1624
1624
|
pressMove: (x) => {
|
|
1625
|
-
if (
|
|
1626
|
-
var A =
|
|
1627
|
-
at && (A = A + at), ft && (X = X + ft),
|
|
1628
|
-
let
|
|
1629
|
-
|
|
1625
|
+
if (S && !b) {
|
|
1626
|
+
var A = E.pageX - v.pageX, X = E.pageY - v.pageY;
|
|
1627
|
+
at && (A = A + at), ft && (X = X + ft), L = A, k = X;
|
|
1628
|
+
let j = `translate3d(${A}px, ${X}px, 0)`;
|
|
1629
|
+
g && (j += ` scale3d(${g}, ${g}, 1)`), ye(n, j);
|
|
1630
1630
|
}
|
|
1631
1631
|
},
|
|
1632
1632
|
swipe: (x) => {
|
|
1633
|
-
if (!
|
|
1633
|
+
if (!S) {
|
|
1634
1634
|
if (b) {
|
|
1635
1635
|
b = !1;
|
|
1636
1636
|
return;
|
|
@@ -1779,24 +1779,24 @@ 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 d = t.href, u = t?.videoProvider,
|
|
1782
|
+
let d = t.href, u = t?.videoProvider, g = !1;
|
|
1783
1783
|
r.style.maxWidth = t.width, ze(this.settings.plyr.js, "Plyr", () => {
|
|
1784
1784
|
if (!u && d.match(/vimeo\.com\/([0-9]*)/) && (u = "vimeo"), !u && (d.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || d.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || d.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)) && (u = "youtube"), u === "local" || !u) {
|
|
1785
1785
|
u = "local";
|
|
1786
|
-
let
|
|
1787
|
-
|
|
1786
|
+
let k = '<video id="' + a + '" ';
|
|
1787
|
+
k += `style="background:#000; max-width: ${t.width};" `, k += 'preload="metadata" ', k += 'x-webkit-airplay="allow" ', k += "playsinline ", k += "controls ", k += 'class="gvideo-local">', k += `<source src="${d}">`, k += "</video>", g = Ut(k);
|
|
1788
1788
|
}
|
|
1789
|
-
const b =
|
|
1789
|
+
const b = g || Ut(`<div id="${a}" data-plyr-provider="${u}" data-plyr-embed-id="${d}"></div>`);
|
|
1790
1790
|
Y(h, `${u}-video gvideo`), h.appendChild(b), h.setAttribute("data-id", a), h.setAttribute("data-index", i);
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1793
|
-
n[a] =
|
|
1791
|
+
const S = xt(this.settings.plyr, "config") ? this.settings.plyr.config : {}, L = new Plyr("#" + a, S);
|
|
1792
|
+
L.on("ready", (k) => {
|
|
1793
|
+
n[a] = k.detail.plyr, N(s) && s();
|
|
1794
1794
|
}), Ee(
|
|
1795
1795
|
() => o.querySelector("iframe") && o.querySelector("iframe").dataset.ready == "true",
|
|
1796
1796
|
() => {
|
|
1797
1797
|
this.resize(o);
|
|
1798
1798
|
}
|
|
1799
|
-
),
|
|
1799
|
+
), L.on("enterfullscreen", We), L.on("exitfullscreen", We);
|
|
1800
1800
|
});
|
|
1801
1801
|
}
|
|
1802
1802
|
function We(o) {
|
|
@@ -1890,10 +1890,10 @@ class Ti {
|
|
|
1890
1890
|
nt(s, (h, d) => {
|
|
1891
1891
|
n.push(";\\s?" + d);
|
|
1892
1892
|
}), n = n.join("\\s?:|"), a.trim() !== "" && nt(s, (h, d) => {
|
|
1893
|
-
const u = a,
|
|
1894
|
-
if (
|
|
1895
|
-
const
|
|
1896
|
-
s[d] = this.sanitizeValue(
|
|
1893
|
+
const u = a, g = "s?" + d + "s?:s?(.*?)(" + n + "s?:|$)", b = new RegExp(g), S = u.match(b);
|
|
1894
|
+
if (S && S.length && S[1]) {
|
|
1895
|
+
const L = S[1].trim().replace(/;\s*$/, "");
|
|
1896
|
+
s[d] = this.sanitizeValue(L);
|
|
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"), d = t.querySelector(".gslide-title"), u = t.querySelector(".gslide-desc"),
|
|
1969
|
+
let r = e.type, n = e.descPosition, h = t.querySelector(".gslide-media"), d = t.querySelector(".gslide-title"), u = t.querySelector(".gslide-desc"), g = t.querySelector(".gdesc-inner"), b = i, S = "gSlideTitle_" + this.index, L = "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 == "" ? g && g.parentNode.parentNode.removeChild(g.parentNode) : (d && e.title !== "" ? (d.id = S, d.innerHTML = e.title) : d.parentNode.removeChild(d), u && e.description !== "" ? (u.id = L, a && s.moreLength > 0 ? (e.smallDescription = this.slideShortDesc(e.description, s.moreLength, s.moreText), u.innerHTML = e.smallDescription, this.descriptionEvents(u, e)) : u.innerHTML = e.description) : u.parentNode.removeChild(u), Y(h.parentNode, `desc-${n}`), Y(g.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
|
}
|
|
@@ -1993,14 +1993,14 @@ class pe {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
if (r === "image") {
|
|
1995
1995
|
Ai(t, e, this.index, () => {
|
|
1996
|
-
const
|
|
1996
|
+
const k = t.querySelector("img");
|
|
1997
1997
|
e.draggable && new Be({
|
|
1998
|
-
dragEl:
|
|
1998
|
+
dragEl: k,
|
|
1999
1999
|
toleranceX: s.dragToleranceX,
|
|
2000
2000
|
toleranceY: s.dragToleranceY,
|
|
2001
2001
|
slide: t,
|
|
2002
2002
|
instance: this.instance
|
|
2003
|
-
}), e.zoomable &&
|
|
2003
|
+
}), e.zoomable && k.naturalWidth > k.offsetWidth && (Y(k, "zoomable"), new Oi(k, t, () => {
|
|
2004
2004
|
this.instance.resize();
|
|
2005
2005
|
})), N(b) && b();
|
|
2006
2006
|
});
|
|
@@ -2675,17 +2675,17 @@ class Re {
|
|
|
2675
2675
|
if (s) {
|
|
2676
2676
|
let d = xt(this.settings.plyr.config, "ratio") ? this.settings.plyr.config.ratio : "";
|
|
2677
2677
|
if (!d) {
|
|
2678
|
-
const
|
|
2679
|
-
d = `${
|
|
2680
|
-
}
|
|
2681
|
-
let u = d.split(":"),
|
|
2682
|
-
ve(
|
|
2683
|
-
let
|
|
2684
|
-
if (
|
|
2685
|
-
let
|
|
2678
|
+
const L = s.clientWidth, k = s.clientHeight, at = L / k;
|
|
2679
|
+
d = `${L / at}:${k / at}`;
|
|
2680
|
+
}
|
|
2681
|
+
let u = d.split(":"), g = this.settings.videosWidth, b = this.settings.videosWidth;
|
|
2682
|
+
ve(g) || g.indexOf("px") !== -1 ? b = parseInt(g) : g.indexOf("vw") !== -1 ? b = r * parseInt(g) / 100 : g.indexOf("vh") !== -1 ? b = n * parseInt(g) / 100 : g.indexOf("%") !== -1 ? b = r * parseInt(g) / 100 : b = parseInt(s.clientWidth);
|
|
2683
|
+
let S = b / (parseInt(u[0]) / parseInt(u[1]));
|
|
2684
|
+
if (S = Math.floor(S), h && (n = n - a.offsetHeight), b > r || S > n || n < S && r > b) {
|
|
2685
|
+
let L = s.offsetWidth, k = s.offsetHeight, at = n / k, ft = { width: L * at };
|
|
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 = `${g}`, h && a.setAttribute("style", `max-width: ${g};`);
|
|
2689
2689
|
}
|
|
2690
2690
|
}
|
|
2691
2691
|
/**
|
|
@@ -2830,8 +2830,8 @@ class Ci {
|
|
|
2830
2830
|
n = -h.scrollTop;
|
|
2831
2831
|
break;
|
|
2832
2832
|
case "End":
|
|
2833
|
-
const
|
|
2834
|
-
n =
|
|
2833
|
+
const g = h.scrollHeight - h.scrollTop - d;
|
|
2834
|
+
n = g > 0 ? g + 10 : 0;
|
|
2835
2835
|
break;
|
|
2836
2836
|
case "ArrowLeft":
|
|
2837
2837
|
r = -this.arrowScroll;
|
|
@@ -2858,8 +2858,8 @@ class Ci {
|
|
|
2858
2858
|
if (d < this.accelerationDelta) {
|
|
2859
2859
|
const u = (1 + 50 / d) / 2;
|
|
2860
2860
|
if (u > 1) {
|
|
2861
|
-
const
|
|
2862
|
-
i *=
|
|
2861
|
+
const g = Math.min(u, this.accelerationMax);
|
|
2862
|
+
i *= g, s *= g;
|
|
2863
2863
|
}
|
|
2864
2864
|
}
|
|
2865
2865
|
this.lastScrollTime = h, this._enqueueScroll(a, i, s), t.preventDefault();
|
|
@@ -2908,8 +2908,8 @@ 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], d = s - h.start, u = d >= this.animationTime,
|
|
2912
|
-
e +=
|
|
2911
|
+
const h = this.queue[n], d = s - h.start, u = d >= this.animationTime, g = u ? 1 : d / this.animationTime, b = this._pulse(g), S = h.x * b - h.lastX >> 0, L = h.y * b - h.lastY >> 0;
|
|
2912
|
+
e += S, a += L, h.lastX += S, h.lastY += L, u && 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)
|
|
2915
2915
|
requestAnimationFrame(i);
|
|
@@ -3028,9 +3028,12 @@ class Li {
|
|
|
3028
3028
|
if (e && typeof e.mount == "function")
|
|
3029
3029
|
try {
|
|
3030
3030
|
const a = this.parseOptions(i);
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3031
|
+
let r = i.querySelector(".grid-sortable");
|
|
3032
|
+
r || i.classList.contains("grid-sortable") && (r = i), r && Array.from(r.children).forEach((h, d) => {
|
|
3033
|
+
h.nodeType === 1 && h.tagName !== "STYLE" && h.tagName !== "SCRIPT" && h.setAttribute("data-index", d);
|
|
3034
|
+
}), i.hasAttribute("data-cb-original-content") || i.setAttribute("data-cb-original-content", i.innerHTML);
|
|
3035
|
+
const n = e.mount(i, a);
|
|
3036
|
+
this.components.set(i, n), i.setAttribute("data-cb-loaded", "true");
|
|
3034
3037
|
} catch (a) {
|
|
3035
3038
|
console.error(`[PluginManager] Failed to mount component "${s}":`, a);
|
|
3036
3039
|
}
|
|
@@ -3192,9 +3195,12 @@ class Li {
|
|
|
3192
3195
|
if (d && typeof d.mount == "function")
|
|
3193
3196
|
try {
|
|
3194
3197
|
const u = this.parseOptions(n);
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
+
let g = n.querySelector(".grid-sortable");
|
|
3199
|
+
g || n.classList.contains("grid-sortable") && (g = n), g && Array.from(g.children).forEach((S, L) => {
|
|
3200
|
+
S.nodeType === 1 && S.tagName !== "STYLE" && S.tagName !== "SCRIPT" && S.setAttribute("data-index", L);
|
|
3201
|
+
}), n.hasAttribute("data-cb-original-content") ? n.innerHTML = n.getAttribute("data-cb-original-content") : n.setAttribute("data-cb-original-content", n.innerHTML);
|
|
3202
|
+
const b = await d.mount(n, u);
|
|
3203
|
+
this.components.set(n, b), n.setAttribute("data-cb-loaded", "true"), r++;
|
|
3198
3204
|
} catch (u) {
|
|
3199
3205
|
console.error(`[PluginManager] Failed to mount component "${h}":`, u);
|
|
3200
3206
|
}
|
|
@@ -3508,9 +3514,9 @@ class Yi {
|
|
|
3508
3514
|
if (d.indexOf("#section") === 0) {
|
|
3509
3515
|
let u = d.replace("#section", "");
|
|
3510
3516
|
if (!isNaN(parseInt(u))) {
|
|
3511
|
-
let
|
|
3512
|
-
|
|
3513
|
-
|
|
3517
|
+
let g = document.querySelectorAll(".is-section"), b, S = 0;
|
|
3518
|
+
g.forEach(function(L) {
|
|
3519
|
+
L.classList.contains("is-section-navbar") || (S === u - 1 && (b = L), S++);
|
|
3514
3520
|
}), b && this.scrollIt(b, 1e3, "easeInQuad"), h.preventDefault();
|
|
3515
3521
|
}
|
|
3516
3522
|
} else
|
|
@@ -3583,10 +3589,10 @@ class Yi {
|
|
|
3583
3589
|
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) {
|
|
3584
3590
|
s <= 970 && n.querySelector(".is-box") && (n.querySelectorAll(".is-box").forEach((d) => {
|
|
3585
3591
|
const u = n.cloneNode(!1);
|
|
3586
|
-
d.getAttributeNames().map((
|
|
3587
|
-
|
|
3588
|
-
}), u.classList.add("is-box"), d.classList.forEach((
|
|
3589
|
-
(
|
|
3592
|
+
d.getAttributeNames().map((g) => {
|
|
3593
|
+
g.indexOf("data-") !== -1 && u.setAttribute(g, d.getAttribute(g));
|
|
3594
|
+
}), u.classList.add("is-box"), d.classList.forEach((g) => {
|
|
3595
|
+
(g.indexOf("is-box-") !== -1 || g.indexOf("is-content-") !== -1 || g.indexOf("box-autofit") !== -1 || g.indexOf("is-light-text") !== -1 || g.indexOf("is-dark-text") !== -1 || g.indexOf("is-align-") !== -1 || g.indexOf("type-") !== -1 || g.indexOf("block-click") !== -1 || g.indexOf("hover-zoom") !== -1) && u.classList.add(g);
|
|
3590
3596
|
}), u.setAttribute("data-section-clone", ""), u.innerHTML = d.innerHTML, n.parentNode.insertBefore(u, n);
|
|
3591
3597
|
}), n.setAttribute("data-section-original", ""), n.style.display = "none");
|
|
3592
3598
|
}), e ? a = document.querySelectorAll(".is-wrapper .section-pin") : a = document.querySelectorAll(".is-wrapper:not(.is-edit) .section-pin"), a.forEach(function(n) {
|
|
@@ -3597,9 +3603,9 @@ class Yi {
|
|
|
3597
3603
|
const r = (n) => {
|
|
3598
3604
|
document.querySelectorAll(".is-section").forEach((d) => {
|
|
3599
3605
|
const u = d.getBoundingClientRect().top;
|
|
3600
|
-
let
|
|
3601
|
-
d.parentNode.classList.contains("pin-wrap") ? (
|
|
3602
|
-
|
|
3606
|
+
let g, b;
|
|
3607
|
+
d.parentNode.classList.contains("pin-wrap") ? (g = d.parentNode.nextElementSibling, b = d.parentNode.previousElementSibling) : (g = d.nextElementSibling, b = d.previousElementSibling), g && g.classList.contains("pin-wrap") && (g = g.querySelector(".is-section")), b && b.classList.contains("pin-wrap") && (b = b.querySelector(".is-section")), u <= 0 && ((d.classList.contains("no-spacing") || d.classList.contains("pin-overlap")) && d.classList.add("section-inview"), document.querySelectorAll(".is-section").forEach((L) => {
|
|
3608
|
+
L !== d && L.classList.remove("section-inview");
|
|
3603
3609
|
}));
|
|
3604
3610
|
});
|
|
3605
3611
|
};
|
|
@@ -3725,10 +3731,10 @@ class Yi {
|
|
|
3725
3731
|
n ? h = n.querySelectorAll(".is-lightbox") : document.querySelectorAll(".is-lightbox,.block-click").forEach((u) => {
|
|
3726
3732
|
u.closest("[data-gallery]") || h.push(u);
|
|
3727
3733
|
}), h.forEach((d, u) => {
|
|
3728
|
-
let
|
|
3729
|
-
|
|
3730
|
-
href:
|
|
3731
|
-
}), t ===
|
|
3734
|
+
let g = d.getAttribute("href");
|
|
3735
|
+
g || (g = d.getAttribute("data-modal-url")), e.push({
|
|
3736
|
+
href: g
|
|
3737
|
+
}), t === g && (a = u);
|
|
3732
3738
|
});
|
|
3733
3739
|
}
|
|
3734
3740
|
const r = document.activeElement;
|
|
@@ -3823,9 +3829,9 @@ class Yi {
|
|
|
3823
3829
|
let n = [];
|
|
3824
3830
|
const h = r.attributes;
|
|
3825
3831
|
for (let d = 0; d < h.length; d++) {
|
|
3826
|
-
let
|
|
3827
|
-
if (
|
|
3828
|
-
const b = parseInt(
|
|
3832
|
+
let g = h[d].name.match(/^data--h-(\d+)$/);
|
|
3833
|
+
if (g) {
|
|
3834
|
+
const b = parseInt(g[1], 10);
|
|
3829
3835
|
n.push(b);
|
|
3830
3836
|
}
|
|
3831
3837
|
}
|
|
@@ -3834,21 +3840,21 @@ class Yi {
|
|
|
3834
3840
|
const u = n[d];
|
|
3835
3841
|
if (d === 0) {
|
|
3836
3842
|
if (a > u) {
|
|
3837
|
-
let
|
|
3838
|
-
|
|
3843
|
+
let g = r.getAttribute("data--h");
|
|
3844
|
+
g ? r.style.height = g : r.style.height = "";
|
|
3839
3845
|
}
|
|
3840
3846
|
} else {
|
|
3841
|
-
const
|
|
3842
|
-
if (
|
|
3843
|
-
let b = r.getAttribute("data--h-" +
|
|
3847
|
+
const g = n[d - 1];
|
|
3848
|
+
if (g >= a && a > u) {
|
|
3849
|
+
let b = r.getAttribute("data--h-" + g);
|
|
3844
3850
|
b && (r.style.height = b);
|
|
3845
3851
|
}
|
|
3846
3852
|
}
|
|
3847
3853
|
}
|
|
3848
3854
|
if (n.length > 0 && n[n.length - 1] >= a) {
|
|
3849
3855
|
const u = n[n.length - 1];
|
|
3850
|
-
let
|
|
3851
|
-
|
|
3856
|
+
let g = r.getAttribute("data--h-" + u);
|
|
3857
|
+
g && (r.style.height = g);
|
|
3852
3858
|
}
|
|
3853
3859
|
}), document.querySelectorAll(".is-block").forEach((r) => {
|
|
3854
3860
|
if (!r.classList.contains("locked")) {
|
|
@@ -3860,17 +3866,17 @@ class Yi {
|
|
|
3860
3866
|
const h = r.attributes;
|
|
3861
3867
|
for (let d = 0; d < h.length; d++) {
|
|
3862
3868
|
const u = h[d].name;
|
|
3863
|
-
let
|
|
3864
|
-
if (
|
|
3865
|
-
const b = parseInt(
|
|
3869
|
+
let g = u.match(/^data--t-(\d+)$/);
|
|
3870
|
+
if (g) {
|
|
3871
|
+
const b = parseInt(g[1], 10);
|
|
3866
3872
|
n.push(b);
|
|
3867
3873
|
}
|
|
3868
|
-
if (
|
|
3869
|
-
const b = parseInt(
|
|
3874
|
+
if (g = u.match(/^data--w-(\d+)$/), g) {
|
|
3875
|
+
const b = parseInt(g[1], 10);
|
|
3870
3876
|
n.push(b);
|
|
3871
3877
|
}
|
|
3872
|
-
if (
|
|
3873
|
-
const b = parseInt(
|
|
3878
|
+
if (g = u.match(/^data--transform-(\d+)$/), g) {
|
|
3879
|
+
const b = parseInt(g[1], 10);
|
|
3874
3880
|
n.push(b);
|
|
3875
3881
|
}
|
|
3876
3882
|
}
|
|
@@ -3880,8 +3886,8 @@ class Yi {
|
|
|
3880
3886
|
if (d === 0)
|
|
3881
3887
|
a > u && t.apply(r, 1e4, e);
|
|
3882
3888
|
else {
|
|
3883
|
-
const
|
|
3884
|
-
|
|
3889
|
+
const g = n[d - 1];
|
|
3890
|
+
g >= a && a > u && t.apply(r, g, e);
|
|
3885
3891
|
}
|
|
3886
3892
|
}
|
|
3887
3893
|
if (n.length > 0) {
|