@innovastudio/contentbox-runtime-base 1.0.13 → 1.0.15
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,46 +8,46 @@ 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,
|
|
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, c = parseInt, f = typeof i == "object" && i && i.Object === Object && i, b = typeof self == "object" && self && self.Object === Object && self, _ = f || b || Function("return this")(), S = Object.prototype.toString, T = Math.max, K = Math.min, ft = function() {
|
|
12
|
+
return _.Date.now();
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
var w,
|
|
14
|
+
function Bt(p, m, y) {
|
|
15
|
+
var w, k, W, H, E, $, M = 0, ht = !1, F = !1, J = !0;
|
|
16
16
|
if (typeof p != "function") throw new TypeError(s);
|
|
17
|
-
function ct(
|
|
18
|
-
var U = w, ut =
|
|
19
|
-
return w =
|
|
17
|
+
function ct(C) {
|
|
18
|
+
var U = w, ut = k;
|
|
19
|
+
return w = k = void 0, M = C, H = p.apply(ut, U);
|
|
20
20
|
}
|
|
21
|
-
function zt(
|
|
22
|
-
var U =
|
|
23
|
-
return $ === void 0 || U >= m || U < 0 || F &&
|
|
21
|
+
function zt(C) {
|
|
22
|
+
var U = C - $;
|
|
23
|
+
return $ === void 0 || U >= m || U < 0 || F && C - M >= W;
|
|
24
24
|
}
|
|
25
25
|
function St() {
|
|
26
|
-
var
|
|
27
|
-
if (zt(
|
|
28
|
-
|
|
26
|
+
var C = ft();
|
|
27
|
+
if (zt(C)) return Xt(C);
|
|
28
|
+
E = setTimeout(St, (function(U) {
|
|
29
29
|
var ut = m - (U - $);
|
|
30
|
-
return F ?
|
|
31
|
-
})(
|
|
30
|
+
return F ? K(ut, W - (U - M)) : ut;
|
|
31
|
+
})(C));
|
|
32
32
|
}
|
|
33
|
-
function Xt(
|
|
34
|
-
return
|
|
33
|
+
function Xt(C) {
|
|
34
|
+
return E = void 0, J && w ? ct(C) : (w = k = void 0, H);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
var
|
|
38
|
-
if (w = arguments,
|
|
39
|
-
if (
|
|
40
|
-
return M = ut,
|
|
36
|
+
function nt() {
|
|
37
|
+
var C = ft(), U = zt(C);
|
|
38
|
+
if (w = arguments, k = this, $ = C, U) {
|
|
39
|
+
if (E === void 0) return (function(ut) {
|
|
40
|
+
return M = ut, E = setTimeout(St, m), ht ? ct(ut) : H;
|
|
41
41
|
})($);
|
|
42
|
-
if (F) return
|
|
42
|
+
if (F) return E = setTimeout(St, m), ct($);
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return E === void 0 && (E = setTimeout(St, m)), H;
|
|
45
45
|
}
|
|
46
|
-
return m = Lt(m) || 0, Ct(y) && (ht = !!y.leading,
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
return
|
|
50
|
-
},
|
|
46
|
+
return m = Lt(m) || 0, Ct(y) && (ht = !!y.leading, W = (F = "maxWait" in y) ? T(Lt(y.maxWait) || 0, m) : W, J = "trailing" in y ? !!y.trailing : J), nt.cancel = function() {
|
|
47
|
+
E !== void 0 && clearTimeout(E), M = 0, w = $ = k = E = void 0;
|
|
48
|
+
}, nt.flush = function() {
|
|
49
|
+
return E === void 0 ? H : Xt(ft());
|
|
50
|
+
}, nt;
|
|
51
51
|
}
|
|
52
52
|
function Ct(p) {
|
|
53
53
|
var m = typeof p;
|
|
@@ -56,9 +56,9 @@ function Qe() {
|
|
|
56
56
|
function Lt(p) {
|
|
57
57
|
if (typeof p == "number") return p;
|
|
58
58
|
if ((function(w) {
|
|
59
|
-
return typeof w == "symbol" || /* @__PURE__ */ (function(
|
|
60
|
-
return !!
|
|
61
|
-
})(w) &&
|
|
59
|
+
return typeof w == "symbol" || /* @__PURE__ */ (function(k) {
|
|
60
|
+
return !!k && typeof k == "object";
|
|
61
|
+
})(w) && S.call(w) == a;
|
|
62
62
|
})(p)) return e;
|
|
63
63
|
if (Ct(p)) {
|
|
64
64
|
var m = typeof p.valueOf == "function" ? p.valueOf() : p;
|
|
@@ -67,13 +67,13 @@ 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 || d.test(p) ?
|
|
70
|
+
return y || d.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
|
-
var w = !0,
|
|
73
|
+
var w = !0, k = !0;
|
|
74
74
|
if (typeof p != "function") throw new TypeError(s);
|
|
75
|
-
return Ct(y) && (w = "leading" in y ? !!y.leading : w,
|
|
76
|
-
}, l = "Expected a function",
|
|
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
|
+
}, l = "Expected a function", u = NaN, v = "[object Symbol]", j = /^\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")(), A = Object.prototype.toString, X = Math.max, L = Math.min, Z = function() {
|
|
77
77
|
return x.Date.now();
|
|
78
78
|
};
|
|
79
79
|
function G(p) {
|
|
@@ -83,65 +83,65 @@ function Qe() {
|
|
|
83
83
|
function R(p) {
|
|
84
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(k) {
|
|
87
|
+
return !!k && typeof k == "object";
|
|
88
88
|
})(w) && A.call(w) == v;
|
|
89
|
-
})(p)) return
|
|
89
|
+
})(p)) return u;
|
|
90
90
|
if (G(p)) {
|
|
91
91
|
var m = typeof p.valueOf == "function" ? p.valueOf() : p;
|
|
92
92
|
p = G(m) ? m + "" : m;
|
|
93
93
|
}
|
|
94
94
|
if (typeof p != "string") return p === 0 ? p : +p;
|
|
95
|
-
p = p.replace(
|
|
95
|
+
p = p.replace(j, "");
|
|
96
96
|
var y = I.test(p);
|
|
97
|
-
return y ||
|
|
97
|
+
return y || tt.test(p) ? At(p.slice(2), y ? 2 : 8) : O.test(p) ? u : +p;
|
|
98
98
|
}
|
|
99
99
|
var It = function(p, m, y) {
|
|
100
|
-
var w,
|
|
100
|
+
var w, k, W, H, E, $, M = 0, ht = !1, F = !1, J = !0;
|
|
101
101
|
if (typeof p != "function") throw new TypeError(l);
|
|
102
|
-
function ct(
|
|
103
|
-
var U = w, ut =
|
|
104
|
-
return w =
|
|
102
|
+
function ct(C) {
|
|
103
|
+
var U = w, ut = k;
|
|
104
|
+
return w = k = void 0, M = C, H = p.apply(ut, U);
|
|
105
105
|
}
|
|
106
|
-
function zt(
|
|
107
|
-
var U =
|
|
108
|
-
return $ === void 0 || U >= m || U < 0 || F &&
|
|
106
|
+
function zt(C) {
|
|
107
|
+
var U = C - $;
|
|
108
|
+
return $ === void 0 || U >= m || U < 0 || F && C - M >= W;
|
|
109
109
|
}
|
|
110
110
|
function St() {
|
|
111
|
-
var
|
|
112
|
-
if (zt(
|
|
113
|
-
|
|
111
|
+
var C = Z();
|
|
112
|
+
if (zt(C)) return Xt(C);
|
|
113
|
+
E = setTimeout(St, (function(U) {
|
|
114
114
|
var ut = m - (U - $);
|
|
115
|
-
return F ?
|
|
116
|
-
})(
|
|
115
|
+
return F ? L(ut, W - (U - M)) : ut;
|
|
116
|
+
})(C));
|
|
117
117
|
}
|
|
118
|
-
function Xt(
|
|
119
|
-
return
|
|
118
|
+
function Xt(C) {
|
|
119
|
+
return E = void 0, J && w ? ct(C) : (w = k = void 0, H);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
var
|
|
123
|
-
if (w = arguments,
|
|
124
|
-
if (
|
|
125
|
-
return M = ut,
|
|
121
|
+
function nt() {
|
|
122
|
+
var C = Z(), U = zt(C);
|
|
123
|
+
if (w = arguments, k = this, $ = C, U) {
|
|
124
|
+
if (E === void 0) return (function(ut) {
|
|
125
|
+
return M = ut, E = setTimeout(St, m), ht ? ct(ut) : H;
|
|
126
126
|
})($);
|
|
127
|
-
if (F) return
|
|
127
|
+
if (F) return E = setTimeout(St, m), ct($);
|
|
128
128
|
}
|
|
129
|
-
return
|
|
129
|
+
return E === void 0 && (E = setTimeout(St, m)), H;
|
|
130
130
|
}
|
|
131
|
-
return m = R(m) || 0, G(y) && (ht = !!y.leading,
|
|
132
|
-
|
|
133
|
-
},
|
|
134
|
-
return
|
|
135
|
-
},
|
|
131
|
+
return m = R(m) || 0, G(y) && (ht = !!y.leading, W = (F = "maxWait" in y) ? X(R(y.maxWait) || 0, m) : W, J = "trailing" in y ? !!y.trailing : J), nt.cancel = function() {
|
|
132
|
+
E !== void 0 && clearTimeout(E), M = 0, w = $ = k = E = void 0;
|
|
133
|
+
}, nt.flush = function() {
|
|
134
|
+
return E === void 0 ? H : Xt(Z());
|
|
135
|
+
}, nt;
|
|
136
136
|
}, Q = function() {
|
|
137
137
|
};
|
|
138
138
|
function P(p) {
|
|
139
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
|
|
143
|
-
for (
|
|
144
|
-
if ((
|
|
141
|
+
if ((function k(W) {
|
|
142
|
+
var H = void 0, E = void 0;
|
|
143
|
+
for (H = 0; H < W.length; H += 1)
|
|
144
|
+
if ((E = W[H]).dataset && E.dataset.aos || E.children && k(E.children)) return !0;
|
|
145
145
|
return !1;
|
|
146
146
|
})(y.concat(w))) return Q();
|
|
147
147
|
});
|
|
@@ -159,8 +159,8 @@ function Qe() {
|
|
|
159
159
|
}, ot = /* @__PURE__ */ (function() {
|
|
160
160
|
function p(m, y) {
|
|
161
161
|
for (var w = 0; w < y.length; w++) {
|
|
162
|
-
var
|
|
163
|
-
|
|
162
|
+
var k = y[w];
|
|
163
|
+
k.enumerable = k.enumerable || !1, k.configurable = !0, "value" in k && (k.writable = !0), Object.defineProperty(m, k.key, k);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
return function(m, y, w) {
|
|
@@ -172,8 +172,8 @@ function Qe() {
|
|
|
172
172
|
for (var w in y) Object.prototype.hasOwnProperty.call(y, w) && (p[w] = y[w]);
|
|
173
173
|
}
|
|
174
174
|
return p;
|
|
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,
|
|
176
|
-
function
|
|
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, et = /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
|
+
function it() {
|
|
177
177
|
return navigator.userAgent || navigator.vendor || window.opera || "";
|
|
178
178
|
}
|
|
179
179
|
var mt = new ((function() {
|
|
@@ -181,11 +181,11 @@ function Qe() {
|
|
|
181
181
|
_t(this, p);
|
|
182
182
|
}
|
|
183
183
|
return ot(p, [{ key: "phone", value: function() {
|
|
184
|
-
var m =
|
|
184
|
+
var m = it();
|
|
185
185
|
return !(!pt.test(m) && !z.test(m.substr(0, 4)));
|
|
186
186
|
} }, { key: "mobile", value: function() {
|
|
187
|
-
var m =
|
|
188
|
-
return !(!lt.test(m) && !
|
|
187
|
+
var m = it();
|
|
188
|
+
return !(!lt.test(m) && !et.test(m.substr(0, 4)));
|
|
189
189
|
} }, { key: "tablet", value: function() {
|
|
190
190
|
return this.mobile() && !this.phone();
|
|
191
191
|
} }, { key: "ie11", value: function() {
|
|
@@ -194,21 +194,21 @@ function Qe() {
|
|
|
194
194
|
})())(), bt = function(p, m) {
|
|
195
195
|
var y = void 0;
|
|
196
196
|
return mt.ie11() ? (y = document.createEvent("CustomEvent")).initCustomEvent(p, !0, !0, { detail: m }) : y = new CustomEvent(p, { detail: m }), document.dispatchEvent(y);
|
|
197
|
-
},
|
|
197
|
+
}, st = function(p) {
|
|
198
198
|
return p.forEach(function(m, y) {
|
|
199
|
-
return (function(w,
|
|
200
|
-
var
|
|
199
|
+
return (function(w, k) {
|
|
200
|
+
var W = w.options, H = w.position, E = 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
|
+
})(E, W.animatedClassNames), bt("aos:out", E), w.options.id && bt("aos:in:" + w.options.id, E), w.animated = !1);
|
|
206
206
|
});
|
|
207
|
-
|
|
207
|
+
W.mirror && k >= H.out && !W.once ? $() : 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
|
-
})(
|
|
211
|
+
})(E, W.animatedClassNames), bt("aos:in", E), w.options.id && bt("aos:in:" + w.options.id, E), w.animated = !0) : w.animated && !W.once && $();
|
|
212
212
|
})(m, window.pageYOffset);
|
|
213
213
|
});
|
|
214
214
|
}, yt = function(p) {
|
|
@@ -223,45 +223,45 @@ function Qe() {
|
|
|
223
223
|
return w || y;
|
|
224
224
|
}, Et = function(p, m) {
|
|
225
225
|
return p.forEach(function(y, w) {
|
|
226
|
-
var
|
|
226
|
+
var k = q(y.node, "mirror", m.mirror), W = q(y.node, "once", m.once), H = q(y.node, "id"), E = m.useClassNames && y.node.getAttribute("data-aos"), $ = [m.animatedClassName].concat(E ? E.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
|
-
var
|
|
231
|
-
ct && document.querySelectorAll(ct) && (
|
|
232
|
-
var
|
|
230
|
+
var J = window.innerHeight, ct = q(M, "anchor"), zt = q(M, "anchor-placement"), St = Number(q(M, "offset", zt ? 0 : ht)), Xt = zt || F, nt = M;
|
|
231
|
+
ct && document.querySelectorAll(ct) && (nt = document.querySelectorAll(ct)[0]);
|
|
232
|
+
var C = yt(nt).top - J;
|
|
233
233
|
switch (Xt) {
|
|
234
234
|
case "top-bottom":
|
|
235
235
|
break;
|
|
236
236
|
case "center-bottom":
|
|
237
|
-
|
|
237
|
+
C += nt.offsetHeight / 2;
|
|
238
238
|
break;
|
|
239
239
|
case "bottom-bottom":
|
|
240
|
-
|
|
240
|
+
C += nt.offsetHeight;
|
|
241
241
|
break;
|
|
242
242
|
case "top-center":
|
|
243
|
-
|
|
243
|
+
C += J / 2;
|
|
244
244
|
break;
|
|
245
245
|
case "center-center":
|
|
246
|
-
|
|
246
|
+
C += J / 2 + nt.offsetHeight / 2;
|
|
247
247
|
break;
|
|
248
248
|
case "bottom-center":
|
|
249
|
-
|
|
249
|
+
C += J / 2 + nt.offsetHeight;
|
|
250
250
|
break;
|
|
251
251
|
case "top-top":
|
|
252
|
-
|
|
252
|
+
C += J;
|
|
253
253
|
break;
|
|
254
254
|
case "bottom-top":
|
|
255
|
-
|
|
255
|
+
C += J + nt.offsetHeight;
|
|
256
256
|
break;
|
|
257
257
|
case "center-top":
|
|
258
|
-
|
|
258
|
+
C += J + nt.offsetHeight / 2;
|
|
259
259
|
}
|
|
260
|
-
return
|
|
261
|
-
})(y.node, m.offset, m.anchorPlacement), out:
|
|
262
|
-
var F = q(M, "anchor"),
|
|
263
|
-
return F && document.querySelectorAll(F) && (ct = document.querySelectorAll(F)[0]), yt(ct).top + ct.offsetHeight -
|
|
264
|
-
})(y.node, m.offset) }, y.options = { once:
|
|
260
|
+
return C + St;
|
|
261
|
+
})(y.node, m.offset, m.anchorPlacement), out: k && (function(M, ht) {
|
|
262
|
+
var F = q(M, "anchor"), J = q(M, "offset", ht), ct = M;
|
|
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: $, id: H };
|
|
265
265
|
}), p;
|
|
266
266
|
}, Vt = function() {
|
|
267
267
|
var p = document.querySelectorAll("[data-aos]");
|
|
@@ -271,8 +271,8 @@ function Qe() {
|
|
|
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() {
|
|
272
272
|
return document.all && !window.atob;
|
|
273
273
|
}, vt = function() {
|
|
274
|
-
arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Yt = !0), Yt && (dt = Et(dt, V),
|
|
275
|
-
|
|
274
|
+
arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Yt = !0), Yt && (dt = Et(dt, V), st(dt), window.addEventListener("scroll", kt(function() {
|
|
275
|
+
st(dt, V.once);
|
|
276
276
|
}, V.throttleDelay)));
|
|
277
277
|
}, Pt = function() {
|
|
278
278
|
if (dt = Vt(), Dt(V.disable) || Mt()) return qt();
|
|
@@ -303,46 +303,46 @@ const Je = /* @__PURE__ */ je(Ke);
|
|
|
303
303
|
var Oe = { exports: {} }, Ye;
|
|
304
304
|
function ti() {
|
|
305
305
|
return Ye || (Ye = 1, (function(o) {
|
|
306
|
-
function t(d,
|
|
307
|
-
if (!(d instanceof
|
|
306
|
+
function t(d, c) {
|
|
307
|
+
if (!(d instanceof c)) throw new TypeError("Cannot call a class as a function");
|
|
308
308
|
}
|
|
309
|
-
function i(d,
|
|
310
|
-
return
|
|
309
|
+
function i(d, c, f) {
|
|
310
|
+
return c in d ? Object.defineProperty(d, c, { value: f, enumerable: !0, configurable: !0, writable: !0 }) : d[c] = f, d;
|
|
311
311
|
}
|
|
312
|
-
function s(d,
|
|
313
|
-
return h(d) || n(d,
|
|
312
|
+
function s(d, c) {
|
|
313
|
+
return h(d) || n(d, c) || a(d, 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(d,
|
|
319
|
+
function a(d, c) {
|
|
320
320
|
if (d) {
|
|
321
|
-
if (typeof d == "string") return r(d,
|
|
322
|
-
var
|
|
323
|
-
return
|
|
321
|
+
if (typeof d == "string") return r(d, c);
|
|
322
|
+
var f = Object.prototype.toString.call(d).slice(8, -1);
|
|
323
|
+
return f === "Object" && d.constructor && (f = d.constructor.name), f === "Map" || f === "Set" ? Array.from(d) : f === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f) ? r(d, c) : void 0;
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
function r(d,
|
|
327
|
-
(
|
|
328
|
-
for (var
|
|
326
|
+
function r(d, c) {
|
|
327
|
+
(c == null || c > d.length) && (c = d.length);
|
|
328
|
+
for (var f = 0, b = new Array(c); f < c; f++) b[f] = d[f];
|
|
329
329
|
return b;
|
|
330
330
|
}
|
|
331
|
-
function n(d,
|
|
331
|
+
function n(d, c) {
|
|
332
332
|
if (typeof Symbol < "u" && Symbol.iterator in Object(d)) {
|
|
333
|
-
var
|
|
333
|
+
var f = [], b = !0, _ = !1, S = void 0;
|
|
334
334
|
try {
|
|
335
|
-
for (var
|
|
335
|
+
for (var T, K = d[Symbol.iterator](); !(b = (T = K.next()).done) && (f.push(T.value), !c || f.length !== c); b = !0) ;
|
|
336
336
|
} catch (ft) {
|
|
337
|
-
|
|
337
|
+
_ = !0, S = ft;
|
|
338
338
|
} finally {
|
|
339
339
|
try {
|
|
340
|
-
b ||
|
|
340
|
+
b || K.return == null || K.return();
|
|
341
341
|
} finally {
|
|
342
|
-
if (
|
|
342
|
+
if (_) throw S;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
return
|
|
345
|
+
return f;
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
function h(d) {
|
|
@@ -352,43 +352,43 @@ 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
|
|
356
|
-
return
|
|
357
|
-
}, fadeIn: function(l,
|
|
358
|
-
return { opacity: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length &&
|
|
359
|
-
}, fadeOut: function(l,
|
|
360
|
-
return { opacity: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [1, 1 < arguments.length &&
|
|
361
|
-
}, blurInOut: function(l,
|
|
362
|
-
return
|
|
363
|
-
}, blurIn: function(l,
|
|
364
|
-
return { blur: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length &&
|
|
365
|
-
}, blurOut: function(l,
|
|
366
|
-
return { opacity: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [0, 1 < arguments.length &&
|
|
367
|
-
}, scaleInOut: function(l,
|
|
368
|
-
return
|
|
369
|
-
}, scaleIn: function(l,
|
|
370
|
-
return { scale: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length &&
|
|
371
|
-
}, scaleOut: function(l,
|
|
372
|
-
return { scale: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [1, 1 < arguments.length &&
|
|
373
|
-
}, slideX: function(l,
|
|
374
|
-
return { translateX: [["elInY", 0 < arguments.length && l !== void 0 ? l : 0], [0, 1 < arguments.length &&
|
|
375
|
-
}, slideY: function(l,
|
|
376
|
-
return { translateY: [["elInY", 0 < arguments.length && l !== void 0 ? l : 0], [0, 1 < arguments.length &&
|
|
377
|
-
}, spin: function(l,
|
|
378
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotate: [[0, l], [0, 1 < arguments.length &&
|
|
379
|
-
}, flipX: function(l,
|
|
380
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotateX: [[0, l], [0, 1 < arguments.length &&
|
|
381
|
-
}, flipY: function(l,
|
|
382
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotateY: [[0, l], [0, 1 < arguments.length &&
|
|
383
|
-
}, jiggle: function(l,
|
|
384
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 50,
|
|
385
|
-
}, seesaw: function(l,
|
|
386
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 50,
|
|
387
|
-
}, zigzag: function(l,
|
|
388
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 100,
|
|
389
|
-
}, hueRotate: function(l,
|
|
390
|
-
return l = 0 < arguments.length && l !== void 0 ? l : 600, { "hue-rotate": [[0, l], [0, 1 < arguments.length &&
|
|
391
|
-
} }, ft = (
|
|
355
|
+
var c, f, b, _, S, T, K = { fadeInOut: function(l, u) {
|
|
356
|
+
return u = 1 < arguments.length && u !== void 0 ? u : 0, { opacity: [d(0 < arguments.length && l !== void 0 ? l : 30), [u, 1, 1, 1, u]] };
|
|
357
|
+
}, fadeIn: function(l, u) {
|
|
358
|
+
return { opacity: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length && u !== void 0 ? u : 0, 1]] };
|
|
359
|
+
}, fadeOut: function(l, u) {
|
|
360
|
+
return { opacity: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [1, 1 < arguments.length && u !== void 0 ? u : 0]] };
|
|
361
|
+
}, blurInOut: function(l, u) {
|
|
362
|
+
return u = 1 < arguments.length && u !== void 0 ? u : 20, { blur: [d(0 < arguments.length && l !== void 0 ? l : 100), [u, 0, 0, 0, u]] };
|
|
363
|
+
}, blurIn: function(l, u) {
|
|
364
|
+
return { blur: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length && u !== void 0 ? u : 20, 0]] };
|
|
365
|
+
}, blurOut: function(l, u) {
|
|
366
|
+
return { opacity: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [0, 1 < arguments.length && u !== void 0 ? u : 20]] };
|
|
367
|
+
}, scaleInOut: function(l, u) {
|
|
368
|
+
return u = 1 < arguments.length && u !== void 0 ? u : 0.6, { scale: [d(0 < arguments.length && l !== void 0 ? l : 100), [u, 1, 1, 1, u]] };
|
|
369
|
+
}, scaleIn: function(l, u) {
|
|
370
|
+
return { scale: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length && u !== void 0 ? u : 0.6, 1]] };
|
|
371
|
+
}, scaleOut: function(l, u) {
|
|
372
|
+
return { scale: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [1, 1 < arguments.length && u !== void 0 ? u : 0.6]] };
|
|
373
|
+
}, slideX: function(l, u) {
|
|
374
|
+
return { translateX: [["elInY", 0 < arguments.length && l !== void 0 ? l : 0], [0, 1 < arguments.length && u !== void 0 ? u : 500]] };
|
|
375
|
+
}, slideY: function(l, u) {
|
|
376
|
+
return { translateY: [["elInY", 0 < arguments.length && l !== void 0 ? l : 0], [0, 1 < arguments.length && u !== void 0 ? u : 500]] };
|
|
377
|
+
}, spin: function(l, u) {
|
|
378
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotate: [[0, l], [0, 1 < arguments.length && u !== void 0 ? u : 360], { modValue: l }] };
|
|
379
|
+
}, flipX: function(l, u) {
|
|
380
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotateX: [[0, l], [0, 1 < arguments.length && u !== void 0 ? u : 360], { modValue: l }] };
|
|
381
|
+
}, flipY: function(l, u) {
|
|
382
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotateY: [[0, l], [0, 1 < arguments.length && u !== void 0 ? u : 360], { modValue: l }] };
|
|
383
|
+
}, jiggle: function(l, u) {
|
|
384
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 50, u = 1 < arguments.length && u !== void 0 ? u : 40, { skewX: [[0, +l, 2 * l, 3 * l, 4 * l], [0, u, 0, -u, 0], { modValue: 4 * l }] };
|
|
385
|
+
}, seesaw: function(l, u) {
|
|
386
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 50, u = 1 < arguments.length && u !== void 0 ? u : 40, { skewY: [[0, +l, 2 * l, 3 * l, 4 * l], [0, u, 0, -u, 0], { modValue: 4 * l }] };
|
|
387
|
+
}, zigzag: function(l, u) {
|
|
388
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 100, u = 1 < arguments.length && u !== void 0 ? u : 100, { translateX: [[0, +l, 2 * l, 3 * l, 4 * l], [0, u, 0, -u, 0], { modValue: 4 * l }] };
|
|
389
|
+
}, hueRotate: function(l, u) {
|
|
390
|
+
return l = 0 < arguments.length && l !== void 0 ? l : 600, { "hue-rotate": [[0, l], [0, 1 < arguments.length && u !== void 0 ? u : 360], { modValue: l }] };
|
|
391
|
+
} }, ft = (c = ["perspective", "scaleX", "scaleY", "scale", "skewX", "skewY", "skew", "rotateX", "rotateY", "rotate"], f = ["blur", "hue-rotate", "brightness"], b = ["translateX", "translateY", "translateZ"], _ = ["perspective", "border-radius", "blur", "translateX", "translateY", "translateZ"], S = ["hue-rotate", "rotate", "rotateX", "rotateY", "skew", "skewX", "skewY"], T = { easeInQuad: function(l) {
|
|
392
392
|
return l * l;
|
|
393
393
|
}, easeOutQuad: function(l) {
|
|
394
394
|
return l * (2 - l);
|
|
@@ -413,149 +413,149 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
413
413
|
}, easeInOutQuint: function(l) {
|
|
414
414
|
return l < 0.5 ? 16 * l * l * l * l * l : 1 + 16 * --l * l * l * l * l;
|
|
415
415
|
}, easeOutBounce: function(l) {
|
|
416
|
-
var
|
|
417
|
-
return l < 1 / v ?
|
|
416
|
+
var u = 7.5625, v = 2.75;
|
|
417
|
+
return l < 1 / v ? u * l * l : l < 2 / v ? u * (l -= 1.5 / v) * l + 0.75 : l < 2.5 / v ? u * (l -= 2.25 / v) * l + 0.9375 : u * (l -= 2.625 / v) * l + 0.984375;
|
|
418
418
|
}, easeInBounce: function(l) {
|
|
419
|
-
return 1 -
|
|
419
|
+
return 1 - T.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) {
|
|
423
423
|
return 2.70158 * l * l * l - 1.70158 * l * l;
|
|
424
424
|
} }, new function l() {
|
|
425
|
-
var
|
|
426
|
-
t(this, l), 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",
|
|
427
|
-
|
|
425
|
+
var u = this;
|
|
426
|
+
t(this, l), 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", K), i(this, "debugData", { frameLengths: [] }), i(this, "init", function() {
|
|
427
|
+
u.findAndAddElements(), window.requestAnimationFrame(u.onAnimationFrame), u.windowWidth = document.body.clientWidth, u.windowHeight = document.body.clientHeight, window.onresize = u.onWindowResize;
|
|
428
428
|
}), i(this, "onWindowResize", function() {
|
|
429
|
-
document.body.clientWidth ===
|
|
429
|
+
document.body.clientWidth === u.windowWidth && document.body.clientHeight === u.windowHeight || (u.windowWidth = document.body.clientWidth, u.windowHeight = document.body.clientHeight, u.elements.forEach(function(v) {
|
|
430
430
|
return v.calculateTransforms();
|
|
431
431
|
}));
|
|
432
432
|
}), i(this, "onAnimationFrame", function(v) {
|
|
433
|
-
|
|
434
|
-
var
|
|
435
|
-
|
|
436
|
-
O[I.name] = I.getValue(
|
|
437
|
-
}),
|
|
438
|
-
I.update(O,
|
|
439
|
-
}),
|
|
440
|
-
return I +
|
|
441
|
-
}, 0) / 60), console.log("Average frame calculation time: ".concat(
|
|
442
|
-
}), i(this, "addDriver", function(v,
|
|
433
|
+
u.debug && (u.debugData.frameStart = Date.now());
|
|
434
|
+
var j, O = {};
|
|
435
|
+
u.drivers.forEach(function(I) {
|
|
436
|
+
O[I.name] = I.getValue(u.frame);
|
|
437
|
+
}), u.elements.forEach(function(I) {
|
|
438
|
+
I.update(O, u.frame);
|
|
439
|
+
}), u.debug && u.debugData.frameLengths.push(Date.now() - u.debugData.frameStart), u.frame % 60 == 0 && u.debug && (j = Math.ceil(u.debugData.frameLengths.reduce(function(I, tt) {
|
|
440
|
+
return I + tt;
|
|
441
|
+
}, 0) / 60), console.log("Average frame calculation time: ".concat(j, "ms")), u.debugData.frameLengths = []), u.frame++, window.requestAnimationFrame(u.onAnimationFrame);
|
|
442
|
+
}), i(this, "addDriver", function(v, j) {
|
|
443
443
|
var O = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
|
|
444
|
-
|
|
444
|
+
u.drivers.push(new Lt(v, j, O));
|
|
445
445
|
}), i(this, "removeDriver", function(v) {
|
|
446
|
-
|
|
447
|
-
return
|
|
446
|
+
u.drivers = u.drivers.filter(function(j) {
|
|
447
|
+
return j.name !== v;
|
|
448
448
|
});
|
|
449
449
|
}), i(this, "findAndAddElements", function() {
|
|
450
|
-
|
|
451
|
-
var
|
|
450
|
+
u.elements = [], document.querySelectorAll(".lax").forEach(function(v) {
|
|
451
|
+
var j = [];
|
|
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_", ""), j.push(I));
|
|
454
454
|
});
|
|
455
|
-
var O = i({}, "scrollY", { presets:
|
|
456
|
-
|
|
455
|
+
var O = i({}, "scrollY", { presets: j });
|
|
456
|
+
u.elements.push(new kt(".lax", u, v, O, 0, {}));
|
|
457
457
|
});
|
|
458
|
-
}), i(this, "addElements", function(v,
|
|
459
|
-
document.querySelectorAll(v).forEach(function(I,
|
|
460
|
-
|
|
458
|
+
}), i(this, "addElements", function(v, j, O) {
|
|
459
|
+
document.querySelectorAll(v).forEach(function(I, tt) {
|
|
460
|
+
u.elements.push(new kt(v, u, I, j, tt, O));
|
|
461
461
|
});
|
|
462
462
|
}), i(this, "removeElements", function(v) {
|
|
463
|
-
|
|
464
|
-
return
|
|
463
|
+
u.elements = u.elements.filter(function(j) {
|
|
464
|
+
return j.selector !== v;
|
|
465
465
|
});
|
|
466
|
-
}), i(this, "addElement", function(v,
|
|
467
|
-
|
|
466
|
+
}), i(this, "addElement", function(v, j, O) {
|
|
467
|
+
u.elements.push(new kt("", u, v, j, 0, O));
|
|
468
468
|
}), i(this, "removeElement", function(v) {
|
|
469
|
-
|
|
470
|
-
return
|
|
469
|
+
u.elements = u.elements.filter(function(j) {
|
|
470
|
+
return j.domElement !== v;
|
|
471
471
|
});
|
|
472
472
|
});
|
|
473
473
|
}());
|
|
474
|
-
function
|
|
474
|
+
function Bt(l, u) {
|
|
475
475
|
if (Array.isArray(l)) return l;
|
|
476
|
-
for (var v = Object.keys(l).map(function(
|
|
477
|
-
return parseInt(
|
|
478
|
-
}).sort(function(
|
|
479
|
-
return At <
|
|
480
|
-
}),
|
|
476
|
+
for (var v = Object.keys(l).map(function(tt) {
|
|
477
|
+
return parseInt(tt);
|
|
478
|
+
}).sort(function(tt, At) {
|
|
479
|
+
return At < tt ? 1 : -1;
|
|
480
|
+
}), j = v[v.length - 1], O = 0; O < v.length; O++) {
|
|
481
481
|
var I = v[O];
|
|
482
|
-
if (
|
|
483
|
-
|
|
482
|
+
if (u < I) {
|
|
483
|
+
j = I;
|
|
484
484
|
break;
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
return l[
|
|
487
|
+
return l[j];
|
|
488
488
|
}
|
|
489
|
-
function Ct(l,
|
|
490
|
-
var
|
|
489
|
+
function Ct(l, L, v) {
|
|
490
|
+
var j = L.width, O = L.height, x = L.x, X = L.y;
|
|
491
491
|
if (typeof l == "number") return l;
|
|
492
|
-
var I,
|
|
493
|
-
return Function("return ".concat(l.replace(/screenWidth/g,
|
|
492
|
+
var I, tt = document.body.scrollHeight, At = document.body.scrollWidth, B = window.innerWidth, gt = window.innerHeight, A = s((I = window.pageXOffset !== void 0, A = (document.compatMode || "") === "CSS1Compat", L = I ? window.pageXOffset : (A ? document.documentElement : document.body).scrollLeft, [I ? window.pageYOffset : (A ? document.documentElement : document.body).scrollTop, L]), 2), L = A[0], x = x + A[1], A = x + j, X = X + L, L = X + O;
|
|
493
|
+
return Function("return ".concat(l.replace(/screenWidth/g, B).replace(/screenHeight/g, gt).replace(/pageHeight/g, tt).replace(/pageWidth/g, At).replace(/elWidth/g, j).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, A).replace(/elCenterX/g, x + j / 2 - B / 2).replace(/index/g, v)))();
|
|
494
494
|
}
|
|
495
|
-
function Lt(l,
|
|
496
|
-
var v = this,
|
|
495
|
+
function Lt(l, u) {
|
|
496
|
+
var v = this, j = 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 =
|
|
501
|
-
v[O] =
|
|
500
|
+
}), this.name = l, this.getValueFn = u, Object.keys(j).forEach(function(O) {
|
|
501
|
+
v[O] = j[O];
|
|
502
502
|
}), this.lastValue = this.getValueFn(0);
|
|
503
503
|
}
|
|
504
|
-
function kt(l,
|
|
504
|
+
function kt(l, u, v, j) {
|
|
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
|
-
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(
|
|
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, A = O.transforms, X = {};
|
|
508
508
|
for (x in A) {
|
|
509
|
-
var
|
|
510
|
-
|
|
511
|
-
var Z, G = s(
|
|
512
|
-
for (Z in
|
|
513
|
-
var Q, ot = s(
|
|
514
|
-
gt % _t == 0 && (lt = (function(
|
|
515
|
-
var
|
|
516
|
-
if (
|
|
517
|
-
Et < mt &&
|
|
518
|
-
}),
|
|
519
|
-
if (
|
|
520
|
-
var yt, q = (q =
|
|
521
|
-
return bt && (q = bt(q)), yt =
|
|
522
|
-
})(P, D, rt ? R % rt : R, lt), ot && (Q = It * ot, Ot === "absolute" && (Q = Math.abs(Q)), lt += Q), Q = (z ||
|
|
509
|
+
var L = A[x];
|
|
510
|
+
B[x] || console.error("No lax driver with name: ", x);
|
|
511
|
+
var Z, G = s(B[x], 2), R = G[0], It = G[1];
|
|
512
|
+
for (Z in L) {
|
|
513
|
+
var Q, ot = s(L[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 = T[lt];
|
|
514
|
+
gt % _t == 0 && (lt = (function(et, it, mt, bt) {
|
|
515
|
+
var st = 0;
|
|
516
|
+
if (et.forEach(function(Et) {
|
|
517
|
+
Et < mt && st++;
|
|
518
|
+
}), st <= 0) return it[0];
|
|
519
|
+
if (st >= et.length) return it[et.length - 1];
|
|
520
|
+
var yt, q = (q = et[yt = st - 1], et = et[st], (mt - q) / (et - q));
|
|
521
|
+
return bt && (q = bt(q)), yt = it[yt], it = it[st], yt * (1 - (q = q)) + it * q;
|
|
522
|
+
})(P, D, rt ? R % rt : R, lt), ot && (Q = It * ot, Ot === "absolute" && (Q = Math.abs(Q)), lt += Q), Q = (z || _.includes(Z) ? "px" : S.includes(Z) ? "deg" : "") == "px" ? 0 : 3, Q = lt.toFixed(Q), X[Z] = pt ? pt(Q, O.domElement) : Q + z);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
O.applyStyles(X), O.onUpdate && O.onUpdate(
|
|
525
|
+
O.applyStyles(X), O.onUpdate && O.onUpdate(B, O.domElement);
|
|
526
526
|
}), i(this, "calculateTransforms", function() {
|
|
527
527
|
O.transforms = {};
|
|
528
|
-
var
|
|
529
|
-
for (
|
|
530
|
-
var A = O.transformsData[x], X = {},
|
|
531
|
-
(
|
|
528
|
+
var B, gt = O.laxInstance.windowWidth;
|
|
529
|
+
for (B in O.transformsData) (function(x) {
|
|
530
|
+
var A = O.transformsData[x], X = {}, L = A.presets;
|
|
531
|
+
(L === void 0 ? [] : L).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];
|
|
535
535
|
})) : console.error("Lax preset cannot be found with name: ", It);
|
|
536
536
|
}), delete A.presets;
|
|
537
537
|
for (var Z in A) (function(G) {
|
|
538
|
-
var R = s(A[G], 3), P = R[0], Q = P === void 0 ? [-1e9, 1e9] : P, P = R[1], P = P === void 0 ? [-1e9, 1e9] : P, R = R[2], R = R === void 0 ? {} : R, It = O.domElement.getBoundingClientRect(), Q =
|
|
538
|
+
var R = s(A[G], 3), P = R[0], Q = P === void 0 ? [-1e9, 1e9] : P, P = R[1], P = P === void 0 ? [-1e9, 1e9] : P, R = R[2], R = R === void 0 ? {} : R, It = O.domElement.getBoundingClientRect(), Q = Bt(Q, gt).map(function(D) {
|
|
539
539
|
return Ct(D, It, O.groupIndex);
|
|
540
|
-
}), P =
|
|
540
|
+
}), P = Bt(P, gt).map(function(D) {
|
|
541
541
|
return Ct(D, It, O.groupIndex);
|
|
542
542
|
});
|
|
543
543
|
X[G] = [Q, P, R];
|
|
544
544
|
})(Z);
|
|
545
545
|
O.transforms[x] = X;
|
|
546
|
-
})(
|
|
547
|
-
}), i(this, "applyStyles", function(
|
|
548
|
-
var gt, x, A, X = (gt =
|
|
549
|
-
var Z = gt[
|
|
550
|
-
b.includes(
|
|
546
|
+
})(B);
|
|
547
|
+
}), i(this, "applyStyles", function(B) {
|
|
548
|
+
var gt, x, A, X = (gt = B, x = { transform: "", filter: "" }, A = { translateX: 1e-5, translateY: 1e-5, translateZ: 1e-5 }, Object.keys(gt).forEach(function(L) {
|
|
549
|
+
var Z = gt[L], G = _.includes(L) ? "px" : S.includes(L) ? "deg" : "";
|
|
550
|
+
b.includes(L) ? A[L] = Z : c.includes(L) ? x.transform += "".concat(L, "(").concat(Z).concat(G, ") ") : f.includes(L) ? x.filter += "".concat(L, "(").concat(Z).concat(G, ") ") : x[L] = "".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(L) {
|
|
553
|
+
O.domElement.style.setProperty(L, X[L]);
|
|
554
554
|
});
|
|
555
|
-
}), this.selector = l, this.laxInstance =
|
|
556
|
-
var
|
|
557
|
-
Object.keys(
|
|
558
|
-
v.style.setProperty(
|
|
555
|
+
}), this.selector = l, this.laxInstance = u, this.domElement = v, this.transformsData = j, this.groupIndex = I;
|
|
556
|
+
var tt = (I = At.style) === void 0 ? {} : I, At = At.onUpdate;
|
|
557
|
+
Object.keys(tt).forEach(function(B) {
|
|
558
|
+
v.style.setProperty(B, tt[B]);
|
|
559
559
|
}), At && (this.onUpdate = At), this.calculateTransforms();
|
|
560
560
|
}
|
|
561
561
|
o.exports !== void 0 ? o.exports = ft : window.lax = ft;
|
|
@@ -589,19 +589,19 @@ 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"),
|
|
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"), c = this.getObjVal(e, "data-center-bottom"), f = this.getObjVal(e, "data-center"), b = this.getObjVal(e, "data-center-top"), _ = this.getObjVal(e, "data--400-bottom"), S = this.getObjVal(e, "data--300-bottom"), T = this.getObjVal(e, "data--200-bottom"), K = 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"), l = this.getObjVal(e, "data-150-bottom"), u = this.getObjVal(e, "data-200-bottom"), v = this.getObjVal(e, "data-300-bottom"), j = 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"), A = this.getObjVal(e, "data-out--300"), X = this.getObjVal(e, "data-out--150"), L = 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 = {},
|
|
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"),
|
|
600
|
-
let
|
|
601
|
-
Ft < 730 ? (It =
|
|
602
|
-
let
|
|
603
|
-
Object.keys(O).length !== 0 && (
|
|
604
|
-
scrollY:
|
|
598
|
+
let It = {}, Q = {}, 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 && !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"), 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 && 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") && (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 && 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") && (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 && 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") && (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, E = rt, $ = _t, M = ot, ht = Ot, F = pt, J = z, ct = lt, zt = et, St = it, Xt = mt, nt = bt, C = 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, Q = H, P = E, D = $, rt = M, _t = ht, ot = F, Ot = J, pt = ct, z = zt, lt = St, et = Xt, it = nt, mt = C, 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 ? (Q = W, P = H, D = E, rt = $, _t = M, ot = ht, Ot = F, pt = J, z = ct, lt = zt, et = St, it = Xt, mt = nt, bt = C, 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 = E, ot = $, Ot = M, pt = ht, z = F, lt = J, et = ct, it = zt, mt = St, bt = Xt, st = nt, yt = C, 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 = E, Ot = $, pt = M, z = ht, lt = F, et = J, it = ct, mt = zt, bt = St, st = Xt, yt = nt, q = C, 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
|
+
let g = {};
|
|
603
|
+
Object.keys(O).length !== 0 && (g = this.parseObj(O, "elInY", g)), Object.keys(j).length !== 0 && (g = this.parseObj(j, "elInY+50", g)), Object.keys(v).length !== 0 && (g = this.parseObj(v, "elInY+100", g)), Object.keys(u).length !== 0 && (g = this.parseObj(u, "elInY+150", g)), Object.keys(l).length !== 0 && (g = this.parseObj(l, "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(K).length !== 0 && (g = this.parseObj(K, "elInY+500", g)), Object.keys(T).length !== 0 && (g = this.parseObj(T, "elInY+550", g)), Object.keys(S).length !== 0 && (g = this.parseObj(S, "elInY+600", g)), Object.keys(_).length !== 0 && (g = this.parseObj(_, "elInY+650", g)), Object.keys(b).length !== 0 && (g = this.parseObj(b, "elCenterY-300", g)), Object.keys(f).length !== 0 && (g = this.parseObj(f, "elCenterY", g)), Object.keys(c).length !== 0 && (g = this.parseObj(c, "elCenterY+100", g)), Object.keys(d).length !== 0 && (g = this.parseObj(d, "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(A).length !== 0 && (g = this.parseObj(A, "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(Q).length !== 0 && (g = this.parseObj(Q, "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"), Zt.addElements("[data-dummy-selector]", {
|
|
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);
|
|
607
607
|
}, 100);
|
|
@@ -1148,7 +1148,7 @@ function $t() {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
return o;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function at(o, t) {
|
|
1152
1152
|
if ((Rt(o) || o === window || o === document) && (o = [o]), !Ne(o) && !Kt(o) && (o = [o]), Ze(o) != 0) {
|
|
1153
1153
|
if (Ne(o) && !Kt(o)) {
|
|
1154
1154
|
let i = o.length, s = 0;
|
|
@@ -1163,37 +1163,37 @@ function nt(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 && Ze(s) > 0 &&
|
|
1166
|
+
return t && i && Ze(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;
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
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
1174
|
function h(d) {
|
|
1175
1175
|
N(i) && i.call(r, d, this), e && h.destroy();
|
|
1176
1176
|
}
|
|
1177
1177
|
return h.destroy = function() {
|
|
1178
|
-
|
|
1179
|
-
const
|
|
1180
|
-
|
|
1178
|
+
at(n, (d) => {
|
|
1179
|
+
const c = qe(d, o, h);
|
|
1180
|
+
c.found && c.all.splice(c.evt, 1), d.removeEventListener && d.removeEventListener(o, h, a);
|
|
1181
1181
|
});
|
|
1182
|
-
},
|
|
1183
|
-
const
|
|
1184
|
-
(d.addEventListener && s && !
|
|
1182
|
+
}, at(n, (d) => {
|
|
1183
|
+
const c = qe(d, o, h);
|
|
1184
|
+
(d.addEventListener && s && !c.found || !s) && (d.addEventListener(o, h, a), c.all.push({ eventName: o, fn: h }));
|
|
1185
1185
|
}), h;
|
|
1186
1186
|
}
|
|
1187
1187
|
function Y(o, t) {
|
|
1188
|
-
|
|
1188
|
+
at(t.split(" "), (i) => o.classList.add(i));
|
|
1189
1189
|
}
|
|
1190
1190
|
function wt(o, t) {
|
|
1191
|
-
|
|
1191
|
+
at(t.split(" "), (i) => o.classList.remove(i));
|
|
1192
1192
|
}
|
|
1193
1193
|
function jt(o, t) {
|
|
1194
1194
|
return o.classList.contains(t);
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function Wt(o, t) {
|
|
1197
1197
|
for (; o !== document.body; ) {
|
|
1198
1198
|
if (o = o.parentElement, !o)
|
|
1199
1199
|
return !1;
|
|
@@ -1207,14 +1207,14 @@ function Qt(o, t = "", i = !1) {
|
|
|
1207
1207
|
if (t === "none")
|
|
1208
1208
|
return N(i) && i(), !1;
|
|
1209
1209
|
const s = hi(), e = t.split(" ");
|
|
1210
|
-
|
|
1210
|
+
at(e, (a) => {
|
|
1211
1211
|
Y(o, "g" + a);
|
|
1212
|
-
}),
|
|
1212
|
+
}), Ht(s, {
|
|
1213
1213
|
onElement: o,
|
|
1214
1214
|
avoidDuplicate: !1,
|
|
1215
1215
|
once: !0,
|
|
1216
1216
|
withCallback: (a, r) => {
|
|
1217
|
-
|
|
1217
|
+
at(e, (n) => {
|
|
1218
1218
|
wt(r, "g" + n);
|
|
1219
1219
|
}), N(i) && i();
|
|
1220
1220
|
}
|
|
@@ -1380,7 +1380,7 @@ function Xe(o = -1) {
|
|
|
1380
1380
|
return t[0];
|
|
1381
1381
|
typeof o == "string" && (o = parseInt(o));
|
|
1382
1382
|
const i = [];
|
|
1383
|
-
|
|
1383
|
+
at(t, (n) => {
|
|
1384
1384
|
i.push(n.getAttribute("data-taborder"));
|
|
1385
1385
|
});
|
|
1386
1386
|
const s = Math.max.apply(Math, i.map((n) => parseInt(n)));
|
|
@@ -1392,7 +1392,7 @@ function Xe(o = -1) {
|
|
|
1392
1392
|
function gi(o) {
|
|
1393
1393
|
if (o.events.hasOwnProperty("keyboard"))
|
|
1394
1394
|
return !1;
|
|
1395
|
-
o.events.keyboard =
|
|
1395
|
+
o.events.keyboard = Ht("keydown", {
|
|
1396
1396
|
onElement: window,
|
|
1397
1397
|
withCallback: (t, i) => {
|
|
1398
1398
|
t = t || window.event;
|
|
@@ -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 d = Math.abs(this.x1 - this.x2),
|
|
1505
|
-
(d > 10 ||
|
|
1504
|
+
var d = Math.abs(this.x1 - this.x2), c = Math.abs(this.y1 - this.y2);
|
|
1505
|
+
(d > 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);
|
|
@@ -1550,8 +1550,8 @@ class wi {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
function _e(o) {
|
|
1552
1552
|
const t = ci(), i = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
1553
|
-
let s = jt(o, "gslide-media") ? o : o.querySelector(".gslide-media"), e =
|
|
1554
|
-
i > 769 && (s = e), Y(s, "greset"), ye(s, "translate3d(0, 0, 0)"),
|
|
1553
|
+
let s = jt(o, "gslide-media") ? o : o.querySelector(".gslide-media"), e = Wt(s, ".ginner-container"), a = o.querySelector(".gslide-description");
|
|
1554
|
+
i > 769 && (s = e), Y(s, "greset"), ye(s, "translate3d(0, 0, 0)"), Ht(t, {
|
|
1555
1555
|
onElement: s,
|
|
1556
1556
|
once: !0,
|
|
1557
1557
|
withCallback: (r, n) => {
|
|
@@ -1562,36 +1562,36 @@ 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,
|
|
1566
|
-
const At = document.getElementById("glightbox-slider"),
|
|
1565
|
+
let t = Fe(), i = t.width, s = t.height, e = !1, a = null, r = null, n = null, h = !1, d = 1, c = 4.5, f = 1, b = !1, _ = !1, S = null, T = null, K = null, ft = null, Bt, Ct, Lt = 0, kt = 0, l = !1, u = !1, v = {}, j = {}, O = 0, I = 0, tt;
|
|
1566
|
+
const At = document.getElementById("glightbox-slider"), B = document.querySelector(".goverlay"), gt = new wi(At, {
|
|
1567
1567
|
touchStart: (x) => {
|
|
1568
|
-
if (e = !0, (jt(x.targetTouches[0].target, "ginner-container") ||
|
|
1569
|
-
if (
|
|
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) {
|
|
1569
|
+
if (j = 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"), tt = 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(B, "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 || (j = x.targetTouches[0], b || _))
|
|
1576
1576
|
return;
|
|
1577
|
-
if (
|
|
1578
|
-
const R = v.pageX -
|
|
1577
|
+
if (tt && tt.offsetHeight > s) {
|
|
1578
|
+
const R = v.pageX - j.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, L = O - A, Z = I - X;
|
|
1584
|
+
Math.abs(L) > Math.abs(Z) ? (l = !1, u = !0) : (u = !1, l = !0), Bt = j.pageX - v.pageX, Lt = Bt * 100 / i, Ct = j.pageY - v.pageY, kt = Ct * 100 / s;
|
|
1585
1585
|
let G;
|
|
1586
|
-
if (l && n && (G = 1 - Math.abs(Ct) / s,
|
|
1586
|
+
if (l && n && (G = 1 - Math.abs(Ct) / s, B.style.opacity = G, o.settings.touchFollowAxis && (Lt = 0)), u && (G = 1 - Math.abs(Bt) / i, r.style.opacity = G, 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
|
},
|
|
1590
1590
|
touchEnd: () => {
|
|
1591
1591
|
if (!e)
|
|
1592
1592
|
return;
|
|
1593
|
-
if (h = !1,
|
|
1594
|
-
|
|
1593
|
+
if (h = !1, _ || b) {
|
|
1594
|
+
K = S, ft = T;
|
|
1595
1595
|
return;
|
|
1596
1596
|
}
|
|
1597
1597
|
const x = Math.abs(parseInt(kt)), A = Math.abs(parseInt(Lt));
|
|
@@ -1600,7 +1600,7 @@ function xi(o) {
|
|
|
1600
1600
|
return;
|
|
1601
1601
|
}
|
|
1602
1602
|
if (x < 29 && A < 25)
|
|
1603
|
-
return Y(
|
|
1603
|
+
return Y(B, "greset"), B.style.opacity = 1, _e(r);
|
|
1604
1604
|
},
|
|
1605
1605
|
multipointEnd: () => {
|
|
1606
1606
|
setTimeout(() => {
|
|
@@ -1608,29 +1608,29 @@ function xi(o) {
|
|
|
1608
1608
|
}, 50);
|
|
1609
1609
|
},
|
|
1610
1610
|
multipointStart: () => {
|
|
1611
|
-
b = !0, d =
|
|
1611
|
+
b = !0, d = f || 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 (_ = !0, A <= 1) {
|
|
1619
|
+
_ = !1, A = 1, ft = null, K = null, S = null, T = null, n.setAttribute("style", "");
|
|
1620
1620
|
return;
|
|
1621
1621
|
}
|
|
1622
|
-
A >
|
|
1622
|
+
A > c && (A = c), n.style.transform = `scale3d(${A}, ${A}, 1)`, f = A;
|
|
1623
1623
|
},
|
|
1624
1624
|
pressMove: (x) => {
|
|
1625
|
-
if (
|
|
1626
|
-
var A =
|
|
1627
|
-
|
|
1628
|
-
let
|
|
1629
|
-
|
|
1625
|
+
if (_ && !b) {
|
|
1626
|
+
var A = j.pageX - v.pageX, X = j.pageY - v.pageY;
|
|
1627
|
+
K && (A = A + K), ft && (X = X + ft), S = A, T = X;
|
|
1628
|
+
let L = `translate3d(${A}px, ${X}px, 0)`;
|
|
1629
|
+
f && (L += ` scale3d(${f}, ${f}, 1)`), ye(n, L);
|
|
1630
1630
|
}
|
|
1631
1631
|
},
|
|
1632
1632
|
swipe: (x) => {
|
|
1633
|
-
if (!
|
|
1633
|
+
if (!_) {
|
|
1634
1634
|
if (b) {
|
|
1635
1635
|
b = !1;
|
|
1636
1636
|
return;
|
|
@@ -1708,7 +1708,7 @@ class Oi {
|
|
|
1708
1708
|
return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
1709
1709
|
}
|
|
1710
1710
|
}
|
|
1711
|
-
class
|
|
1711
|
+
class He {
|
|
1712
1712
|
constructor(t = {}) {
|
|
1713
1713
|
let { dragEl: i, toleranceX: s = 40, toleranceY: e = 65, slide: a = null, instance: r = null } = t;
|
|
1714
1714
|
this.el = i, this.active = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.direction = null, this.lastDirection = null, this.toleranceX = s, this.toleranceY = e, this.toleranceReached = !1, this.dragContainer = this.el, this.slide = a, this.instance = r, this.el.addEventListener("mousedown", (n) => this.dragStart(n), !1), this.el.addEventListener("mouseup", (n) => this.dragEnd(n), !1), this.el.addEventListener("mousemove", (n) => this.drag(n), !1);
|
|
@@ -1720,11 +1720,11 @@ class Be {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
t.type === "touchstart" ? (this.initialX = t.touches[0].clientX - this.xOffset, this.initialY = t.touches[0].clientY - this.yOffset) : (this.initialX = t.clientX - this.xOffset, this.initialY = t.clientY - this.yOffset);
|
|
1722
1722
|
let i = t.target.nodeName.toLowerCase(), s = ["input", "select", "textarea", "button", "a"];
|
|
1723
|
-
if (t.target.classList.contains("nodrag") ||
|
|
1723
|
+
if (t.target.classList.contains("nodrag") || Wt(t.target, ".nodrag") || s.indexOf(i) !== -1) {
|
|
1724
1724
|
this.active = !1;
|
|
1725
1725
|
return;
|
|
1726
1726
|
}
|
|
1727
|
-
t.preventDefault(), (t.target === this.el || i !== "img" &&
|
|
1727
|
+
t.preventDefault(), (t.target === this.el || i !== "img" && Wt(t.target, ".gslide-inline")) && (this.active = !0, this.el.classList.add("dragging"), this.dragContainer = Wt(t.target, ".ginner-container"));
|
|
1728
1728
|
}
|
|
1729
1729
|
dragEnd(t) {
|
|
1730
1730
|
t && t.preventDefault(), this.initialX = 0, this.initialY = 0, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.active = !1, this.doSlideChange && (this.instance.preventOutsideClick = !0, this.doSlideChange == "right" && this.instance.prevSlide(), this.doSlideChange == "left" && this.instance.nextSlide()), this.doSlideClose && this.instance.close(), this.toleranceReached || this.setTranslate(this.dragContainer, 0, 0, !0), setTimeout(() => {
|
|
@@ -1779,28 +1779,28 @@ 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,
|
|
1782
|
+
let d = t.href, c = t?.videoProvider, f = !1;
|
|
1783
1783
|
r.style.maxWidth = t.width, ze(this.settings.plyr.js, "Plyr", () => {
|
|
1784
|
-
if (!
|
|
1785
|
-
|
|
1786
|
-
let
|
|
1787
|
-
|
|
1788
|
-
}
|
|
1789
|
-
const b =
|
|
1790
|
-
Y(h, `${
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1793
|
-
n[a] =
|
|
1784
|
+
if (!c && d.match(/vimeo\.com\/([0-9]*)/) && (c = "vimeo"), !c && (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\-_]+)/)) && (c = "youtube"), c === "local" || !c) {
|
|
1785
|
+
c = "local";
|
|
1786
|
+
let T = '<video id="' + a + '" ';
|
|
1787
|
+
T += `style="background:#000; max-width: ${t.width};" `, T += 'preload="metadata" ', T += 'x-webkit-airplay="allow" ', T += "playsinline ", T += "controls ", T += 'class="gvideo-local">', T += `<source src="${d}">`, T += "</video>", f = Ut(T);
|
|
1788
|
+
}
|
|
1789
|
+
const b = f || Ut(`<div id="${a}" data-plyr-provider="${c}" data-plyr-embed-id="${d}"></div>`);
|
|
1790
|
+
Y(h, `${c}-video gvideo`), h.appendChild(b), h.setAttribute("data-id", a), h.setAttribute("data-index", i);
|
|
1791
|
+
const _ = xt(this.settings.plyr, "config") ? this.settings.plyr.config : {}, S = new Plyr("#" + a, _);
|
|
1792
|
+
S.on("ready", (T) => {
|
|
1793
|
+
n[a] = T.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
|
+
), S.on("enterfullscreen", Be), S.on("exitfullscreen", Be);
|
|
1800
1800
|
});
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1803
|
-
const t =
|
|
1802
|
+
function Be(o) {
|
|
1803
|
+
const t = Wt(o.target, ".gslide-media");
|
|
1804
1804
|
o.type === "enterfullscreen" && Y(t, "fullscreen"), o.type === "exitfullscreen" && wt(t, "fullscreen");
|
|
1805
1805
|
}
|
|
1806
1806
|
function _i(o, t, i, s) {
|
|
@@ -1820,7 +1820,7 @@ function _i(o, t, i, s) {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
if (!n)
|
|
1822
1822
|
return console.error("Unable to append inline slide content", t), !1;
|
|
1823
|
-
e.style.height = t.height, e.style.width = t.width, e.appendChild(n), this.events["inlineclose" + a] =
|
|
1823
|
+
e.style.height = t.height, e.style.width = t.width, e.appendChild(n), this.events["inlineclose" + a] = Ht("click", {
|
|
1824
1824
|
onElement: e.querySelectorAll(".gtrigger-close"),
|
|
1825
1825
|
withCallback: (h) => {
|
|
1826
1826
|
h.preventDefault(), this.close();
|
|
@@ -1872,7 +1872,7 @@ class Ti {
|
|
|
1872
1872
|
return this.setSize(n, i), n;
|
|
1873
1873
|
}
|
|
1874
1874
|
let e = "", a = t.getAttribute("data-glightbox"), r = t.nodeName.toLowerCase();
|
|
1875
|
-
if (r === "a" && (e = t.href), r === "img" && (e = t.src, s.alt = t.alt), s.href = e,
|
|
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
1877
|
const d = t.dataset[h];
|
|
1878
1878
|
Nt(d) || (s[h] = this.sanitizeValue(d));
|
|
@@ -1887,13 +1887,13 @@ class Ti {
|
|
|
1887
1887
|
}
|
|
1888
1888
|
} else {
|
|
1889
1889
|
let n = [];
|
|
1890
|
-
|
|
1890
|
+
at(s, (h, d) => {
|
|
1891
1891
|
n.push(";\\s?" + d);
|
|
1892
|
-
}), n = n.join("\\s?:|"), a.trim() !== "" &&
|
|
1893
|
-
const
|
|
1894
|
-
if (
|
|
1895
|
-
const
|
|
1896
|
-
s[d] = this.sanitizeValue(
|
|
1892
|
+
}), n = n.join("\\s?:|"), a.trim() !== "" && at(s, (h, d) => {
|
|
1893
|
+
const c = a, f = "s?" + d + "s?:s?(.*?)(" + n + "s?:|$)", b = new RegExp(f), _ = c.match(b);
|
|
1894
|
+
if (_ && _.length && _[1]) {
|
|
1895
|
+
const S = _[1].trim().replace(/;\s*$/, "");
|
|
1896
|
+
s[d] = this.sanitizeValue(S);
|
|
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"),
|
|
1969
|
+
let r = e.type, n = e.descPosition, h = t.querySelector(".gslide-media"), d = t.querySelector(".gslide-title"), c = t.querySelector(".gslide-desc"), f = t.querySelector(".gdesc-inner"), b = i, _ = "gSlideTitle_" + this.index, S = "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 == "" ? f && f.parentNode.parentNode.removeChild(f.parentNode) : (d && e.title !== "" ? (d.id = _, d.innerHTML = e.title) : d.parentNode.removeChild(d), c && e.description !== "" ? (c.id = S, 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(f.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
|
}
|
|
@@ -1982,7 +1982,7 @@ class pe {
|
|
|
1982
1982
|
return;
|
|
1983
1983
|
}
|
|
1984
1984
|
if (r === "inline") {
|
|
1985
|
-
_i.apply(this.instance, [t, e, this.index, b]), e.draggable && new
|
|
1985
|
+
_i.apply(this.instance, [t, e, this.index, b]), e.draggable && new He({
|
|
1986
1986
|
dragEl: t.querySelector(".gslide-inline"),
|
|
1987
1987
|
toleranceX: s.dragToleranceX,
|
|
1988
1988
|
toleranceY: s.dragToleranceY,
|
|
@@ -1993,14 +1993,14 @@ class pe {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
if (r === "image") {
|
|
1995
1995
|
Ai(t, e, this.index, () => {
|
|
1996
|
-
const
|
|
1997
|
-
e.draggable && new
|
|
1998
|
-
dragEl:
|
|
1996
|
+
const T = t.querySelector("img");
|
|
1997
|
+
e.draggable && new He({
|
|
1998
|
+
dragEl: T,
|
|
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 && T.naturalWidth > T.offsetWidth && (Y(T, "zoomable"), new Oi(T, t, () => {
|
|
2004
2004
|
this.instance.resize();
|
|
2005
2005
|
})), N(b) && b();
|
|
2006
2006
|
});
|
|
@@ -2021,18 +2021,18 @@ class pe {
|
|
|
2021
2021
|
let s = t.querySelector(".desc-more");
|
|
2022
2022
|
if (!s)
|
|
2023
2023
|
return !1;
|
|
2024
|
-
|
|
2024
|
+
Ht("click", {
|
|
2025
2025
|
onElement: s,
|
|
2026
2026
|
withCallback: (e, a) => {
|
|
2027
2027
|
e.preventDefault();
|
|
2028
2028
|
const r = document.body;
|
|
2029
|
-
let n =
|
|
2029
|
+
let n = Wt(a, ".gslide-desc");
|
|
2030
2030
|
if (!n)
|
|
2031
2031
|
return !1;
|
|
2032
2032
|
n.innerHTML = i.description, Y(r, "gdesc-open");
|
|
2033
|
-
let h =
|
|
2034
|
-
onElement: [r,
|
|
2035
|
-
withCallback: (d,
|
|
2033
|
+
let h = Ht("click", {
|
|
2034
|
+
onElement: [r, Wt(n, ".gslide-description")],
|
|
2035
|
+
withCallback: (d, c) => {
|
|
2036
2036
|
d.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());
|
|
@@ -2064,7 +2064,7 @@ class pe {
|
|
|
2064
2064
|
return this.slideConfig = t.parseConfig(this.element, this.instance.settings), this.slideConfig;
|
|
2065
2065
|
}
|
|
2066
2066
|
}
|
|
2067
|
-
const ji = "3.2.0",
|
|
2067
|
+
const ji = "3.2.0", We = Le(), $e = fi();
|
|
2068
2068
|
let Te;
|
|
2069
2069
|
typeof document > "u" || (Te = document.getElementsByTagName("html")[0]);
|
|
2070
2070
|
const ke = {
|
|
@@ -2175,7 +2175,7 @@ class Re {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
init() {
|
|
2177
2177
|
const t = this.getSelector();
|
|
2178
|
-
t && (this.baseEvents =
|
|
2178
|
+
t && (this.baseEvents = Ht("click", {
|
|
2179
2179
|
onElement: t,
|
|
2180
2180
|
withCallback: (i, s) => {
|
|
2181
2181
|
i.preventDefault(), this.open(s);
|
|
@@ -2197,7 +2197,7 @@ class Re {
|
|
|
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"),
|
|
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(), $e && this.settings.touchNavigation && xi(this), this.settings.keyboardNavigation && gi(this);
|
|
2201
2201
|
}
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Open at specific index
|
|
@@ -2302,8 +2302,8 @@ class Re {
|
|
|
2302
2302
|
if (i > n)
|
|
2303
2303
|
this.slidesContainer.appendChild(r);
|
|
2304
2304
|
else {
|
|
2305
|
-
let
|
|
2306
|
-
this.slidesContainer.insertBefore(r,
|
|
2305
|
+
let c = this.slidesContainer.querySelectorAll(".gslide")[i];
|
|
2306
|
+
this.slidesContainer.insertBefore(r, c);
|
|
2307
2307
|
}
|
|
2308
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], d = this.getSlidePlayerInstance(i), a.slideNode = h;
|
|
2309
2309
|
}
|
|
@@ -2494,7 +2494,7 @@ class Re {
|
|
|
2494
2494
|
* @return void
|
|
2495
2495
|
*/
|
|
2496
2496
|
slidePlayerPlay(t) {
|
|
2497
|
-
if (
|
|
2497
|
+
if (We && !this.settings.plyr.config?.muted)
|
|
2498
2498
|
return;
|
|
2499
2499
|
if (Rt(t)) {
|
|
2500
2500
|
let s = t.querySelector(".gvideo-wrapper");
|
|
@@ -2514,10 +2514,10 @@ class Re {
|
|
|
2514
2514
|
setElements(t) {
|
|
2515
2515
|
this.settings.elements = !1;
|
|
2516
2516
|
const i = [];
|
|
2517
|
-
t && t.length &&
|
|
2517
|
+
t && t.length && at(t, (s, e) => {
|
|
2518
2518
|
const a = new pe(s, this, e), r = a.getConfig(), n = $t({}, r);
|
|
2519
2519
|
n.slideConfig = r, n.instance = a, n.index = e, i.push(n);
|
|
2520
|
-
}), this.elements = i, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (
|
|
2520
|
+
}), this.elements = i, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (at(this.elements, () => {
|
|
2521
2521
|
let s = Ut(this.settings.slideHTML);
|
|
2522
2522
|
this.slidesContainer.appendChild(s);
|
|
2523
2523
|
}), this.showSlide(0, !0)));
|
|
@@ -2536,7 +2536,7 @@ class Re {
|
|
|
2536
2536
|
*/
|
|
2537
2537
|
getElementIndex(t) {
|
|
2538
2538
|
let i = !1;
|
|
2539
|
-
return
|
|
2539
|
+
return at(this.elements, (s, e) => {
|
|
2540
2540
|
if (xt(s, "node") && s.node == t)
|
|
2541
2541
|
return i = e, !0;
|
|
2542
2542
|
}), i;
|
|
@@ -2551,12 +2551,12 @@ class Re {
|
|
|
2551
2551
|
*/
|
|
2552
2552
|
getElements() {
|
|
2553
2553
|
let t = [];
|
|
2554
|
-
this.elements = this.elements ? this.elements : [], !Nt(this.settings.elements) && Ue(this.settings.elements) && this.settings.elements.length &&
|
|
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
2555
|
const r = new pe(e, this, a), n = r.getConfig(), h = $t({}, 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
|
-
return this.getSelector() && (i = document.querySelectorAll(this.getSelector())), i &&
|
|
2559
|
+
return this.getSelector() && (i = document.querySelectorAll(this.getSelector())), i && at(i, (e, a) => {
|
|
2560
2560
|
const r = new pe(e, this, a), n = r.getConfig(), h = $t({}, 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;
|
|
@@ -2609,7 +2609,7 @@ class Re {
|
|
|
2609
2609
|
if (this.built)
|
|
2610
2610
|
return !1;
|
|
2611
2611
|
const t = document.body.childNodes, i = [];
|
|
2612
|
-
|
|
2612
|
+
at(t, (d) => {
|
|
2613
2613
|
d.parentNode == document.body && d.nodeName.charAt(0) !== "#" && d.hasAttribute && !d.hasAttribute("aria-hidden") && (i.push(d), d.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 : "";
|
|
@@ -2618,29 +2618,29 @@ class Re {
|
|
|
2618
2618
|
const n = document.getElementById("glightbox-body");
|
|
2619
2619
|
this.modal = n;
|
|
2620
2620
|
let h = n.querySelector(".gclose");
|
|
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 =
|
|
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: (d,
|
|
2623
|
+
withCallback: (d, c) => {
|
|
2624
2624
|
d.preventDefault(), this.close();
|
|
2625
2625
|
}
|
|
2626
|
-
})), h && !this.settings.closeButton && h.parentNode.removeChild(h), this.nextButton && (this.events.next =
|
|
2626
|
+
})), h && !this.settings.closeButton && h.parentNode.removeChild(h), this.nextButton && (this.events.next = Ht("click", {
|
|
2627
2627
|
onElement: this.nextButton,
|
|
2628
|
-
withCallback: (d,
|
|
2628
|
+
withCallback: (d, c) => {
|
|
2629
2629
|
d.preventDefault(), this.nextSlide();
|
|
2630
2630
|
}
|
|
2631
|
-
})), this.prevButton && (this.events.prev =
|
|
2631
|
+
})), this.prevButton && (this.events.prev = Ht("click", {
|
|
2632
2632
|
onElement: this.prevButton,
|
|
2633
|
-
withCallback: (d,
|
|
2633
|
+
withCallback: (d, c) => {
|
|
2634
2634
|
d.preventDefault(), this.prevSlide();
|
|
2635
2635
|
}
|
|
2636
|
-
})), this.settings.closeOnOutsideClick && (this.events.outClose =
|
|
2636
|
+
})), this.settings.closeOnOutsideClick && (this.events.outClose = Ht("click", {
|
|
2637
2637
|
onElement: n,
|
|
2638
|
-
withCallback: (d,
|
|
2639
|
-
!this.preventOutsideClick && !jt(document.body, "glightbox-mobile") && !
|
|
2638
|
+
withCallback: (d, c) => {
|
|
2639
|
+
!this.preventOutsideClick && !jt(document.body, "glightbox-mobile") && !Wt(d.target, ".ginner-container") && !Wt(d.target, ".gbtn") && !jt(d.target, "gnext") && !jt(d.target, "gprev") && this.close();
|
|
2640
2640
|
}
|
|
2641
|
-
})),
|
|
2642
|
-
this.slidesContainer.appendChild(d.instance.create()), d.slideNode = this.slidesContainer.querySelectorAll(".gslide")[
|
|
2643
|
-
}), $e && Y(document.body, "glightbox-touch"), this.events.resize =
|
|
2641
|
+
})), at(this.elements, (d, c) => {
|
|
2642
|
+
this.slidesContainer.appendChild(d.instance.create()), d.slideNode = this.slidesContainer.querySelectorAll(".gslide")[c];
|
|
2643
|
+
}), $e && 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 d = a.offsetHeight,
|
|
2670
|
+
let d = a.offsetHeight, c = e.querySelector("img");
|
|
2671
2671
|
const b = this.elements[this.index].node.getAttribute("data-height") ?? "100vh";
|
|
2672
|
-
|
|
2672
|
+
c.setAttribute("style", `max-height: calc(${b} - ${d}px)`), a.setAttribute("style", `max-width: ${c.offsetWidth}px;`);
|
|
2673
2673
|
}
|
|
2674
2674
|
}
|
|
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
|
|
2682
|
-
ve(
|
|
2683
|
-
let
|
|
2684
|
-
if (
|
|
2685
|
-
let
|
|
2678
|
+
const S = s.clientWidth, T = s.clientHeight, K = S / T;
|
|
2679
|
+
d = `${S / K}:${T / K}`;
|
|
2680
|
+
}
|
|
2681
|
+
let c = d.split(":"), f = this.settings.videosWidth, b = this.settings.videosWidth;
|
|
2682
|
+
ve(f) || f.indexOf("px") !== -1 ? b = parseInt(f) : f.indexOf("vw") !== -1 ? b = r * parseInt(f) / 100 : f.indexOf("vh") !== -1 ? b = n * parseInt(f) / 100 : f.indexOf("%") !== -1 ? b = r * parseInt(f) / 100 : b = parseInt(s.clientWidth);
|
|
2683
|
+
let _ = b / (parseInt(c[0]) / parseInt(c[1]));
|
|
2684
|
+
if (_ = Math.floor(_), h && (n = n - a.offsetHeight), b > r || _ > n || n < _ && r > b) {
|
|
2685
|
+
let S = s.offsetWidth, T = s.offsetHeight, K = n / T, ft = { width: S * K };
|
|
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 = `${f}`, h && a.setAttribute("style", `max-width: ${f};`);
|
|
2689
2689
|
}
|
|
2690
2690
|
}
|
|
2691
2691
|
/**
|
|
@@ -2725,7 +2725,7 @@ class Re {
|
|
|
2725
2725
|
}
|
|
2726
2726
|
if (this.closing)
|
|
2727
2727
|
return !1;
|
|
2728
|
-
this.closing = !0, this.slidePlayerPause(this.activeSlide), this.fullElementsList && (this.elements = this.fullElementsList), this.bodyHiddenChildElms.length &&
|
|
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
2730
|
}), Y(this.modal, "glightbox-closing"), Qt(this.overlay, this.settings.openEffect == "none" ? "none" : this.settings.cssEfects.fade.out), Qt(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) {
|
|
@@ -2768,10 +2768,10 @@ class Re {
|
|
|
2768
2768
|
*/
|
|
2769
2769
|
trigger(t, i = null) {
|
|
2770
2770
|
const s = [];
|
|
2771
|
-
|
|
2771
|
+
at(this.apiEvents, (e, a) => {
|
|
2772
2772
|
const { evt: r, once: n, callback: h } = e;
|
|
2773
2773
|
r == t && (h(i), n && s.push(a));
|
|
2774
|
-
}), s.length &&
|
|
2774
|
+
}), s.length && at(s, (e) => this.apiEvents.splice(e, 1));
|
|
2775
2775
|
}
|
|
2776
2776
|
/**
|
|
2777
2777
|
* Removes all events
|
|
@@ -2830,8 +2830,8 @@ class Ci {
|
|
|
2830
2830
|
n = -h.scrollTop;
|
|
2831
2831
|
break;
|
|
2832
2832
|
case "End":
|
|
2833
|
-
const
|
|
2834
|
-
n =
|
|
2833
|
+
const f = h.scrollHeight - h.scrollTop - d;
|
|
2834
|
+
n = f > 0 ? f + 10 : 0;
|
|
2835
2835
|
break;
|
|
2836
2836
|
case "ArrowLeft":
|
|
2837
2837
|
r = -this.arrowScroll;
|
|
@@ -2856,10 +2856,10 @@ class Ci {
|
|
|
2856
2856
|
(r !== this.direction.x || n !== this.direction.y) && (this.direction = { x: r, y: n }, this.queue = [], this.lastScrollTime = 0);
|
|
2857
2857
|
const h = Date.now(), d = h - this.lastScrollTime;
|
|
2858
2858
|
if (d < this.accelerationDelta) {
|
|
2859
|
-
const
|
|
2860
|
-
if (
|
|
2861
|
-
const
|
|
2862
|
-
i *=
|
|
2859
|
+
const c = (1 + 50 / d) / 2;
|
|
2860
|
+
if (c > 1) {
|
|
2861
|
+
const f = Math.min(c, this.accelerationMax);
|
|
2862
|
+
i *= f, s *= f;
|
|
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), d = s.scrollHeight > s.clientHeight,
|
|
2885
|
-
if (n && d || h &&
|
|
2884
|
+
const e = window.getComputedStyle(s), a = e.overflowY, r = e.overflowX, n = ["auto", "scroll"].includes(a), h = ["auto", "scroll"].includes(r), d = s.scrollHeight > s.clientHeight, c = s.scrollWidth > s.clientWidth;
|
|
2885
|
+
if (n && d || h && c)
|
|
2886
2886
|
return s;
|
|
2887
2887
|
if (s === i) return i;
|
|
2888
2888
|
s = s.parentElement;
|
|
@@ -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,
|
|
2912
|
-
e +=
|
|
2911
|
+
const h = this.queue[n], d = s - h.start, c = d >= this.animationTime, f = c ? 1 : d / this.animationTime, b = this._pulse(f), _ = h.x * b - h.lastX >> 0, S = h.y * b - h.lastY >> 0;
|
|
2912
|
+
e += _, a += S, h.lastX += _, h.lastY += S, 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)
|
|
2915
2915
|
requestAnimationFrame(i);
|
|
@@ -3024,19 +3024,22 @@ class Li {
|
|
|
3024
3024
|
* Initialize all components in the page
|
|
3025
3025
|
*/
|
|
3026
3026
|
initializeComponents() {
|
|
3027
|
-
return document.querySelectorAll("[data-cb-type]").forEach((i) => {
|
|
3028
|
-
const
|
|
3029
|
-
if (
|
|
3027
|
+
return document.querySelectorAll("[data-cb-type]").forEach((i, s) => {
|
|
3028
|
+
const e = i.dataset.cbType, a = this.plugins.get(e);
|
|
3029
|
+
if (a && typeof a.mount == "function")
|
|
3030
3030
|
try {
|
|
3031
|
-
const
|
|
3032
|
-
let
|
|
3033
|
-
|
|
3034
|
-
|
|
3031
|
+
const r = this.parseOptions(i);
|
|
3032
|
+
let n = i.querySelector(".grid-sortable");
|
|
3033
|
+
n || i.classList.contains("grid-sortable") && (n = i), n && Array.from(n.children).forEach((c, f) => {
|
|
3034
|
+
c.nodeType === 1 && c.tagName !== "STYLE" && c.tagName !== "SCRIPT" && c.setAttribute("data-index", f);
|
|
3035
|
+
}), i.querySelectorAll(".edit").forEach((c, f) => {
|
|
3036
|
+
const b = `content-${Date.now()}-${s}-${f}`;
|
|
3037
|
+
c.setAttribute("data-edit-id", b);
|
|
3035
3038
|
}), i.hasAttribute("data-cb-original-content") || i.setAttribute("data-cb-original-content", i.innerHTML);
|
|
3036
|
-
const
|
|
3037
|
-
this.components.set(i,
|
|
3038
|
-
} catch (
|
|
3039
|
-
console.error(`[PluginManager] Failed to mount component "${
|
|
3039
|
+
const d = a.mount(i, r);
|
|
3040
|
+
this.components.set(i, d), this.setupInlineEditing(i, r), i.setAttribute("data-cb-loaded", "true");
|
|
3041
|
+
} catch (r) {
|
|
3042
|
+
console.error(`[PluginManager] Failed to mount component "${e}":`, r);
|
|
3040
3043
|
}
|
|
3041
3044
|
}), this.components.size;
|
|
3042
3045
|
}
|
|
@@ -3065,6 +3068,52 @@ class Li {
|
|
|
3065
3068
|
return t;
|
|
3066
3069
|
}
|
|
3067
3070
|
}
|
|
3071
|
+
/**
|
|
3072
|
+
* Setup inline editing for elements with .edit[data-edit-id]
|
|
3073
|
+
* Automatically enables contenteditable and syncs changes to data-cb-original-content
|
|
3074
|
+
* @param {HTMLElement} element - Plugin element
|
|
3075
|
+
* @param {Object} options - Plugin options
|
|
3076
|
+
*/
|
|
3077
|
+
setupInlineEditing(t, i) {
|
|
3078
|
+
if (!t.closest(".data-editor")) return;
|
|
3079
|
+
const s = t.querySelectorAll(".edit[data-edit-id]");
|
|
3080
|
+
if (s.length === 0)
|
|
3081
|
+
return;
|
|
3082
|
+
t.querySelectorAll('[contenteditable="true"]').forEach((r) => {
|
|
3083
|
+
r.removeAttribute("contenteditable"), r._cbObserver && (r._cbObserver.disconnect(), delete r._cbObserver);
|
|
3084
|
+
});
|
|
3085
|
+
const a = (r, n) => {
|
|
3086
|
+
const h = t.getAttribute("data-cb-original-content");
|
|
3087
|
+
if (!h) return;
|
|
3088
|
+
const f = new DOMParser().parseFromString(h, "text/html").body;
|
|
3089
|
+
if (!f) return;
|
|
3090
|
+
const b = f.querySelector(`[data-edit-id="${r}"]`);
|
|
3091
|
+
if (b) {
|
|
3092
|
+
b.innerHTML = n;
|
|
3093
|
+
const _ = f.innerHTML;
|
|
3094
|
+
t.setAttribute("data-cb-original-content", _);
|
|
3095
|
+
}
|
|
3096
|
+
};
|
|
3097
|
+
s.forEach((r) => {
|
|
3098
|
+
r.setAttribute("contenteditable", "true");
|
|
3099
|
+
const n = new MutationObserver(() => {
|
|
3100
|
+
const h = r.getAttribute("data-edit-id"), d = r.innerHTML;
|
|
3101
|
+
a(h, d);
|
|
3102
|
+
});
|
|
3103
|
+
n.observe(r, {
|
|
3104
|
+
childList: !0,
|
|
3105
|
+
// Child elements added/removed
|
|
3106
|
+
characterData: !0,
|
|
3107
|
+
// Text content changes
|
|
3108
|
+
subtree: !0,
|
|
3109
|
+
// Watch all descendants
|
|
3110
|
+
attributes: !0,
|
|
3111
|
+
// Attribute changes
|
|
3112
|
+
attributeFilter: ["style"]
|
|
3113
|
+
// Specifically watch style (color picker)
|
|
3114
|
+
}), r._cbObserver = n;
|
|
3115
|
+
});
|
|
3116
|
+
}
|
|
3068
3117
|
/**
|
|
3069
3118
|
* Manually load a plugin (if not auto-loaded)
|
|
3070
3119
|
*/
|
|
@@ -3100,71 +3149,6 @@ class Li {
|
|
|
3100
3149
|
* Useful when content is dynamically updated
|
|
3101
3150
|
* @param {HTMLElement} container - Container element (defaults to document)
|
|
3102
3151
|
*/
|
|
3103
|
-
/*
|
|
3104
|
-
async reinitialize(container = document) {
|
|
3105
|
-
console.log('[PluginManager] Reinitializing components in container');
|
|
3106
|
-
|
|
3107
|
-
// Step 1: Destroy existing components in this container
|
|
3108
|
-
const elementsToDestroy = [];
|
|
3109
|
-
this.components.forEach((instance, element) => {
|
|
3110
|
-
if (container === document || container.contains(element)) {
|
|
3111
|
-
elementsToDestroy.push({ element, instance });
|
|
3112
|
-
}
|
|
3113
|
-
});
|
|
3114
|
-
|
|
3115
|
-
elementsToDestroy.forEach(({ element, instance }) => {
|
|
3116
|
-
const type = element.dataset.cbType;
|
|
3117
|
-
const plugin = this.plugins.get(type);
|
|
3118
|
-
|
|
3119
|
-
if (plugin && typeof plugin.unmount === 'function') {
|
|
3120
|
-
plugin.unmount(element, instance);
|
|
3121
|
-
}
|
|
3122
|
-
|
|
3123
|
-
this.components.delete(element);
|
|
3124
|
-
});
|
|
3125
|
-
|
|
3126
|
-
console.log(`[PluginManager] Destroyed ${elementsToDestroy.length} components`);
|
|
3127
|
-
|
|
3128
|
-
// Step 2: Detect new component types in container
|
|
3129
|
-
const componentTypes = this.detectComponentTypesInContainer(container);
|
|
3130
|
-
|
|
3131
|
-
// Step 3: Load any new plugins that aren't loaded yet
|
|
3132
|
-
const pluginsToLoad = componentTypes.filter(type =>
|
|
3133
|
-
this.config.plugins[type] && !this.plugins.has(type)
|
|
3134
|
-
);
|
|
3135
|
-
|
|
3136
|
-
if (pluginsToLoad.length > 0) {
|
|
3137
|
-
await Promise.all(
|
|
3138
|
-
pluginsToLoad.map(type => this.loadPlugin(type))
|
|
3139
|
-
);
|
|
3140
|
-
}
|
|
3141
|
-
|
|
3142
|
-
// Step 4: Initialize all components in container
|
|
3143
|
-
const newElements = container.querySelectorAll('[data-cb-type]');
|
|
3144
|
-
let mountedCount = 0;
|
|
3145
|
-
|
|
3146
|
-
newElements.forEach(el => {
|
|
3147
|
-
const type = el.dataset.cbType;
|
|
3148
|
-
const plugin = this.plugins.get(type);
|
|
3149
|
-
|
|
3150
|
-
if (plugin && typeof plugin.mount === 'function') {
|
|
3151
|
-
try {
|
|
3152
|
-
const options = this.parseOptions(el);
|
|
3153
|
-
const instance = plugin.mount(el, options);
|
|
3154
|
-
this.components.set(el, instance);
|
|
3155
|
-
mountedCount++;
|
|
3156
|
-
} catch (error) {
|
|
3157
|
-
console.error(`[PluginManager] Failed to mount component "${type}":`, error);
|
|
3158
|
-
}
|
|
3159
|
-
}
|
|
3160
|
-
});
|
|
3161
|
-
|
|
3162
|
-
console.log(`[PluginManager] Mounted ${mountedCount} new components`);
|
|
3163
|
-
this.emit('reinitialized', { container, count: mountedCount });
|
|
3164
|
-
|
|
3165
|
-
return mountedCount;
|
|
3166
|
-
}
|
|
3167
|
-
*/
|
|
3168
3152
|
async reinitialize(t = document) {
|
|
3169
3153
|
if (this.reinitializeInProgress)
|
|
3170
3154
|
return clearTimeout(this.pendingReinitialize), new Promise((i) => {
|
|
@@ -3180,8 +3164,8 @@ class Li {
|
|
|
3180
3164
|
this.components.forEach((n, h) => {
|
|
3181
3165
|
(t === document || t.contains(h)) && i.push({ element: h, instance: n });
|
|
3182
3166
|
}), i.forEach(({ element: n, instance: h }) => {
|
|
3183
|
-
const d = n.dataset.cbType,
|
|
3184
|
-
|
|
3167
|
+
const d = n.dataset.cbType, c = this.plugins.get(d);
|
|
3168
|
+
c && typeof c.unmount == "function" && c.unmount(n, h), this.components.delete(n);
|
|
3185
3169
|
});
|
|
3186
3170
|
const e = this.detectComponentTypesInContainer(t).filter(
|
|
3187
3171
|
(n) => this.config.plugins[n] && !this.plugins.has(n)
|
|
@@ -3195,15 +3179,18 @@ class Li {
|
|
|
3195
3179
|
const h = n.dataset.cbType, d = this.plugins.get(h);
|
|
3196
3180
|
if (d && typeof d.mount == "function")
|
|
3197
3181
|
try {
|
|
3198
|
-
const
|
|
3199
|
-
let
|
|
3200
|
-
|
|
3201
|
-
S.nodeType === 1 && S.tagName !== "STYLE" && S.tagName !== "SCRIPT" && S.setAttribute("data-index",
|
|
3182
|
+
const c = this.parseOptions(n);
|
|
3183
|
+
let f = n.querySelector(".grid-sortable");
|
|
3184
|
+
f || n.classList.contains("grid-sortable") && (f = n), f && Array.from(f.children).forEach((S, T) => {
|
|
3185
|
+
S.nodeType === 1 && S.tagName !== "STYLE" && S.tagName !== "SCRIPT" && S.setAttribute("data-index", T);
|
|
3186
|
+
}), n.querySelectorAll(".edit").forEach((S, T) => {
|
|
3187
|
+
const K = `content-${Date.now()}-${r}-${T}`;
|
|
3188
|
+
S.setAttribute("data-edit-id", K);
|
|
3202
3189
|
}), n.hasAttribute("data-cb-original-content") ? n.innerHTML = n.getAttribute("data-cb-original-content") : n.setAttribute("data-cb-original-content", n.innerHTML);
|
|
3203
|
-
const
|
|
3204
|
-
this.components.set(n,
|
|
3205
|
-
} catch (
|
|
3206
|
-
console.error(`[PluginManager] Failed to mount component "${h}":`,
|
|
3190
|
+
const _ = await d.mount(n, c);
|
|
3191
|
+
this.components.set(n, _), this.setupInlineEditing(n, c), n.setAttribute("data-cb-loaded", "true"), r++;
|
|
3192
|
+
} catch (c) {
|
|
3193
|
+
console.error(`[PluginManager] Failed to mount component "${h}":`, c);
|
|
3207
3194
|
}
|
|
3208
3195
|
}
|
|
3209
3196
|
return this.emit("reinitialized", { container: t, count: r }), r;
|
|
@@ -3345,11 +3332,13 @@ class Li {
|
|
|
3345
3332
|
* Destroy all components and plugins
|
|
3346
3333
|
*/
|
|
3347
3334
|
destroy() {
|
|
3348
|
-
this.components.forEach((
|
|
3349
|
-
const
|
|
3350
|
-
|
|
3351
|
-
}),
|
|
3352
|
-
|
|
3335
|
+
this.components.forEach((i, s) => {
|
|
3336
|
+
const e = s.dataset.cbType, a = this.plugins.get(e);
|
|
3337
|
+
a && typeof a.unmount == "function" && a.unmount(s, i);
|
|
3338
|
+
}), element.querySelectorAll('[contenteditable="true"]').forEach((i) => {
|
|
3339
|
+
i.removeAttribute("contenteditable"), i._cbObserver && (i._cbObserver.disconnect(), delete i._cbObserver);
|
|
3340
|
+
}), this.plugins.forEach((i, s) => {
|
|
3341
|
+
typeof i.destroy == "function" && i.destroy(this);
|
|
3353
3342
|
}), this.components.clear(), this.plugins.clear();
|
|
3354
3343
|
}
|
|
3355
3344
|
/**
|
|
@@ -3513,17 +3502,17 @@ class Yi {
|
|
|
3513
3502
|
let d = n.getAttribute("href");
|
|
3514
3503
|
if (d && d.indexOf("#") === 0)
|
|
3515
3504
|
if (d.indexOf("#section") === 0) {
|
|
3516
|
-
let
|
|
3517
|
-
if (!isNaN(parseInt(
|
|
3518
|
-
let
|
|
3519
|
-
|
|
3520
|
-
|
|
3505
|
+
let c = d.replace("#section", "");
|
|
3506
|
+
if (!isNaN(parseInt(c))) {
|
|
3507
|
+
let f = document.querySelectorAll(".is-section"), b, _ = 0;
|
|
3508
|
+
f.forEach(function(S) {
|
|
3509
|
+
S.classList.contains("is-section-navbar") || (_ === c - 1 && (b = S), _++);
|
|
3521
3510
|
}), b && this.scrollIt(b, 1e3, "easeInQuad"), h.preventDefault();
|
|
3522
3511
|
}
|
|
3523
3512
|
} else
|
|
3524
3513
|
try {
|
|
3525
|
-
let
|
|
3526
|
-
|
|
3514
|
+
let c = document.querySelector(d);
|
|
3515
|
+
c && (this.scrollIt(c, 1e3, "easeInQuad"), h.preventDefault());
|
|
3527
3516
|
} catch {
|
|
3528
3517
|
}
|
|
3529
3518
|
});
|
|
@@ -3589,12 +3578,12 @@ class Yi {
|
|
|
3589
3578
|
let a;
|
|
3590
3579
|
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) {
|
|
3591
3580
|
s <= 970 && n.querySelector(".is-box") && (n.querySelectorAll(".is-box").forEach((d) => {
|
|
3592
|
-
const
|
|
3593
|
-
d.getAttributeNames().map((
|
|
3594
|
-
|
|
3595
|
-
}),
|
|
3596
|
-
(
|
|
3597
|
-
}),
|
|
3581
|
+
const c = n.cloneNode(!1);
|
|
3582
|
+
d.getAttributeNames().map((f) => {
|
|
3583
|
+
f.indexOf("data-") !== -1 && c.setAttribute(f, d.getAttribute(f));
|
|
3584
|
+
}), c.classList.add("is-box"), d.classList.forEach((f) => {
|
|
3585
|
+
(f.indexOf("is-box-") !== -1 || f.indexOf("is-content-") !== -1 || f.indexOf("box-autofit") !== -1 || f.indexOf("is-light-text") !== -1 || f.indexOf("is-dark-text") !== -1 || f.indexOf("is-align-") !== -1 || f.indexOf("type-") !== -1 || f.indexOf("block-click") !== -1 || f.indexOf("hover-zoom") !== -1) && c.classList.add(f);
|
|
3586
|
+
}), c.setAttribute("data-section-clone", ""), c.innerHTML = d.innerHTML, n.parentNode.insertBefore(c, n);
|
|
3598
3587
|
}), n.setAttribute("data-section-original", ""), n.style.display = "none");
|
|
3599
3588
|
}), e ? a = document.querySelectorAll(".is-wrapper .section-pin") : a = document.querySelectorAll(".is-wrapper:not(.is-edit) .section-pin"), a.forEach(function(n) {
|
|
3600
3589
|
if (n.parentNode.closest(".section-wrap") || s <= 970 && n.hasAttribute("data-section-original")) return;
|
|
@@ -3603,10 +3592,10 @@ class Yi {
|
|
|
3603
3592
|
});
|
|
3604
3593
|
const r = (n) => {
|
|
3605
3594
|
document.querySelectorAll(".is-section").forEach((d) => {
|
|
3606
|
-
const
|
|
3607
|
-
let
|
|
3608
|
-
d.parentNode.classList.contains("pin-wrap") ? (
|
|
3609
|
-
|
|
3595
|
+
const c = d.getBoundingClientRect().top;
|
|
3596
|
+
let f, b;
|
|
3597
|
+
d.parentNode.classList.contains("pin-wrap") ? (f = d.parentNode.nextElementSibling, b = d.parentNode.previousElementSibling) : (f = d.nextElementSibling, b = d.previousElementSibling), f && f.classList.contains("pin-wrap") && (f = f.querySelector(".is-section")), b && b.classList.contains("pin-wrap") && (b = b.querySelector(".is-section")), c <= 0 && ((d.classList.contains("no-spacing") || d.classList.contains("pin-overlap")) && d.classList.add("section-inview"), document.querySelectorAll(".is-section").forEach((S) => {
|
|
3598
|
+
S !== d && S.classList.remove("section-inview");
|
|
3610
3599
|
}));
|
|
3611
3600
|
});
|
|
3612
3601
|
};
|
|
@@ -3729,13 +3718,13 @@ class Yi {
|
|
|
3729
3718
|
if (i) {
|
|
3730
3719
|
const n = i.closest("[data-gallery]");
|
|
3731
3720
|
let h = [];
|
|
3732
|
-
n ? h = n.querySelectorAll(".is-lightbox") : document.querySelectorAll(".is-lightbox,.block-click").forEach((
|
|
3733
|
-
|
|
3734
|
-
}), h.forEach((d,
|
|
3735
|
-
let
|
|
3736
|
-
|
|
3737
|
-
href:
|
|
3738
|
-
}), t ===
|
|
3721
|
+
n ? h = n.querySelectorAll(".is-lightbox") : document.querySelectorAll(".is-lightbox,.block-click").forEach((c) => {
|
|
3722
|
+
c.closest("[data-gallery]") || h.push(c);
|
|
3723
|
+
}), h.forEach((d, c) => {
|
|
3724
|
+
let f = d.getAttribute("href");
|
|
3725
|
+
f || (f = d.getAttribute("data-modal-url")), e.push({
|
|
3726
|
+
href: f
|
|
3727
|
+
}), t === f && (a = c);
|
|
3739
3728
|
});
|
|
3740
3729
|
}
|
|
3741
3730
|
const r = document.activeElement;
|
|
@@ -3830,32 +3819,32 @@ class Yi {
|
|
|
3830
3819
|
let n = [];
|
|
3831
3820
|
const h = r.attributes;
|
|
3832
3821
|
for (let d = 0; d < h.length; d++) {
|
|
3833
|
-
let
|
|
3834
|
-
if (
|
|
3835
|
-
const b = parseInt(
|
|
3822
|
+
let f = h[d].name.match(/^data--h-(\d+)$/);
|
|
3823
|
+
if (f) {
|
|
3824
|
+
const b = parseInt(f[1], 10);
|
|
3836
3825
|
n.push(b);
|
|
3837
3826
|
}
|
|
3838
3827
|
}
|
|
3839
|
-
n = [...new Set(n)], n.sort((d,
|
|
3828
|
+
n = [...new Set(n)], n.sort((d, c) => c - d);
|
|
3840
3829
|
for (let d = 0; d < n.length; d++) {
|
|
3841
|
-
const
|
|
3830
|
+
const c = n[d];
|
|
3842
3831
|
if (d === 0) {
|
|
3843
|
-
if (a >
|
|
3844
|
-
let
|
|
3845
|
-
|
|
3832
|
+
if (a > c) {
|
|
3833
|
+
let f = r.getAttribute("data--h");
|
|
3834
|
+
f ? r.style.height = f : r.style.height = "";
|
|
3846
3835
|
}
|
|
3847
3836
|
} else {
|
|
3848
|
-
const
|
|
3849
|
-
if (
|
|
3850
|
-
let b = r.getAttribute("data--h-" +
|
|
3837
|
+
const f = n[d - 1];
|
|
3838
|
+
if (f >= a && a > c) {
|
|
3839
|
+
let b = r.getAttribute("data--h-" + f);
|
|
3851
3840
|
b && (r.style.height = b);
|
|
3852
3841
|
}
|
|
3853
3842
|
}
|
|
3854
3843
|
}
|
|
3855
3844
|
if (n.length > 0 && n[n.length - 1] >= a) {
|
|
3856
|
-
const
|
|
3857
|
-
let
|
|
3858
|
-
|
|
3845
|
+
const c = n[n.length - 1];
|
|
3846
|
+
let f = r.getAttribute("data--h-" + c);
|
|
3847
|
+
f && (r.style.height = f);
|
|
3859
3848
|
}
|
|
3860
3849
|
}), document.querySelectorAll(".is-block").forEach((r) => {
|
|
3861
3850
|
if (!r.classList.contains("locked")) {
|
|
@@ -3866,29 +3855,29 @@ class Yi {
|
|
|
3866
3855
|
let n = [];
|
|
3867
3856
|
const h = r.attributes;
|
|
3868
3857
|
for (let d = 0; d < h.length; d++) {
|
|
3869
|
-
const
|
|
3870
|
-
let
|
|
3871
|
-
if (
|
|
3872
|
-
const b = parseInt(
|
|
3858
|
+
const c = h[d].name;
|
|
3859
|
+
let f = c.match(/^data--t-(\d+)$/);
|
|
3860
|
+
if (f) {
|
|
3861
|
+
const b = parseInt(f[1], 10);
|
|
3873
3862
|
n.push(b);
|
|
3874
3863
|
}
|
|
3875
|
-
if (
|
|
3876
|
-
const b = parseInt(
|
|
3864
|
+
if (f = c.match(/^data--w-(\d+)$/), f) {
|
|
3865
|
+
const b = parseInt(f[1], 10);
|
|
3877
3866
|
n.push(b);
|
|
3878
3867
|
}
|
|
3879
|
-
if (
|
|
3880
|
-
const b = parseInt(
|
|
3868
|
+
if (f = c.match(/^data--transform-(\d+)$/), f) {
|
|
3869
|
+
const b = parseInt(f[1], 10);
|
|
3881
3870
|
n.push(b);
|
|
3882
3871
|
}
|
|
3883
3872
|
}
|
|
3884
|
-
n = [...new Set(n)], n.sort((d,
|
|
3873
|
+
n = [...new Set(n)], n.sort((d, c) => c - d);
|
|
3885
3874
|
for (let d = 0; d < n.length; d++) {
|
|
3886
|
-
const
|
|
3875
|
+
const c = n[d];
|
|
3887
3876
|
if (d === 0)
|
|
3888
|
-
a >
|
|
3877
|
+
a > c && t.apply(r, 1e4, e);
|
|
3889
3878
|
else {
|
|
3890
|
-
const
|
|
3891
|
-
|
|
3879
|
+
const f = n[d - 1];
|
|
3880
|
+
f >= a && a > c && t.apply(r, f, e);
|
|
3892
3881
|
}
|
|
3893
3882
|
}
|
|
3894
3883
|
if (n.length > 0) {
|