@innovastudio/contentbox-interactive-runtime 1.0.15 → 1.0.17
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.
|
@@ -18,13 +18,13 @@ function xs() {
|
|
|
18
18
|
var _e = V, Ie = Q;
|
|
19
19
|
return V = Q = void 0, ue = Z, be = A.apply(Ie, _e);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Fe(Z) {
|
|
22
22
|
var _e = Z - we;
|
|
23
23
|
return we === void 0 || _e >= j || _e < 0 || xe && Z - ue >= ve;
|
|
24
24
|
}
|
|
25
25
|
function He() {
|
|
26
26
|
var Z = b();
|
|
27
|
-
if (
|
|
27
|
+
if (Fe(Z)) return Ge(Z);
|
|
28
28
|
X = setTimeout(He, (function(_e) {
|
|
29
29
|
var Ie = j - (_e - we);
|
|
30
30
|
return xe ? S(Ie, ve - (_e - ue)) : Ie;
|
|
@@ -34,7 +34,7 @@ function xs() {
|
|
|
34
34
|
return X = void 0, Le && V ? qe(Z) : (V = Q = void 0, be);
|
|
35
35
|
}
|
|
36
36
|
function Ae() {
|
|
37
|
-
var Z = b(), _e =
|
|
37
|
+
var Z = b(), _e = Fe(Z);
|
|
38
38
|
if (V = arguments, Q = this, we = Z, _e) {
|
|
39
39
|
if (X === void 0) return (function(Ie) {
|
|
40
40
|
return ue = Ie, X = setTimeout(He, j), Re ? qe(Ie) : be;
|
|
@@ -103,13 +103,13 @@ function xs() {
|
|
|
103
103
|
var _e = V, Ie = Q;
|
|
104
104
|
return V = Q = void 0, ue = Z, be = A.apply(Ie, _e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Fe(Z) {
|
|
107
107
|
var _e = Z - we;
|
|
108
108
|
return we === void 0 || _e >= j || _e < 0 || xe && Z - ue >= ve;
|
|
109
109
|
}
|
|
110
110
|
function He() {
|
|
111
111
|
var Z = $();
|
|
112
|
-
if (
|
|
112
|
+
if (Fe(Z)) return Ge(Z);
|
|
113
113
|
X = setTimeout(He, (function(_e) {
|
|
114
114
|
var Ie = j - (_e - we);
|
|
115
115
|
return xe ? E(Ie, ve - (_e - ue)) : Ie;
|
|
@@ -119,7 +119,7 @@ function xs() {
|
|
|
119
119
|
return X = void 0, Le && V ? qe(Z) : (V = Q = void 0, be);
|
|
120
120
|
}
|
|
121
121
|
function Ae() {
|
|
122
|
-
var Z = $(), _e =
|
|
122
|
+
var Z = $(), _e = Fe(Z);
|
|
123
123
|
if (V = arguments, Q = this, we = Z, _e) {
|
|
124
124
|
if (X === void 0) return (function(Ie) {
|
|
125
125
|
return ue = Ie, X = setTimeout(He, j), Re ? qe(Ie) : be;
|
|
@@ -133,7 +133,7 @@ function xs() {
|
|
|
133
133
|
}, Ae.flush = function() {
|
|
134
134
|
return X === void 0 ? be : Ge($());
|
|
135
135
|
}, Ae;
|
|
136
|
-
},
|
|
136
|
+
}, F = function() {
|
|
137
137
|
};
|
|
138
138
|
function ee(A) {
|
|
139
139
|
A && A.forEach(function(j) {
|
|
@@ -143,7 +143,7 @@ function xs() {
|
|
|
143
143
|
for (be = 0; be < ve.length; be += 1)
|
|
144
144
|
if ((X = ve[be]).dataset && X.dataset.aos || X.children && Q(X.children)) return !0;
|
|
145
145
|
return !1;
|
|
146
|
-
})(z.concat(V))) return
|
|
146
|
+
})(z.concat(V))) return F();
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
function K() {
|
|
@@ -153,7 +153,7 @@ function xs() {
|
|
|
153
153
|
return !!K();
|
|
154
154
|
}, ready: function(A, j) {
|
|
155
155
|
var z = window.document, V = new (K())(ee);
|
|
156
|
-
|
|
156
|
+
F = j, V.observe(z.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
|
|
157
157
|
} }, Ee = function(A, j) {
|
|
158
158
|
if (!(A instanceof j)) throw new TypeError("Cannot call a class as a function");
|
|
159
159
|
}, me = /* @__PURE__ */ (function() {
|
|
@@ -221,13 +221,13 @@ function xs() {
|
|
|
221
221
|
if (V === "false") return !1;
|
|
222
222
|
}
|
|
223
223
|
return V || z;
|
|
224
|
-
},
|
|
224
|
+
}, Y = function(A, j) {
|
|
225
225
|
return A.forEach(function(z, V) {
|
|
226
226
|
var Q = te(z.node, "mirror", j.mirror), ve = te(z.node, "once", j.once), be = te(z.node, "id"), X = j.useClassNames && z.node.getAttribute("data-aos"), we = [j.animatedClassName].concat(X ? X.split(" ") : []).filter(function(ue) {
|
|
227
227
|
return typeof ue == "string";
|
|
228
228
|
});
|
|
229
229
|
j.initClassName && z.node.classList.add(j.initClassName), z.position = { in: (function(ue, Re, xe) {
|
|
230
|
-
var Le = window.innerHeight, qe = te(ue, "anchor"),
|
|
230
|
+
var Le = window.innerHeight, qe = te(ue, "anchor"), Fe = te(ue, "anchor-placement"), He = Number(te(ue, "offset", Fe ? 0 : Re)), Ge = Fe || xe, Ae = ue;
|
|
231
231
|
qe && document.querySelectorAll(qe) && (Ae = document.querySelectorAll(qe)[0]);
|
|
232
232
|
var Z = se(Ae).top - Le;
|
|
233
233
|
switch (Ge) {
|
|
@@ -271,17 +271,17 @@ function xs() {
|
|
|
271
271
|
}, pe = [], Me = !1, ne = { 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 }, Pe = function() {
|
|
272
272
|
return document.all && !window.atob;
|
|
273
273
|
}, Ce = function() {
|
|
274
|
-
arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Me = !0), Me && (pe =
|
|
274
|
+
arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Me = !0), Me && (pe = Y(pe, ne), le(pe), window.addEventListener("scroll", _(function() {
|
|
275
275
|
le(pe, ne.once);
|
|
276
276
|
}, ne.throttleDelay)));
|
|
277
277
|
}, De = function() {
|
|
278
|
-
if (pe = Se(),
|
|
278
|
+
if (pe = Se(), Ye(ne.disable) || Pe()) return Ue();
|
|
279
279
|
Ce();
|
|
280
280
|
}, Ue = function() {
|
|
281
281
|
pe.forEach(function(A, j) {
|
|
282
282
|
A.node.removeAttribute("data-aos"), A.node.removeAttribute("data-aos-easing"), A.node.removeAttribute("data-aos-duration"), A.node.removeAttribute("data-aos-delay"), ne.initClassName && A.node.classList.remove(ne.initClassName), ne.animatedClassName && A.node.classList.remove(ne.animatedClassName);
|
|
283
283
|
});
|
|
284
|
-
},
|
|
284
|
+
}, Ye = function(A) {
|
|
285
285
|
return A === !0 || A === "mobile" && ce.mobile() || A === "phone" && ce.phone() || A === "tablet" && ce.tablet() || typeof A == "function" && A() === !0;
|
|
286
286
|
};
|
|
287
287
|
return { init: function(A) {
|
|
@@ -289,7 +289,7 @@ function xs() {
|
|
|
289
289
|
aos: MutationObserver is not supported on this browser,
|
|
290
290
|
code mutations observing has been disabled.
|
|
291
291
|
You may have to call "refreshHard()" by yourself.
|
|
292
|
-
`), ne.disableMutationObserver = !0), ne.disableMutationObserver || he.ready("[data-aos]", De),
|
|
292
|
+
`), ne.disableMutationObserver = !0), ne.disableMutationObserver || he.ready("[data-aos]", De), Ye(ne.disable) || Pe() ? Ue() : (document.querySelector("body").setAttribute("data-aos-easing", ne.easing), document.querySelector("body").setAttribute("data-aos-duration", ne.duration), document.querySelector("body").setAttribute("data-aos-delay", ne.delay), ["DOMContentLoaded", "load"].indexOf(ne.startEvent) === -1 ? document.addEventListener(ne.startEvent, function() {
|
|
293
293
|
Ce(!0);
|
|
294
294
|
}) : window.addEventListener("load", function() {
|
|
295
295
|
Ce(!0);
|
|
@@ -510,16 +510,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
510
510
|
P[M] || console.error("No lax driver with name: ", M);
|
|
511
511
|
var $, H = s(P[M], 2), U = H[0], J = H[1];
|
|
512
512
|
for ($ in E) {
|
|
513
|
-
var
|
|
513
|
+
var F, me = s(E[$], 3), ee = me[0], K = me[1], Te = me[2], re = Te === void 0 ? {} : Te, he = re.modValue, ye = re.frameStep, Ee = ye === void 0 ? 1 : ye, N = re.easing, me = re.inertia, Te = re.inertiaMode, ye = re.cssFn, re = re.cssUnit, re = re === void 0 ? "" : re, N = w[N];
|
|
514
514
|
D % Ee == 0 && (N = (function(G, ie, ce, fe) {
|
|
515
515
|
var le = 0;
|
|
516
|
-
if (G.forEach(function(
|
|
517
|
-
|
|
516
|
+
if (G.forEach(function(Y) {
|
|
517
|
+
Y < ce && le++;
|
|
518
518
|
}), le <= 0) return ie[0];
|
|
519
519
|
if (le >= G.length) return ie[G.length - 1];
|
|
520
520
|
var se, te = (te = G[se = le - 1], G = G[le], (ce - te) / (G - te));
|
|
521
521
|
return fe && (te = fe(te)), se = ie[se], ie = ie[le], se * (1 - (te = te)) + ie * te;
|
|
522
|
-
})(ee, K, he ? U % he : U, N), me && (
|
|
522
|
+
})(ee, K, he ? U % he : U, N), me && (F = J * me, Te === "absolute" && (F = Math.abs(F)), N += F), F = (re || p.includes($) ? "px" : g.includes($) ? "deg" : "") == "px" ? 0 : 3, F = N.toFixed(F), I[$] = ye ? ye(F, T.domElement) : F + re);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
T.applyStyles(I), T.onUpdate && T.onUpdate(P, T.domElement);
|
|
@@ -529,18 +529,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
529
529
|
for (P in T.transformsData) (function(M) {
|
|
530
530
|
var R = T.transformsData[M], I = {}, E = R.presets;
|
|
531
531
|
(E === void 0 ? [] : E).forEach(function(ee) {
|
|
532
|
-
var U, K = s(ee.split(":"), 3), J = K[0],
|
|
533
|
-
K ? (U = K(
|
|
532
|
+
var U, K = s(ee.split(":"), 3), J = K[0], F = K[1], ee = K[2], K = window.lax.presets[J];
|
|
533
|
+
K ? (U = K(F, ee), Object.keys(U).forEach(function(he) {
|
|
534
534
|
R[he] = U[he];
|
|
535
535
|
})) : console.error("Lax preset cannot be found with name: ", J);
|
|
536
536
|
}), delete R.presets;
|
|
537
537
|
for (var $ in R) (function(H) {
|
|
538
|
-
var U = s(R[H], 3), ee = U[0],
|
|
538
|
+
var U = s(R[H], 3), ee = U[0], F = ee === void 0 ? [-1e9, 1e9] : ee, ee = U[1], ee = ee === void 0 ? [-1e9, 1e9] : ee, U = U[2], U = U === void 0 ? {} : U, J = T.domElement.getBoundingClientRect(), F = x(F, D).map(function(K) {
|
|
539
539
|
return m(K, J, T.groupIndex);
|
|
540
540
|
}), ee = x(ee, D).map(function(K) {
|
|
541
541
|
return m(K, J, T.groupIndex);
|
|
542
542
|
});
|
|
543
|
-
I[H] = [
|
|
543
|
+
I[H] = [F, ee, U];
|
|
544
544
|
})($);
|
|
545
545
|
T.transforms[M] = I;
|
|
546
546
|
})(P);
|
|
@@ -595,12 +595,12 @@ class Ts {
|
|
|
595
595
|
i.hasAttribute("data-sm") && (H = !0);
|
|
596
596
|
let U = !1;
|
|
597
597
|
i.hasAttribute("data-md") && (U = !0), i.hasAttribute("data-lg"), i.hasAttribute("data-xl");
|
|
598
|
-
let J = {},
|
|
599
|
-
(t > 1280 || t > 970 && t <= 1280 && !U || t > 760 && t <= 970 && !H || t <= 760 && !$) && (ee = this.getObjVal(i, "data-t"), K = this.getObjVal(i, "data-t-100"), he = this.getObjVal(i, "data-t-200"), Ee = this.getObjVal(i, "data-t-300"), me = this.getObjVal(i, "data-t-400"), Te = this.getObjVal(i, "data-t-500"), ye = this.getObjVal(i, "data-t-600"), re = this.getObjVal(i, "data-t-700"), N = this.getObjVal(i, "data-t-800"), G = this.getObjVal(i, "data-t-900"), ie = this.getObjVal(i, "data-t-1000"), ce = this.getObjVal(i, "data-t-1100"), fe = this.getObjVal(i, "data-t-1200"), le = this.getObjVal(i, "data-t-1300"), se = this.getObjVal(i, "data-t-1400"), te = this.getObjVal(i, "data-t-1500"),
|
|
600
|
-
let ve = ee, be = K, X = he, we = Ee, ue = me, Re = Te, xe = ye, Le = re, qe = N,
|
|
601
|
-
nt < 730 ? (J = ve,
|
|
598
|
+
let J = {}, F = {}, ee = {}, K = {}, he = {}, Ee = {}, me = {}, Te = {}, ye = {}, re = {}, N = {}, G = {}, ie = {}, ce = {}, fe = {}, le = {}, se = {}, te = {}, Y = {}, Se = {}, pe = {}, Me = {}, ne = {}, Pe = {}, Ce = {}, De = {}, Ue = {}, Ye = {}, A = {}, j = {}, z = {}, V = {}, Q = {};
|
|
599
|
+
(t > 1280 || t > 970 && t <= 1280 && !U || t > 760 && t <= 970 && !H || t <= 760 && !$) && (ee = this.getObjVal(i, "data-t"), K = this.getObjVal(i, "data-t-100"), he = this.getObjVal(i, "data-t-200"), Ee = this.getObjVal(i, "data-t-300"), me = this.getObjVal(i, "data-t-400"), Te = this.getObjVal(i, "data-t-500"), ye = this.getObjVal(i, "data-t-600"), re = this.getObjVal(i, "data-t-700"), N = this.getObjVal(i, "data-t-800"), G = this.getObjVal(i, "data-t-900"), ie = this.getObjVal(i, "data-t-1000"), ce = this.getObjVal(i, "data-t-1100"), fe = this.getObjVal(i, "data-t-1200"), le = this.getObjVal(i, "data-t-1300"), se = this.getObjVal(i, "data-t-1400"), te = this.getObjVal(i, "data-t-1500"), Y = this.getObjVal(i, "data-t-1600"), Se = this.getObjVal(i, "data-t-1700"), pe = this.getObjVal(i, "data-t-1800"), Me = this.getObjVal(i, "data-t-1900"), ne = this.getObjVal(i, "data-t-2000"), Pe = this.getObjVal(i, "data-t-2100"), Ce = this.getObjVal(i, "data-t-2200"), De = this.getObjVal(i, "data-t-2300"), Ue = this.getObjVal(i, "data-t-2400"), Ye = this.getObjVal(i, "data-t-2500"), A = this.getObjVal(i, "data-t-2600"), j = this.getObjVal(i, "data-t-2700"), z = this.getObjVal(i, "data-t-2800")), t > 970 && t <= 1280 && U && (i.hasAttribute("data-md-t") && (ee = this.getObjVal(i, "data-md-t")), i.hasAttribute("data-md-t-100") && (K = this.getObjVal(i, "data-md-t-100")), i.hasAttribute("data-md-t-200") && (he = this.getObjVal(i, "data-md-t-200")), i.hasAttribute("data-md-t-300") && (Ee = this.getObjVal(i, "data-md-t-300")), i.hasAttribute("data-md-t-400") && (me = this.getObjVal(i, "data-md-t-400")), i.hasAttribute("data-md-t-500") && (Te = this.getObjVal(i, "data-md-t-500")), i.hasAttribute("data-md-t-600") && (ye = this.getObjVal(i, "data-md-t-600")), i.hasAttribute("data-md-t-700") && (re = this.getObjVal(i, "data-md-t-700")), i.hasAttribute("data-md-t-800") && (N = this.getObjVal(i, "data-md-t-800")), i.hasAttribute("data-md-t-900") && (G = this.getObjVal(i, "data-md-t-900")), i.hasAttribute("data-md-t-1000") && (ie = this.getObjVal(i, "data-md-t-1000")), i.hasAttribute("data-md-t-1100") && (ce = this.getObjVal(i, "data-md-t-1100")), i.hasAttribute("data-md-t-1200") && (fe = this.getObjVal(i, "data-md-t-1200")), i.hasAttribute("data-md-t-1300") && (le = this.getObjVal(i, "data-md-t-1300")), i.hasAttribute("data-md-t-1400") && (se = this.getObjVal(i, "data-md-t-1400")), i.hasAttribute("data-md-t-1500") && (te = this.getObjVal(i, "data-md-t-1500")), i.hasAttribute("data-md-t-1600") && (Y = this.getObjVal(i, "data-md-t-1600")), i.hasAttribute("data-md-t-1700") && (Se = this.getObjVal(i, "data-md-t-1700")), i.hasAttribute("data-md-t-1800") && (pe = this.getObjVal(i, "data-md-t-1800")), i.hasAttribute("data-md-t-1900") && (Me = this.getObjVal(i, "data-md-t-1900")), i.hasAttribute("data-md-t-2000") && (ne = this.getObjVal(i, "data-md-t-2000")), i.hasAttribute("data-md-t-2100") && (Pe = this.getObjVal(i, "data-md-t-2100")), i.hasAttribute("data-md-t-2200") && (Ce = this.getObjVal(i, "data-md-t-2200")), i.hasAttribute("data-md-t-2300") && (De = this.getObjVal(i, "data-md-t-2300")), i.hasAttribute("data-md-t-2400") && (Ue = this.getObjVal(i, "data-md-t-2400")), i.hasAttribute("data-md-t-2500") && (Ye = this.getObjVal(i, "data-md-t-2500")), i.hasAttribute("data-md-t-2600") && (A = this.getObjVal(i, "data-md-t-2600")), i.hasAttribute("data-md-t-2700") && (j = this.getObjVal(i, "data-md-t-2700")), i.hasAttribute("data-md-t-2800") && (z = this.getObjVal(i, "data-md-t-2800"))), t <= 970 && i.hasAttribute("m-data-out") && (E = this.getObjVal(i, "m-data-out")), (t > 760 && t <= 970 && H || t <= 760 && !$ && H) && (i.hasAttribute("data-sm-t") && (ee = this.getObjVal(i, "data-sm-t")), i.hasAttribute("data-sm-t-100") && (K = this.getObjVal(i, "data-sm-t-100")), i.hasAttribute("data-sm-t-200") && (he = this.getObjVal(i, "data-sm-t-200")), i.hasAttribute("data-sm-t-300") && (Ee = this.getObjVal(i, "data-sm-t-300")), i.hasAttribute("data-sm-t-400") && (me = this.getObjVal(i, "data-sm-t-400")), i.hasAttribute("data-sm-t-500") && (Te = this.getObjVal(i, "data-sm-t-500")), i.hasAttribute("data-sm-t-600") && (ye = this.getObjVal(i, "data-sm-t-600")), i.hasAttribute("data-sm-t-700") && (re = this.getObjVal(i, "data-sm-t-700")), i.hasAttribute("data-sm-t-800") && (N = this.getObjVal(i, "data-sm-t-800")), i.hasAttribute("data-sm-t-900") && (G = this.getObjVal(i, "data-sm-t-900")), i.hasAttribute("data-sm-t-1000") && (ie = this.getObjVal(i, "data-sm-t-1000")), i.hasAttribute("data-sm-t-1100") && (ce = this.getObjVal(i, "data-sm-t-1100")), i.hasAttribute("data-sm-t-1200") && (fe = this.getObjVal(i, "data-sm-t-1200")), i.hasAttribute("data-sm-t-1300") && (le = this.getObjVal(i, "data-sm-t-1300")), i.hasAttribute("data-sm-t-1400") && (se = this.getObjVal(i, "data-sm-t-1400")), i.hasAttribute("data-sm-t-1500") && (te = this.getObjVal(i, "data-sm-t-1500")), i.hasAttribute("data-sm-t-1600") && (Y = this.getObjVal(i, "data-sm-t-1600")), i.hasAttribute("data-sm-t-1700") && (Se = this.getObjVal(i, "data-sm-t-1700")), i.hasAttribute("data-sm-t-1800") && (pe = this.getObjVal(i, "data-sm-t-1800")), i.hasAttribute("data-sm-t-1900") && (Me = this.getObjVal(i, "data-sm-t-1900")), i.hasAttribute("data-sm-t-2000") && (ne = this.getObjVal(i, "data-sm-t-2000")), i.hasAttribute("data-sm-t-2100") && (Pe = this.getObjVal(i, "data-sm-t-2100")), i.hasAttribute("data-sm-t-2200") && (Ce = this.getObjVal(i, "data-sm-t-2200")), i.hasAttribute("data-sm-t-2300") && (De = this.getObjVal(i, "data-sm-t-2300")), i.hasAttribute("data-sm-t-2400") && (Ue = this.getObjVal(i, "data-sm-t-2400")), i.hasAttribute("data-sm-t-2500") && (Ye = this.getObjVal(i, "data-sm-t-2500")), i.hasAttribute("data-sm-t-2600") && (A = this.getObjVal(i, "data-sm-t-2600")), i.hasAttribute("data-sm-t-2700") && (j = this.getObjVal(i, "data-sm-t-2700")), i.hasAttribute("data-sm-t-2800") && (z = this.getObjVal(i, "data-sm-t-2800"))), t <= 414 && $ && (i.hasAttribute("data-xs-t") && (ee = this.getObjVal(i, "data-xs-t")), i.hasAttribute("data-xs-t-100") && (K = this.getObjVal(i, "data-xs-t-100")), i.hasAttribute("data-xs-t-200") && (he = this.getObjVal(i, "data-xs-t-200")), i.hasAttribute("data-xs-t-300") && (Ee = this.getObjVal(i, "data-xs-t-300")), i.hasAttribute("data-xs-t-400") && (me = this.getObjVal(i, "data-xs-t-400")), i.hasAttribute("data-xs-t-500") && (Te = this.getObjVal(i, "data-xs-t-500")), i.hasAttribute("data-xs-t-600") && (ye = this.getObjVal(i, "data-xs-t-600")), i.hasAttribute("data-xs-t-700") && (re = this.getObjVal(i, "data-xs-t-700")), i.hasAttribute("data-xs-t-800") && (N = this.getObjVal(i, "data-xs-t-800")), i.hasAttribute("data-xs-t-900") && (G = this.getObjVal(i, "data-xs-t-900")), i.hasAttribute("data-xs-t-1000") && (ie = this.getObjVal(i, "data-xs-t-1000")), i.hasAttribute("data-xs-t-1100") && (ce = this.getObjVal(i, "data-xs-t-1100")), i.hasAttribute("data-xs-t-1200") && (fe = this.getObjVal(i, "data-xs-t-1200")), i.hasAttribute("data-xs-t-1300") && (le = this.getObjVal(i, "data-xs-t-1300")), i.hasAttribute("data-xs-t-1400") && (se = this.getObjVal(i, "data-xs-t-1400")), i.hasAttribute("data-xs-t-1500") && (te = this.getObjVal(i, "data-xs-t-1500")), i.hasAttribute("data-xs-t-1600") && (Y = this.getObjVal(i, "data-xs-t-1600")), i.hasAttribute("data-xs-t-1700") && (Se = this.getObjVal(i, "data-xs-t-1700")), i.hasAttribute("data-xs-t-1800") && (pe = this.getObjVal(i, "data-xs-t-1800")), i.hasAttribute("data-xs-t-1900") && (Me = this.getObjVal(i, "data-xs-t-1900")), i.hasAttribute("data-xs-t-2000") && (ne = this.getObjVal(i, "data-xs-t-2000")), i.hasAttribute("data-xs-t-2100") && (Pe = this.getObjVal(i, "data-xs-t-2100")), i.hasAttribute("data-xs-t-2200") && (Ce = this.getObjVal(i, "data-xs-t-2200")), i.hasAttribute("data-xs-t-2300") && (De = this.getObjVal(i, "data-xs-t-2300")), i.hasAttribute("data-xs-t-2400") && (Ue = this.getObjVal(i, "data-xs-t-2400")), i.hasAttribute("data-xs-t-2500") && (Ye = this.getObjVal(i, "data-xs-t-2500")), i.hasAttribute("data-xs-t-2600") && (A = this.getObjVal(i, "data-xs-t-2600")), i.hasAttribute("data-xs-t-2700") && (j = this.getObjVal(i, "data-xs-t-2700")), i.hasAttribute("data-xs-t-2800") && (z = this.getObjVal(i, "data-xs-t-2800")));
|
|
600
|
+
let ve = ee, be = K, X = he, we = Ee, ue = me, Re = Te, xe = ye, Le = re, qe = N, Fe = G, He = ie, Ge = ce, Ae = fe, Z = le, _e = se, Ie = te, vt = Y, wt = Se, xt = pe, _t = Me, kt = ne, St = Pe, Et = Ce, Tt = De, Lt = Ue, Ct = Ye, At = A, Ot = j, Mt = z, nt = window.innerHeight;
|
|
601
|
+
nt < 730 ? (J = ve, F = be, ee = X, K = we, he = ue, Ee = Re, me = xe, Te = Le, ye = qe, re = Fe, N = He, G = Ge, ie = Ae, ce = Z, fe = _e, le = Ie, se = vt, te = wt, Y = xt, Se = _t, pe = kt, Me = St, ne = Et, Pe = Tt, Ce = Lt, De = Ct, Ue = At, Ye = Ot, A = Mt, j = {}, z = {}) : nt >= 730 && nt < 790 ? (F = ve, ee = be, K = X, he = we, Ee = ue, me = Re, Te = xe, ye = Le, re = qe, N = Fe, G = He, ie = Ge, ce = Ae, fe = Z, le = _e, se = Ie, te = vt, Y = wt, Se = xt, pe = _t, Me = kt, ne = St, Pe = Et, Ce = Tt, De = Lt, Ue = Ct, Ye = At, A = Ot, j = Mt, z = {}) : nt >= 790 && nt < 840 || (nt >= 840 && nt < 1125 ? (ee = {}, K = ve, he = be, Ee = X, me = we, Te = ue, ye = Re, re = xe, N = Le, G = qe, ie = Fe, ce = He, fe = Ge, le = Ae, se = Z, te = _e, Y = Ie, Se = vt, pe = wt, Me = xt, ne = _t, Pe = kt, Ce = St, De = Et, Ue = Tt, Ye = Lt, A = Ct, j = At, z = Ot, V = Mt) : (ee = {}, K = {}, he = ve, Ee = be, me = X, Te = we, ye = ue, re = Re, N = xe, G = Le, ie = qe, ce = Fe, fe = He, le = Ge, se = Ae, te = Z, Y = _e, Se = Ie, pe = vt, Me = wt, ne = xt, Pe = _t, Ce = kt, De = St, Ue = Et, Ye = Tt, A = Lt, j = Ct, z = At, V = Ot, Q = Mt));
|
|
602
602
|
let L = {};
|
|
603
|
-
Object.keys(T).length !== 0 && (L = this.parseObj(T, "elInY", L)), Object.keys(C).length !== 0 && (L = this.parseObj(C, "elInY+50", L)), Object.keys(k).length !== 0 && (L = this.parseObj(k, "elInY+100", L)), Object.keys(y).length !== 0 && (L = this.parseObj(y, "elInY+150", L)), Object.keys(f).length !== 0 && (L = this.parseObj(f, "elInY+200", L)), Object.keys(_).length !== 0 && (L = this.parseObj(_, "elInY+250", L)), Object.keys(v).length !== 0 && (L = this.parseObj(v, "elInY+300", L)), Object.keys(m).length !== 0 && (L = this.parseObj(m, "elInY+350", L)), Object.keys(x).length !== 0 && (L = this.parseObj(x, "elInY+400", L)), Object.keys(b).length !== 0 && (L = this.parseObj(b, "elInY+450", L)), Object.keys(S).length !== 0 && (L = this.parseObj(S, "elInY+500", L)), Object.keys(w).length !== 0 && (L = this.parseObj(w, "elInY+550", L)), Object.keys(g).length !== 0 && (L = this.parseObj(g, "elInY+600", L)), Object.keys(p).length !== 0 && (L = this.parseObj(p, "elInY+650", L)), Object.keys(h).length !== 0 && (L = this.parseObj(h, "elCenterY-300", L)), Object.keys(o).length !== 0 && (L = this.parseObj(o, "elCenterY", L)), Object.keys(u).length !== 0 && (L = this.parseObj(u, "elCenterY+100", L)), Object.keys(c).length !== 0 && (L = this.parseObj(c, "elCenterY+200", L)), Object.keys(l).length !== 0 && (L = this.parseObj(l, "elCenterY+300", L)), Object.keys(a).length !== 0 && (L = this.parseObj(a, "elOutY-300", L)), Object.keys(r).length !== 0 && (L = this.parseObj(r, "elOutY", L)), Object.keys(O).length !== 0 && (L = this.parseObj(O, "elInY", L)), Object.keys(q).length !== 0 && (L = this.parseObj(q, "elInY+150", L)), Object.keys(B).length !== 0 && (L = this.parseObj(B, "elInY+300 ", L)), Object.keys(P).length !== 0 && (L = this.parseObj(P, "elCenterY-150", L)), Object.keys(D).length !== 0 && (L = this.parseObj(D, "elCenterY", L)), Object.keys(M).length !== 0 && (L = this.parseObj(M, "elCenterY+150", L)), Object.keys(R).length !== 0 && (L = this.parseObj(R, "elOutY-300 ", L)), Object.keys(I).length !== 0 && (L = this.parseObj(I, "elOutY-150 ", L)), Object.keys(E).length !== 0 && (L = this.parseObj(E, "elOutY", L)), Object.keys(J).length !== 0 && (L = this.parseObj(J, "elInY-200", L)), Object.keys(
|
|
603
|
+
Object.keys(T).length !== 0 && (L = this.parseObj(T, "elInY", L)), Object.keys(C).length !== 0 && (L = this.parseObj(C, "elInY+50", L)), Object.keys(k).length !== 0 && (L = this.parseObj(k, "elInY+100", L)), Object.keys(y).length !== 0 && (L = this.parseObj(y, "elInY+150", L)), Object.keys(f).length !== 0 && (L = this.parseObj(f, "elInY+200", L)), Object.keys(_).length !== 0 && (L = this.parseObj(_, "elInY+250", L)), Object.keys(v).length !== 0 && (L = this.parseObj(v, "elInY+300", L)), Object.keys(m).length !== 0 && (L = this.parseObj(m, "elInY+350", L)), Object.keys(x).length !== 0 && (L = this.parseObj(x, "elInY+400", L)), Object.keys(b).length !== 0 && (L = this.parseObj(b, "elInY+450", L)), Object.keys(S).length !== 0 && (L = this.parseObj(S, "elInY+500", L)), Object.keys(w).length !== 0 && (L = this.parseObj(w, "elInY+550", L)), Object.keys(g).length !== 0 && (L = this.parseObj(g, "elInY+600", L)), Object.keys(p).length !== 0 && (L = this.parseObj(p, "elInY+650", L)), Object.keys(h).length !== 0 && (L = this.parseObj(h, "elCenterY-300", L)), Object.keys(o).length !== 0 && (L = this.parseObj(o, "elCenterY", L)), Object.keys(u).length !== 0 && (L = this.parseObj(u, "elCenterY+100", L)), Object.keys(c).length !== 0 && (L = this.parseObj(c, "elCenterY+200", L)), Object.keys(l).length !== 0 && (L = this.parseObj(l, "elCenterY+300", L)), Object.keys(a).length !== 0 && (L = this.parseObj(a, "elOutY-300", L)), Object.keys(r).length !== 0 && (L = this.parseObj(r, "elOutY", L)), Object.keys(O).length !== 0 && (L = this.parseObj(O, "elInY", L)), Object.keys(q).length !== 0 && (L = this.parseObj(q, "elInY+150", L)), Object.keys(B).length !== 0 && (L = this.parseObj(B, "elInY+300 ", L)), Object.keys(P).length !== 0 && (L = this.parseObj(P, "elCenterY-150", L)), Object.keys(D).length !== 0 && (L = this.parseObj(D, "elCenterY", L)), Object.keys(M).length !== 0 && (L = this.parseObj(M, "elCenterY+150", L)), Object.keys(R).length !== 0 && (L = this.parseObj(R, "elOutY-300 ", L)), Object.keys(I).length !== 0 && (L = this.parseObj(I, "elOutY-150 ", L)), Object.keys(E).length !== 0 && (L = this.parseObj(E, "elOutY", L)), Object.keys(J).length !== 0 && (L = this.parseObj(J, "elInY-200", L)), Object.keys(F).length !== 0 && (L = this.parseObj(F, "elInY-100", L)), Object.keys(ee).length !== 0 && (L = this.parseObj(ee, "elInY", L)), Object.keys(K).length !== 0 && (L = this.parseObj(K, "elInY+100", L)), Object.keys(he).length !== 0 && (L = this.parseObj(he, "elInY+200", L)), Object.keys(Ee).length !== 0 && (L = this.parseObj(Ee, "elInY+300 ", L)), Object.keys(me).length !== 0 && (L = this.parseObj(me, "elInY+400 ", L)), Object.keys(Te).length !== 0 && (L = this.parseObj(Te, "elInY+500 ", L)), Object.keys(ye).length !== 0 && (L = this.parseObj(ye, "elInY+600 ", L)), Object.keys(re).length !== 0 && (L = this.parseObj(re, "elInY+700 ", L)), Object.keys(N).length !== 0 && (L = this.parseObj(N, "elInY+800 ", L)), Object.keys(G).length !== 0 && (L = this.parseObj(G, "elInY+900 ", L)), Object.keys(ie).length !== 0 && (L = this.parseObj(ie, "elInY+1000 ", L)), Object.keys(ce).length !== 0 && (L = this.parseObj(ce, "elInY+1100 ", L)), Object.keys(fe).length !== 0 && (L = this.parseObj(fe, "elInY+1200 ", L)), Object.keys(le).length !== 0 && (L = this.parseObj(le, "elInY+1300 ", L)), Object.keys(se).length !== 0 && (L = this.parseObj(se, "elInY+1400 ", L)), Object.keys(te).length !== 0 && (L = this.parseObj(te, "elInY+1500 ", L)), Object.keys(Y).length !== 0 && (L = this.parseObj(Y, "elInY+1600 ", L)), Object.keys(Se).length !== 0 && (L = this.parseObj(Se, "elInY+1700 ", L)), Object.keys(pe).length !== 0 && (L = this.parseObj(pe, "elInY+1800 ", L)), Object.keys(Me).length !== 0 && (L = this.parseObj(Me, "elInY+1900 ", L)), Object.keys(ne).length !== 0 && (L = this.parseObj(ne, "elInY+2000 ", L)), Object.keys(Pe).length !== 0 && (L = this.parseObj(Pe, "elInY+2100 ", L)), Object.keys(Ce).length !== 0 && (L = this.parseObj(Ce, "elInY+2200 ", L)), Object.keys(De).length !== 0 && (L = this.parseObj(De, "elInY+2300 ", L)), Object.keys(Ue).length !== 0 && (L = this.parseObj(Ue, "elInY+2400 ", L)), Object.keys(Ye).length !== 0 && (L = this.parseObj(Ye, "elInY+2500 ", L)), Object.keys(A).length !== 0 && (L = this.parseObj(A, "elInY+2600 ", L)), Object.keys(j).length !== 0 && (L = this.parseObj(j, "elInY+2700 ", L)), Object.keys(z).length !== 0 && (L = this.parseObj(z, "elInY+2800 ", L)), Object.keys(V).length !== 0 && (L = this.parseObj(V, "elInY+2900 ", L)), Object.keys(Q).length !== 0 && (L = this.parseObj(Q, "elInY+3000 ", L)), i.style.transition = "", i.setAttribute("data-dummy-selector", "1"), lt.addElements("[data-dummy-selector]", {
|
|
604
604
|
scrollY: L
|
|
605
605
|
}), this.elements.push(document.querySelector("[data-dummy-selector]")), i.removeAttribute("data-dummy-selector"), setTimeout(() => {
|
|
606
606
|
i.style.opacity = 1, i.getAttribute("data-smooth-scrolling") === "off" || this.settings.transition && (i.style.transition = this.settings.transition);
|
|
@@ -703,7 +703,7 @@ function Ls() {
|
|
|
703
703
|
}), si;
|
|
704
704
|
}
|
|
705
705
|
var Cs = Ls();
|
|
706
|
-
const
|
|
706
|
+
const Yt = /* @__PURE__ */ gi(Cs);
|
|
707
707
|
Array.prototype.each = function(d) {
|
|
708
708
|
const e = this.length;
|
|
709
709
|
for (let t = 0; t < e; t++) {
|
|
@@ -726,7 +726,7 @@ let $t = class {
|
|
|
726
726
|
* @param {DefaultOptions.trigger} [options=DefaultOptions.trigger] options
|
|
727
727
|
*/
|
|
728
728
|
constructor(e, t) {
|
|
729
|
-
this.element = e, t =
|
|
729
|
+
this.element = e, t = Yt(new mi().trigger, t), this.offset = t.offset, this.toggle = t.toggle, this.once = t.once, this.visible = null, this.active = !0;
|
|
730
730
|
}
|
|
731
731
|
/**
|
|
732
732
|
* Checks if the Trigger is in the viewport, calls the callbacks and toggles the classes
|
|
@@ -907,7 +907,7 @@ let $t = class {
|
|
|
907
907
|
_parseOptions(e) {
|
|
908
908
|
let t = new mi().scroll;
|
|
909
909
|
typeof e != "function" ? (t.callback = () => {
|
|
910
|
-
}, t =
|
|
910
|
+
}, t = Yt(t, e)) : t.callback = e, this.element = t.element, this.sustain = t.sustain, this.callback = t.callback, this.startCallback = t.start, this.stopCallback = t.stop, this.directionChange = t.directionChange;
|
|
911
911
|
}
|
|
912
912
|
/**
|
|
913
913
|
* Callback when the user scrolled the element
|
|
@@ -1001,7 +1001,7 @@ class qs {
|
|
|
1001
1001
|
* @private
|
|
1002
1002
|
*/
|
|
1003
1003
|
_parseOptions(e) {
|
|
1004
|
-
e =
|
|
1004
|
+
e = Yt(new mi(), e), this.defaultTrigger = e.trigger, this.scrollOptions = e.scroll;
|
|
1005
1005
|
}
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Initializes the collection, picks all [data-scroll] elements as initial elements
|
|
@@ -1074,7 +1074,7 @@ class qs {
|
|
|
1074
1074
|
* @returns Trigger
|
|
1075
1075
|
*/
|
|
1076
1076
|
createTrigger(e, t) {
|
|
1077
|
-
return new ct(e,
|
|
1077
|
+
return new ct(e, Yt(this.defaultTrigger, t));
|
|
1078
1078
|
}
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Creates an array of triggers
|
|
@@ -1420,14 +1420,14 @@ function Ds(d) {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
});
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1423
|
+
function Ft(d) {
|
|
1424
1424
|
return Math.sqrt(d.x * d.x + d.y * d.y);
|
|
1425
1425
|
}
|
|
1426
1426
|
function $s(d, e) {
|
|
1427
1427
|
return d.x * e.x + d.y * e.y;
|
|
1428
1428
|
}
|
|
1429
1429
|
function Hs(d, e) {
|
|
1430
|
-
var t =
|
|
1430
|
+
var t = Ft(d) * Ft(e);
|
|
1431
1431
|
if (t === 0)
|
|
1432
1432
|
return 0;
|
|
1433
1433
|
var s = $s(d, e) / t;
|
|
@@ -1483,7 +1483,7 @@ class Us {
|
|
|
1483
1483
|
if (i > 1) {
|
|
1484
1484
|
this._cancelLongTap(), this._cancelSingleTap();
|
|
1485
1485
|
var n = { x: e.touches[1].pageX - this.x1, y: e.touches[1].pageY - this.y1 };
|
|
1486
|
-
s.x = n.x, s.y = n.y, this.pinchStartLen =
|
|
1486
|
+
s.x = n.x, s.y = n.y, this.pinchStartLen = Ft(s), this.multipointStart.dispatch(e, this.element);
|
|
1487
1487
|
}
|
|
1488
1488
|
this._preventTap = !1, this.longTapTimeout = setTimeout(
|
|
1489
1489
|
(function() {
|
|
@@ -1497,7 +1497,7 @@ class Us {
|
|
|
1497
1497
|
var t = this.preV, s = e.touches.length, i = e.touches[0].pageX, n = e.touches[0].pageY;
|
|
1498
1498
|
if (this.isDoubleTap = !1, s > 1) {
|
|
1499
1499
|
var r = e.touches[1].pageX, a = e.touches[1].pageY, l = { x: e.touches[1].pageX - i, y: e.touches[1].pageY - n };
|
|
1500
|
-
t.x !== null && (this.pinchStartLen > 0 && (e.zoom =
|
|
1500
|
+
t.x !== null && (this.pinchStartLen > 0 && (e.zoom = Ft(l) / this.pinchStartLen, this.pinch.dispatch(e, this.element)), e.angle = Vs(l, t), this.rotate.dispatch(e, this.element)), t.x = l.x, t.y = l.y, this.x2 !== null && this.sx2 !== null ? (e.deltaX = (i - this.x2 + r - this.sx2) / 2, e.deltaY = (n - this.y2 + a - this.sy2) / 2) : (e.deltaX = 0, e.deltaY = 0), this.twoFingerPressMove.dispatch(e, this.element), this.sx2 = r, this.sy2 = a;
|
|
1501
1501
|
} else {
|
|
1502
1502
|
if (this.x2 !== null) {
|
|
1503
1503
|
e.deltaX = i - this.x2, e.deltaY = n - this.y2;
|
|
@@ -1559,7 +1559,7 @@ function ri(d) {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
}), s.style.opacity = "", n && (n.style.opacity = "");
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function Ys(d) {
|
|
1563
1563
|
if (d.events.hasOwnProperty("touch"))
|
|
1564
1564
|
return !1;
|
|
1565
1565
|
let e = ss(), t = e.width, s = e.height, i = !1, n = null, r = null, a = null, l = !1, c = 1, u = 4.5, o = 1, h = !1, p = !1, g = null, w = null, S = null, b = null, x, m, v = 0, _ = 0, f = !1, y = !1, k = {}, C = {}, T = 0, O = 0, q;
|
|
@@ -1650,7 +1650,7 @@ function Fs(d) {
|
|
|
1650
1650
|
});
|
|
1651
1651
|
d.events.touch = D;
|
|
1652
1652
|
}
|
|
1653
|
-
class
|
|
1653
|
+
class Fs {
|
|
1654
1654
|
constructor(e, t, s = null) {
|
|
1655
1655
|
if (this.img = e, this.slide = t, this.onclose = s, this.img.setZoomEvents)
|
|
1656
1656
|
return !1;
|
|
@@ -2000,7 +2000,7 @@ class It {
|
|
|
2000
2000
|
toleranceY: s.dragToleranceY,
|
|
2001
2001
|
slide: e,
|
|
2002
2002
|
instance: this.instance
|
|
2003
|
-
}), i.zoomable && w.naturalWidth > w.offsetWidth && (ae(w, "zoomable"), new
|
|
2003
|
+
}), i.zoomable && w.naturalWidth > w.offsetWidth && (ae(w, "zoomable"), new Fs(w, e, () => {
|
|
2004
2004
|
this.instance.resize();
|
|
2005
2005
|
})), ge(h) && h();
|
|
2006
2006
|
});
|
|
@@ -2197,7 +2197,7 @@ class Bi {
|
|
|
2197
2197
|
var r = document.createElement("style");
|
|
2198
2198
|
r.type = "text/css", r.className = "gcss-styles", r.innerText = `.gscrollbar-fixer {margin-right: ${n}px}`, document.head.appendChild(r), ae(i, "gscrollbar-fixer");
|
|
2199
2199
|
}
|
|
2200
|
-
ae(i, "glightbox-open"), ae(oi, "glightbox-open"), zi && (ae(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (ae(this.prevButton, "glightbox-button-hidden"), ae(this.nextButton, "glightbox-button-hidden")) : (je(this.prevButton, "glightbox-button-hidden"), je(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), ge(this.settings.onOpen) && this.settings.onOpen(), Vi && this.settings.touchNavigation &&
|
|
2200
|
+
ae(i, "glightbox-open"), ae(oi, "glightbox-open"), zi && (ae(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (ae(this.prevButton, "glightbox-button-hidden"), ae(this.nextButton, "glightbox-button-hidden")) : (je(this.prevButton, "glightbox-button-hidden"), je(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), ge(this.settings.onOpen) && this.settings.onOpen(), Vi && this.settings.touchNavigation && Ys(this), this.settings.keyboardNavigation && Ds(this);
|
|
2201
2201
|
}
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Open at specific index
|
|
@@ -2949,7 +2949,7 @@ function Ui(d, e) {
|
|
|
2949
2949
|
}
|
|
2950
2950
|
return t;
|
|
2951
2951
|
}
|
|
2952
|
-
function
|
|
2952
|
+
function Yi(d) {
|
|
2953
2953
|
for (var e = 1; e < arguments.length; e++) {
|
|
2954
2954
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
2955
2955
|
e % 2 ? Ui(Object(t), !0).forEach(function(s) {
|
|
@@ -3309,7 +3309,7 @@ function di(d, e) {
|
|
|
3309
3309
|
t.classes = Object.assign({}, d.classes, e.classes);
|
|
3310
3310
|
var s = ["direction", "type", "slide", "arrow", "nav"];
|
|
3311
3311
|
s.forEach(function(i) {
|
|
3312
|
-
e.classes.hasOwnProperty(i) && (t.classes[i] =
|
|
3312
|
+
e.classes.hasOwnProperty(i) && (t.classes[i] = Yi(Yi({}, d.classes[i]), e.classes[i]));
|
|
3313
3313
|
});
|
|
3314
3314
|
}
|
|
3315
3315
|
return e.hasOwnProperty("breakpoints") && (t.breakpoints = Object.assign({}, d.breakpoints, e.breakpoints)), t;
|
|
@@ -3697,14 +3697,14 @@ function gn(d, e, t) {
|
|
|
3697
3697
|
}
|
|
3698
3698
|
}), s;
|
|
3699
3699
|
}
|
|
3700
|
-
function
|
|
3700
|
+
function Fi() {
|
|
3701
3701
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3702
3702
|
}
|
|
3703
3703
|
function Qt(d, e) {
|
|
3704
3704
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, i, n, r, a = 0, l = function() {
|
|
3705
|
-
a = t.leading === !1 ? 0 :
|
|
3705
|
+
a = t.leading === !1 ? 0 : Fi(), s = null, r = d.apply(i, n), s || (i = n = null);
|
|
3706
3706
|
}, c = function() {
|
|
3707
|
-
var o =
|
|
3707
|
+
var o = Fi();
|
|
3708
3708
|
!a && t.leading === !1 && (a = o);
|
|
3709
3709
|
var h = e - (o - a);
|
|
3710
3710
|
return i = this, n = arguments, h <= 0 || h > e ? (s && (clearTimeout(s), s = null), a = o, r = d.apply(i, n), s || (i = n = null)) : !s && t.trailing !== !1 && (s = setTimeout(l, h)), r;
|
|
@@ -5114,7 +5114,7 @@ function Un(d, e, t) {
|
|
|
5114
5114
|
function Zi(d) {
|
|
5115
5115
|
return pt(d) ? hn(d) : (it("Breakpoints option must be an object"), {});
|
|
5116
5116
|
}
|
|
5117
|
-
function
|
|
5117
|
+
function Yn(d, e, t) {
|
|
5118
5118
|
var s = new st(), i = d.settings, n = Zi(i.breakpoints), r = Object.assign({}, i), a = {
|
|
5119
5119
|
/**
|
|
5120
5120
|
* Matches settings for currectly matching media breakpoint.
|
|
@@ -5139,7 +5139,7 @@ function Fn(d, e, t) {
|
|
|
5139
5139
|
s.off("resize", window);
|
|
5140
5140
|
}), a;
|
|
5141
5141
|
}
|
|
5142
|
-
var
|
|
5142
|
+
var Fn = {
|
|
5143
5143
|
// Required
|
|
5144
5144
|
Html: yn,
|
|
5145
5145
|
Translate: In,
|
|
@@ -5160,7 +5160,7 @@ var Yn = {
|
|
|
5160
5160
|
Controls: Vn,
|
|
5161
5161
|
Keyboard: Bn,
|
|
5162
5162
|
Autoplay: Un,
|
|
5163
|
-
Breakpoints:
|
|
5163
|
+
Breakpoints: Yn
|
|
5164
5164
|
}, Wn = /* @__PURE__ */ (function(d) {
|
|
5165
5165
|
sn(t, d);
|
|
5166
5166
|
var e = on(t);
|
|
@@ -5171,7 +5171,7 @@ var Yn = {
|
|
|
5171
5171
|
key: "mount",
|
|
5172
5172
|
value: function() {
|
|
5173
5173
|
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5174
|
-
return Bt(ht(t.prototype), "mount", this).call(this, Object.assign({},
|
|
5174
|
+
return Bt(ht(t.prototype), "mount", this).call(this, Object.assign({}, Fn, i));
|
|
5175
5175
|
}
|
|
5176
5176
|
}]), t;
|
|
5177
5177
|
})(fn);
|
|
@@ -8471,9 +8471,9 @@ Check the information and return the details.
|
|
|
8471
8471
|
});
|
|
8472
8472
|
let H = await (async () => {
|
|
8473
8473
|
let U = [], J = this.builder.getFormValues();
|
|
8474
|
-
for (const
|
|
8475
|
-
if (
|
|
8476
|
-
const ee =
|
|
8474
|
+
for (const F of J)
|
|
8475
|
+
if (F.value instanceof FileList && F.type === "multifile") {
|
|
8476
|
+
const ee = F.value;
|
|
8477
8477
|
if (ee.length > 0) {
|
|
8478
8478
|
let K = 0;
|
|
8479
8479
|
for (const he of ee) {
|
|
@@ -9615,10 +9615,10 @@ class Rr {
|
|
|
9615
9615
|
g.width = E * H, g.height = $ * H, w.scale(H, H), g.style.width = `${E}px`, g.style.height = `${$}px`;
|
|
9616
9616
|
const U = k.naturalWidth, J = k.naturalHeight;
|
|
9617
9617
|
if (S.width = U * H, S.height = J * H, b.scale(H, H), S.style.width = `${U}px`, S.style.height = `${J}px`, C) {
|
|
9618
|
-
const
|
|
9619
|
-
|
|
9618
|
+
const F = document.createElement("canvas");
|
|
9619
|
+
F.width = C.width, F.height = C.height, F.getContext("2d").putImageData(C, 0, 0);
|
|
9620
9620
|
const K = document.createElement("canvas");
|
|
9621
|
-
K.width = T.width, K.height = T.height, K.getContext("2d").putImageData(T, 0, 0), w.drawImage(
|
|
9621
|
+
K.width = T.width, K.height = T.height, K.getContext("2d").putImageData(T, 0, 0), w.drawImage(F, 0, 0, C.width, C.height, 0, 0, g.width, g.height), b.drawImage(K, 0, 0, T.width, T.height, 0, 0, S.width, S.height);
|
|
9622
9622
|
}
|
|
9623
9623
|
};
|
|
9624
9624
|
let q = !1, B = parseInt(l.value, 10);
|
|
@@ -9647,8 +9647,8 @@ class Rr {
|
|
|
9647
9647
|
const {
|
|
9648
9648
|
x: $,
|
|
9649
9649
|
y: H
|
|
9650
|
-
} = P(E), U = S.width / g.width, J = S.height / g.height,
|
|
9651
|
-
w.fillStyle = "rgb(255, 255, 255)", w.beginPath(), w.arc($, H, B / 2, 0, Math.PI * 2), w.fill(), b.fillStyle = "rgb(255, 255, 255)", b.beginPath(), b.arc(
|
|
9650
|
+
} = P(E), U = S.width / g.width, J = S.height / g.height, F = $ * U, ee = H * J;
|
|
9651
|
+
w.fillStyle = "rgb(255, 255, 255)", w.beginPath(), w.arc($, H, B / 2, 0, Math.PI * 2), w.fill(), b.fillStyle = "rgb(255, 255, 255)", b.beginPath(), b.arc(F, ee, B / 2 * U, 0, Math.PI * 2), b.fill();
|
|
9652
9652
|
};
|
|
9653
9653
|
g.addEventListener("mousedown", D), g.addEventListener("mouseup", M), g.addEventListener("mousemove", R), g.addEventListener("touchstart", (E) => {
|
|
9654
9654
|
D(E), E.preventDefault();
|
|
@@ -10659,7 +10659,7 @@ class qr {
|
|
|
10659
10659
|
</div>
|
|
10660
10660
|
`;
|
|
10661
10661
|
this.appendHtml(m, E);
|
|
10662
|
-
const $ = p.querySelector(".livevideo"), H = p.querySelector(".photo-captured"), U = p.querySelector(".btn-selectfile2"), J = p.querySelector(".btn-takephoto2"),
|
|
10662
|
+
const $ = p.querySelector(".livevideo"), H = p.querySelector(".photo-captured"), U = p.querySelector(".btn-selectfile2"), J = p.querySelector(".btn-takephoto2"), F = p.querySelector(".btn-capturephoto"), ee = p.querySelector(".btn-clearphoto"), K = p.querySelector(".btn-stopcamera");
|
|
10663
10663
|
this.photoBlob = {};
|
|
10664
10664
|
let he;
|
|
10665
10665
|
U && U.addEventListener("click", (N) => {
|
|
@@ -10673,10 +10673,10 @@ class qr {
|
|
|
10673
10673
|
video: !0
|
|
10674
10674
|
}), $.srcObject = he;
|
|
10675
10675
|
} catch {
|
|
10676
|
-
alert("Unable to access the camera."), $.style.display = "none",
|
|
10676
|
+
alert("Unable to access the camera."), $.style.display = "none", F.style.display = "none", K.style.display = "none", y.style.display = "none", q.style.display = "none";
|
|
10677
10677
|
}
|
|
10678
10678
|
setTimeout(() => {
|
|
10679
|
-
J.style.display = "none", H.style.display = "none", $.style.display = "",
|
|
10679
|
+
J.style.display = "none", H.style.display = "none", $.style.display = "", F.style.display = "", ee.style.display = "none", U && (U.style.display = "none"), J.style.display = "none", K.style.display = "", y.style.display = "none", q.style.display = "none";
|
|
10680
10680
|
}, 100);
|
|
10681
10681
|
};
|
|
10682
10682
|
T && T.addEventListener("click", async (N) => {
|
|
@@ -10684,9 +10684,9 @@ class qr {
|
|
|
10684
10684
|
}), J.addEventListener("click", async (N) => {
|
|
10685
10685
|
N.preventDefault(), Ee();
|
|
10686
10686
|
}), K.addEventListener("click", () => {
|
|
10687
|
-
he && he.getTracks().forEach((N) => N.stop()), $.style.display = "none",
|
|
10688
|
-
}),
|
|
10689
|
-
if (N.preventDefault(), H.style.display = "", H.width = $.videoWidth, H.height = $.videoHeight, H.getContext("2d").drawImage($, 0, 0, H.width, H.height), he.getTracks().forEach((G) => G.stop()), $.style.display = "none",
|
|
10687
|
+
he && he.getTracks().forEach((N) => N.stop()), $.style.display = "none", F.style.display = "none", K.style.display = "none", J.style.display = "none", y.style.display = "", q.style.display = "";
|
|
10688
|
+
}), F.addEventListener("click", (N) => {
|
|
10689
|
+
if (N.preventDefault(), H.style.display = "", H.width = $.videoWidth, H.height = $.videoHeight, H.getContext("2d").drawImage($, 0, 0, H.width, H.height), he.getTracks().forEach((G) => G.stop()), $.style.display = "none", F.style.display = "none", ee.style.display = "", U && (U.style.display = ""), J.style.display = "", K.style.display = "none", H.toBlob((G) => {
|
|
10690
10690
|
this.photoBlob[w] = G, _.removeAttribute("required");
|
|
10691
10691
|
}, "image/jpeg"), J.style.display = "", o.useImageMask) {
|
|
10692
10692
|
const G = H.toDataURL("image/jpeg");
|
|
@@ -10702,9 +10702,9 @@ class qr {
|
|
|
10702
10702
|
});
|
|
10703
10703
|
const Te = (N, G) => {
|
|
10704
10704
|
const ie = `.${N.split(".").pop().toLowerCase()}`;
|
|
10705
|
-
if (!P.some((
|
|
10705
|
+
if (!P.some((Y) => Y.extensions.split(", ").includes(ie)))
|
|
10706
10706
|
return;
|
|
10707
|
-
let fe = B.images.some((
|
|
10707
|
+
let fe = B.images.some((Y) => Y.extensions.split(", ").includes(ie));
|
|
10708
10708
|
if (o.useImageMask) {
|
|
10709
10709
|
if (!fe)
|
|
10710
10710
|
return;
|
|
@@ -10718,21 +10718,21 @@ class qr {
|
|
|
10718
10718
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
10719
10719
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3" /><path d="M18 13.3l-6.3 -6.3" />
|
|
10720
10720
|
</svg>
|
|
10721
|
-
`, q.appendChild(se), se.addEventListener("click", (
|
|
10721
|
+
`, q.appendChild(se), se.addEventListener("click", (Y) => {
|
|
10722
10722
|
let pe = se.closest(".form-field").querySelector(".img-preview");
|
|
10723
10723
|
pe && pe.remove(), v.value = "", _.value = "", q.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && R.clearImage();
|
|
10724
10724
|
const Me = document.querySelector(".formview-container .submit-container");
|
|
10725
10725
|
Me && setTimeout(() => {
|
|
10726
10726
|
this.stickyElement(Me);
|
|
10727
|
-
}, 1e3),
|
|
10727
|
+
}, 1e3), Y.preventDefault(), Y.stopImmediatePropagation();
|
|
10728
10728
|
}), fe) {
|
|
10729
|
-
let
|
|
10730
|
-
|
|
10729
|
+
let Y = m.querySelector(".formview-container .img-preview");
|
|
10730
|
+
Y || (Y = document.createElement("img"), Y.className = "img-preview", m.appendChild(Y)), Y.src = N;
|
|
10731
10731
|
} else
|
|
10732
10732
|
I();
|
|
10733
10733
|
if (!G) {
|
|
10734
|
-
const
|
|
10735
|
-
this.settings.onInputChange && this.settings.onInputChange(
|
|
10734
|
+
const Y = this.getFormValues();
|
|
10735
|
+
this.settings.onInputChange && this.settings.onInputChange(Y);
|
|
10736
10736
|
}
|
|
10737
10737
|
const te = document.querySelector(".formview-container .submit-container");
|
|
10738
10738
|
te && setTimeout(() => {
|
|
@@ -10762,8 +10762,8 @@ class qr {
|
|
|
10762
10762
|
<path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" />
|
|
10763
10763
|
</svg>
|
|
10764
10764
|
`, q.appendChild(ce), ce.addEventListener("click", (se) => {
|
|
10765
|
-
let
|
|
10766
|
-
|
|
10765
|
+
let Y = ce.closest(".form-field").querySelector(".img-preview");
|
|
10766
|
+
Y && Y.remove(), _.value = "", q.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && R.clearImage();
|
|
10767
10767
|
const Se = document.querySelector(".formview-container .submit-container");
|
|
10768
10768
|
Se && setTimeout(() => {
|
|
10769
10769
|
this.stickyElement(Se);
|
|
@@ -10771,8 +10771,8 @@ class qr {
|
|
|
10771
10771
|
}), N.type.startsWith("image/")) {
|
|
10772
10772
|
const se = new FileReader();
|
|
10773
10773
|
se.onload = function(te) {
|
|
10774
|
-
let
|
|
10775
|
-
|
|
10774
|
+
let Y = m.querySelector(".formview-container .img-preview");
|
|
10775
|
+
Y || (Y = document.createElement("img"), Y.className = "img-preview", m.appendChild(Y)), Y.src = te.target.result;
|
|
10776
10776
|
}, se.readAsDataURL(N);
|
|
10777
10777
|
} else
|
|
10778
10778
|
I();
|
|
@@ -10785,7 +10785,7 @@ class qr {
|
|
|
10785
10785
|
}
|
|
10786
10786
|
}, re = (N) => {
|
|
10787
10787
|
if (N) {
|
|
10788
|
-
if (P = P.concat(B.images), !P.some((
|
|
10788
|
+
if (P = P.concat(B.images), !P.some((Y) => Y.type === N.type)) {
|
|
10789
10789
|
alert(this.out("Invalid file type."));
|
|
10790
10790
|
return;
|
|
10791
10791
|
}
|
|
@@ -10800,7 +10800,7 @@ class qr {
|
|
|
10800
10800
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
10801
10801
|
<path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" />
|
|
10802
10802
|
</svg>
|
|
10803
|
-
`, ce.appendChild(le), le.addEventListener("click", (
|
|
10803
|
+
`, ce.appendChild(le), le.addEventListener("click", (Y) => {
|
|
10804
10804
|
const Se = le.closest(".image-item");
|
|
10805
10805
|
Se && Se.remove(), ((ne) => {
|
|
10806
10806
|
const Pe = new DataTransfer(), Ce = _.files;
|
|
@@ -10811,13 +10811,13 @@ class qr {
|
|
|
10811
10811
|
const Me = document.querySelector(".formview-container .submit-container");
|
|
10812
10812
|
Me && setTimeout(() => {
|
|
10813
10813
|
this.stickyElement(Me);
|
|
10814
|
-
}, 1e3),
|
|
10814
|
+
}, 1e3), Y.preventDefault(), Y.stopImmediatePropagation();
|
|
10815
10815
|
}), N.type.startsWith("image/")) {
|
|
10816
|
-
const
|
|
10817
|
-
|
|
10816
|
+
const Y = new FileReader();
|
|
10817
|
+
Y.onload = function(Se) {
|
|
10818
10818
|
let pe = document.createElement("img");
|
|
10819
10819
|
pe.className = "img-preview", ie.appendChild(pe), pe.src = Se.target.result;
|
|
10820
|
-
},
|
|
10820
|
+
}, Y.readAsDataURL(N);
|
|
10821
10821
|
}
|
|
10822
10822
|
const se = this.getFormValues();
|
|
10823
10823
|
this.settings.onInputChange && this.settings.onInputChange(se);
|
|
@@ -11495,10 +11495,10 @@ ${R.data}
|
|
|
11495
11495
|
let J = 0;
|
|
11496
11496
|
for (; J < U.length; ) {
|
|
11497
11497
|
if ($ = I.slice(0, $.length + 1), J++, !O) {
|
|
11498
|
-
const
|
|
11499
|
-
q.innerHTML =
|
|
11498
|
+
const F = oe.parse($);
|
|
11499
|
+
q.innerHTML = F, E = F;
|
|
11500
11500
|
}
|
|
11501
|
-
await new Promise((
|
|
11501
|
+
await new Promise((F) => setTimeout(F, 50));
|
|
11502
11502
|
}
|
|
11503
11503
|
};
|
|
11504
11504
|
await this.sendStream(v, _, k, y, C, async (U) => {
|
|
@@ -12501,10 +12501,9 @@ class Nr {
|
|
|
12501
12501
|
// Text content changes
|
|
12502
12502
|
subtree: !0,
|
|
12503
12503
|
// Watch all descendants
|
|
12504
|
-
attributes: !0
|
|
12504
|
+
attributes: !0
|
|
12505
12505
|
// Attribute changes
|
|
12506
|
-
attributeFilter: [
|
|
12507
|
-
// Specifically watch style (color picker)
|
|
12506
|
+
// attributeFilter: ['style'] // Specifically watch style (color picker)
|
|
12508
12507
|
}), r._cbObserver = c;
|
|
12509
12508
|
});
|
|
12510
12509
|
}
|
|
@@ -12893,7 +12892,7 @@ class Hr {
|
|
|
12893
12892
|
return a ? a.classList.contains("is-section") ? a : t(a) : !1;
|
|
12894
12893
|
};
|
|
12895
12894
|
document.querySelectorAll(".is-arrow-down a").forEach(function(r) {
|
|
12896
|
-
r.addEventListener("click",
|
|
12895
|
+
r.addEventListener("click", (a) => {
|
|
12897
12896
|
let l = a.target.closest(".is-section");
|
|
12898
12897
|
if (l) {
|
|
12899
12898
|
let c = t(l);
|