@explorer-1/vue 0.0.2 → 0.0.3
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.
package/dist/explorer-1-vue.js
CHANGED
|
@@ -4,16 +4,14 @@ function ze(e) {
|
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
5
|
}
|
|
6
6
|
function i2(e) {
|
|
7
|
-
if (e.__esModule)
|
|
8
|
-
return e;
|
|
7
|
+
if (e.__esModule) return e;
|
|
9
8
|
var t = e.default;
|
|
10
9
|
if (typeof t == "function") {
|
|
11
10
|
var a = function s() {
|
|
12
11
|
return this instanceof s ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
|
|
13
12
|
};
|
|
14
13
|
a.prototype = t.prototype;
|
|
15
|
-
} else
|
|
16
|
-
a = {};
|
|
14
|
+
} else a = {};
|
|
17
15
|
return Object.defineProperty(a, "__esModule", { value: !0 }), Object.keys(e).forEach(function(s) {
|
|
18
16
|
var n = Object.getOwnPropertyDescriptor(e, s);
|
|
19
17
|
Object.defineProperty(a, s, n.get ? n : {
|
|
@@ -39,8 +37,7 @@ var Vo = { exports: {} };
|
|
|
39
37
|
var j = -V.utcOffset(), G = Math.abs(j), B = Math.floor(G / 60), P = G % 60;
|
|
40
38
|
return (j <= 0 ? "+" : "-") + C(B, 2, "0") + ":" + C(P, 2, "0");
|
|
41
39
|
}, m: function V(j, G) {
|
|
42
|
-
if (j.date() < G.date())
|
|
43
|
-
return -V(G, j);
|
|
40
|
+
if (j.date() < G.date()) return -V(G, j);
|
|
44
41
|
var B = 12 * (G.year() - j.year()) + (G.month() - j.month()), P = j.clone().add(B, f), W = G - P < 0, K = j.clone().add(B + (W ? -1 : 1), f);
|
|
45
42
|
return +(-(B + (G - P) / (W ? P - K : K - P)) || 0);
|
|
46
43
|
}, a: function(V) {
|
|
@@ -55,22 +52,19 @@ var Vo = { exports: {} };
|
|
|
55
52
|
return V instanceof q || !(!V || !V[O]);
|
|
56
53
|
}, U = function V(j, G, B) {
|
|
57
54
|
var P;
|
|
58
|
-
if (!j)
|
|
59
|
-
return N;
|
|
55
|
+
if (!j) return N;
|
|
60
56
|
if (typeof j == "string") {
|
|
61
57
|
var W = j.toLowerCase();
|
|
62
58
|
A[W] && (P = W), G && (A[W] = G, P = W);
|
|
63
59
|
var K = j.split("-");
|
|
64
|
-
if (!P && K.length > 1)
|
|
65
|
-
return V(K[0]);
|
|
60
|
+
if (!P && K.length > 1) return V(K[0]);
|
|
66
61
|
} else {
|
|
67
62
|
var se = j.name;
|
|
68
63
|
A[se] = j, P = se;
|
|
69
64
|
}
|
|
70
65
|
return !B && P && (N = P), P || !B && N;
|
|
71
66
|
}, k = function(V, j) {
|
|
72
|
-
if (z(V))
|
|
73
|
-
return V.clone();
|
|
67
|
+
if (z(V)) return V.clone();
|
|
74
68
|
var G = typeof j == "object" ? j : {};
|
|
75
69
|
return G.date = V, G.args = arguments, new q(G);
|
|
76
70
|
}, M = D;
|
|
@@ -85,12 +79,9 @@ var Vo = { exports: {} };
|
|
|
85
79
|
return j.parse = function(G) {
|
|
86
80
|
this.$d = function(B) {
|
|
87
81
|
var P = B.date, W = B.utc;
|
|
88
|
-
if (P === null)
|
|
89
|
-
|
|
90
|
-
if (
|
|
91
|
-
return /* @__PURE__ */ new Date();
|
|
92
|
-
if (P instanceof Date)
|
|
93
|
-
return new Date(P);
|
|
82
|
+
if (P === null) return /* @__PURE__ */ new Date(NaN);
|
|
83
|
+
if (M.u(P)) return /* @__PURE__ */ new Date();
|
|
84
|
+
if (P instanceof Date) return new Date(P);
|
|
94
85
|
if (typeof P == "string" && !/Z$/i.test(P)) {
|
|
95
86
|
var K = P.match(E);
|
|
96
87
|
if (K) {
|
|
@@ -154,8 +145,7 @@ var Vo = { exports: {} };
|
|
|
154
145
|
if (W === f || W === v) {
|
|
155
146
|
var ce = this.clone().set(y, 1);
|
|
156
147
|
ce.$d[se](re), ce.init(), this.$d = ce.set(y, Math.min(this.$D, ce.daysInMonth())).$d;
|
|
157
|
-
} else
|
|
158
|
-
se && this.$d[se](re);
|
|
148
|
+
} else se && this.$d[se](re);
|
|
159
149
|
return this.init(), this;
|
|
160
150
|
}, j.set = function(G, B) {
|
|
161
151
|
return this.clone().$set(G, B);
|
|
@@ -168,22 +158,17 @@ var Vo = { exports: {} };
|
|
|
168
158
|
var me = k(W);
|
|
169
159
|
return M.w(me.date(me.date() + Math.round(ve * G)), W);
|
|
170
160
|
};
|
|
171
|
-
if (K === f)
|
|
172
|
-
|
|
173
|
-
if (K ===
|
|
174
|
-
|
|
175
|
-
if (K === u)
|
|
176
|
-
return se(1);
|
|
177
|
-
if (K === p)
|
|
178
|
-
return se(7);
|
|
161
|
+
if (K === f) return this.set(f, this.$M + G);
|
|
162
|
+
if (K === v) return this.set(v, this.$y + G);
|
|
163
|
+
if (K === u) return se(1);
|
|
164
|
+
if (K === p) return se(7);
|
|
179
165
|
var re = (P = {}, P[o] = s, P[l] = n, P[r] = a, P)[K] || 1, ce = this.$d.getTime() + G * re;
|
|
180
166
|
return M.w(ce, this);
|
|
181
167
|
}, j.subtract = function(G, B) {
|
|
182
168
|
return this.add(-1 * G, B);
|
|
183
169
|
}, j.format = function(G) {
|
|
184
170
|
var B = this, P = this.$locale();
|
|
185
|
-
if (!this.isValid())
|
|
186
|
-
return P.invalidDate || $;
|
|
171
|
+
if (!this.isValid()) return P.invalidDate || $;
|
|
187
172
|
var W = G || "YYYY-MM-DDTHH:mm:ssZ", K = M.z(this), se = this.$H, re = this.$m, ce = this.$M, ve = P.weekdays, me = P.months, Re = P.meridiem, St = function(xe, dt, da, Na) {
|
|
188
173
|
return xe && (xe[dt] || xe(B, W)) || da[dt].slice(0, Na);
|
|
189
174
|
}, ca = function(xe) {
|
|
@@ -287,8 +272,7 @@ var Vo = { exports: {} };
|
|
|
287
272
|
}, j.$locale = function() {
|
|
288
273
|
return A[this.$L];
|
|
289
274
|
}, j.locale = function(G, B) {
|
|
290
|
-
if (!G)
|
|
291
|
-
return this.$L;
|
|
275
|
+
if (!G) return this.$L;
|
|
292
276
|
var P = this.clone(), W = U(G, B, !0);
|
|
293
277
|
return W && (P.$L = W), P;
|
|
294
278
|
}, j.clone = function() {
|
|
@@ -324,10 +308,9 @@ var Ro = { exports: {} };
|
|
|
324
308
|
return function(a, s, n) {
|
|
325
309
|
n.updateLocale = function(i, r) {
|
|
326
310
|
var o = n.Ls[i];
|
|
327
|
-
if (o)
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}), o;
|
|
311
|
+
if (o) return (r ? Object.keys(r) : []).forEach(function(l) {
|
|
312
|
+
o[l] = r[l];
|
|
313
|
+
}), o;
|
|
331
314
|
};
|
|
332
315
|
};
|
|
333
316
|
});
|
|
@@ -398,18 +381,15 @@ var Go = { exports: {} };
|
|
|
398
381
|
};
|
|
399
382
|
var f = p.startOf;
|
|
400
383
|
p.startOf = function(m, v) {
|
|
401
|
-
if (!this.$x || !this.$x.$timezone)
|
|
402
|
-
return f.call(this, m, v);
|
|
384
|
+
if (!this.$x || !this.$x.$timezone) return f.call(this, m, v);
|
|
403
385
|
var y = r(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
404
386
|
return f.call(y, m, v).tz(this.$x.$timezone, !0);
|
|
405
387
|
}, r.tz = function(m, v, y) {
|
|
406
388
|
var $ = y && v, E = y || v || o, b = u(+r(), E);
|
|
407
|
-
if (typeof m != "string")
|
|
408
|
-
return r(m).tz(E);
|
|
389
|
+
if (typeof m != "string") return r(m).tz(E);
|
|
409
390
|
var I = function(A, O, z) {
|
|
410
391
|
var U = A - 60 * O * 1e3, k = u(U, z);
|
|
411
|
-
if (O === k)
|
|
412
|
-
return [U, O];
|
|
392
|
+
if (O === k) return [U, O];
|
|
413
393
|
var M = u(U -= 60 * (k - O) * 1e3, z);
|
|
414
394
|
return k === M ? [U, k] : [A - 60 * Math.min(k, M) * 1e3, Math.max(k, M)];
|
|
415
395
|
}(r.utc(m, $).valueOf(), b, E), C = I[0], D = I[1], N = r(C).utcOffset(D);
|
|
@@ -433,8 +413,7 @@ var Uo = { exports: {} };
|
|
|
433
413
|
var n = s.prototype, i = n.format;
|
|
434
414
|
n.format = function(r) {
|
|
435
415
|
var o = this, l = this.$locale();
|
|
436
|
-
if (!this.isValid())
|
|
437
|
-
return i.bind(this)(r);
|
|
416
|
+
if (!this.isValid()) return i.bind(this)(r);
|
|
438
417
|
var u = this.$utils(), p = (r || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(f) {
|
|
439
418
|
switch (f) {
|
|
440
419
|
case "Q":
|
|
@@ -748,12 +727,11 @@ function Dn(e, t, a = {}, s, n, i) {
|
|
|
748
727
|
else if (typeof M == "function") {
|
|
749
728
|
const q = process.env.NODE_ENV !== "production" && n ? M : D(k, M);
|
|
750
729
|
U[k] = q, process.env.NODE_ENV !== "production" && (N.actions[k] = M), o.actions[k] = M;
|
|
751
|
-
} else
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
(U._getters = ma([]))).push(k));
|
|
730
|
+
} else process.env.NODE_ENV !== "production" && Ki(M) && (N.getters[k] = i ? (
|
|
731
|
+
// @ts-expect-error
|
|
732
|
+
a.getters[k]
|
|
733
|
+
) : M, ni && (U._getters || // @ts-expect-error: same
|
|
734
|
+
(U._getters = ma([]))).push(k));
|
|
757
735
|
}
|
|
758
736
|
if (Ae(O, U), Ae(Zd(O), U), Object.defineProperty(O, "$state", {
|
|
759
737
|
get: () => process.env.NODE_ENV !== "production" && n ? $.value : s.state.value[e],
|
|
@@ -3079,14 +3057,11 @@ var hl = { exports: {} };
|
|
|
3079
3057
|
}, D = function() {
|
|
3080
3058
|
function A(z, U, k) {
|
|
3081
3059
|
var M = this;
|
|
3082
|
-
if (this.$d = {}, this.$l = k, z === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), U)
|
|
3083
|
-
|
|
3084
|
-
if (typeof z == "
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
return Object.keys(z).forEach(function(V) {
|
|
3088
|
-
M.$d[$(V)] = z[V];
|
|
3089
|
-
}), this.calMilliseconds(), this;
|
|
3060
|
+
if (this.$d = {}, this.$l = k, z === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), U) return y(z * m[$(U)], this);
|
|
3061
|
+
if (typeof z == "number") return this.$ms = z, this.parseFromMilliseconds(), this;
|
|
3062
|
+
if (typeof z == "object") return Object.keys(z).forEach(function(V) {
|
|
3063
|
+
M.$d[$(V)] = z[V];
|
|
3064
|
+
}), this.calMilliseconds(), this;
|
|
3090
3065
|
if (typeof z == "string") {
|
|
3091
3066
|
var q = z.match(f);
|
|
3092
3067
|
if (q) {
|
|
@@ -3199,14 +3174,12 @@ var pl = { exports: {} };
|
|
|
3199
3174
|
})(Be, function() {
|
|
3200
3175
|
return function(a, s, n) {
|
|
3201
3176
|
var i = function(r, o) {
|
|
3202
|
-
if (!o || !o.length || o.length === 1 && !o[0] || o.length === 1 && Array.isArray(o[0]) && !o[0].length)
|
|
3203
|
-
return null;
|
|
3177
|
+
if (!o || !o.length || o.length === 1 && !o[0] || o.length === 1 && Array.isArray(o[0]) && !o[0].length) return null;
|
|
3204
3178
|
var l;
|
|
3205
3179
|
o.length === 1 && o[0].length > 0 && (o = o[0]), l = (o = o.filter(function(p) {
|
|
3206
3180
|
return p;
|
|
3207
3181
|
}))[0];
|
|
3208
|
-
for (var u = 1; u < o.length; u += 1)
|
|
3209
|
-
o[u].isValid() && !o[u][r](l) || (l = o[u]);
|
|
3182
|
+
for (var u = 1; u < o.length; u += 1) o[u].isValid() && !o[u][r](l) || (l = o[u]);
|
|
3210
3183
|
return l;
|
|
3211
3184
|
};
|
|
3212
3185
|
n.max = function() {
|
|
@@ -4042,8 +4015,7 @@ function Gp(e) {
|
|
|
4042
4015
|
const i = [], r = De(), o = function(p, f) {
|
|
4043
4016
|
f === void 0 && (f = {});
|
|
4044
4017
|
const m = r.MutationObserver || r.WebkitMutationObserver, v = new m((y) => {
|
|
4045
|
-
if (t.__preventObserver__)
|
|
4046
|
-
return;
|
|
4018
|
+
if (t.__preventObserver__) return;
|
|
4047
4019
|
if (y.length === 1) {
|
|
4048
4020
|
n("observerUpdate", y[0]);
|
|
4049
4021
|
return;
|
|
@@ -4085,8 +4057,7 @@ function Gp(e) {
|
|
|
4085
4057
|
var Up = {
|
|
4086
4058
|
on(e, t, a) {
|
|
4087
4059
|
const s = this;
|
|
4088
|
-
if (!s.eventsListeners || s.destroyed || typeof t != "function")
|
|
4089
|
-
return s;
|
|
4060
|
+
if (!s.eventsListeners || s.destroyed || typeof t != "function") return s;
|
|
4090
4061
|
const n = a ? "unshift" : "push";
|
|
4091
4062
|
return e.split(" ").forEach((i) => {
|
|
4092
4063
|
s.eventsListeners[i] || (s.eventsListeners[i] = []), s.eventsListeners[i][n](t);
|
|
@@ -4094,8 +4065,7 @@ var Up = {
|
|
|
4094
4065
|
},
|
|
4095
4066
|
once(e, t, a) {
|
|
4096
4067
|
const s = this;
|
|
4097
|
-
if (!s.eventsListeners || s.destroyed || typeof t != "function")
|
|
4098
|
-
return s;
|
|
4068
|
+
if (!s.eventsListeners || s.destroyed || typeof t != "function") return s;
|
|
4099
4069
|
function n() {
|
|
4100
4070
|
s.off(e, n), n.__emitterProxy && delete n.__emitterProxy;
|
|
4101
4071
|
for (var i = arguments.length, r = new Array(i), o = 0; o < i; o++)
|
|
@@ -4106,15 +4076,13 @@ var Up = {
|
|
|
4106
4076
|
},
|
|
4107
4077
|
onAny(e, t) {
|
|
4108
4078
|
const a = this;
|
|
4109
|
-
if (!a.eventsListeners || a.destroyed || typeof e != "function")
|
|
4110
|
-
return a;
|
|
4079
|
+
if (!a.eventsListeners || a.destroyed || typeof e != "function") return a;
|
|
4111
4080
|
const s = t ? "unshift" : "push";
|
|
4112
4081
|
return a.eventsAnyListeners.indexOf(e) < 0 && a.eventsAnyListeners[s](e), a;
|
|
4113
4082
|
},
|
|
4114
4083
|
offAny(e) {
|
|
4115
4084
|
const t = this;
|
|
4116
|
-
if (!t.eventsListeners || t.destroyed || !t.eventsAnyListeners)
|
|
4117
|
-
return t;
|
|
4085
|
+
if (!t.eventsListeners || t.destroyed || !t.eventsAnyListeners) return t;
|
|
4118
4086
|
const a = t.eventsAnyListeners.indexOf(e);
|
|
4119
4087
|
return a >= 0 && t.eventsAnyListeners.splice(a, 1), t;
|
|
4120
4088
|
},
|
|
@@ -4128,8 +4096,7 @@ var Up = {
|
|
|
4128
4096
|
},
|
|
4129
4097
|
emit() {
|
|
4130
4098
|
const e = this;
|
|
4131
|
-
if (!e.eventsListeners || e.destroyed || !e.eventsListeners)
|
|
4132
|
-
return e;
|
|
4099
|
+
if (!e.eventsListeners || e.destroyed || !e.eventsListeners) return e;
|
|
4133
4100
|
let t, a, s;
|
|
4134
4101
|
for (var n = arguments.length, i = new Array(n), r = 0; r < n; r++)
|
|
4135
4102
|
i[r] = arguments[r];
|
|
@@ -4283,8 +4250,7 @@ function Kp(e) {
|
|
|
4283
4250
|
else
|
|
4284
4251
|
for (i = 0; i < Math.ceil(t.params.slidesPerView); i += 1) {
|
|
4285
4252
|
const o = t.activeIndex + i;
|
|
4286
|
-
if (o > t.slides.length && !s)
|
|
4287
|
-
break;
|
|
4253
|
+
if (o > t.slides.length && !s) break;
|
|
4288
4254
|
a.push(r(o));
|
|
4289
4255
|
}
|
|
4290
4256
|
else
|
|
@@ -4311,8 +4277,7 @@ function Xp(e) {
|
|
|
4311
4277
|
rtlTranslate: n,
|
|
4312
4278
|
snapGrid: i
|
|
4313
4279
|
} = t;
|
|
4314
|
-
if (s.length === 0)
|
|
4315
|
-
return;
|
|
4280
|
+
if (s.length === 0) return;
|
|
4316
4281
|
typeof s[0].swiperSlideOffset > "u" && t.updateSlidesOffset();
|
|
4317
4282
|
let r = -e;
|
|
4318
4283
|
n && (r = e), t.visibleSlidesIndexes = [], t.visibleSlides = [];
|
|
@@ -4382,8 +4347,7 @@ function Qp() {
|
|
|
4382
4347
|
}), e.emitSlidesClasses();
|
|
4383
4348
|
}
|
|
4384
4349
|
const Ya = (e, t) => {
|
|
4385
|
-
if (!e || e.destroyed || !e.params)
|
|
4386
|
-
return;
|
|
4350
|
+
if (!e || e.destroyed || !e.params) return;
|
|
4387
4351
|
const a = () => e.isElement ? "swiper-slide" : `.${e.params.slideClass}`, s = t.closest(a());
|
|
4388
4352
|
if (s) {
|
|
4389
4353
|
let n = s.querySelector(`.${e.params.lazyPreloaderClass}`);
|
|
@@ -4392,17 +4356,14 @@ const Ya = (e, t) => {
|
|
|
4392
4356
|
})), n && n.remove();
|
|
4393
4357
|
}
|
|
4394
4358
|
}, dn = (e, t) => {
|
|
4395
|
-
if (!e.slides[t])
|
|
4396
|
-
return;
|
|
4359
|
+
if (!e.slides[t]) return;
|
|
4397
4360
|
const a = e.slides[t].querySelector('[loading="lazy"]');
|
|
4398
4361
|
a && a.removeAttribute("loading");
|
|
4399
4362
|
}, zn = (e) => {
|
|
4400
|
-
if (!e || e.destroyed || !e.params)
|
|
4401
|
-
return;
|
|
4363
|
+
if (!e || e.destroyed || !e.params) return;
|
|
4402
4364
|
let t = e.params.lazyPreloadPrevNext;
|
|
4403
4365
|
const a = e.slides.length;
|
|
4404
|
-
if (!a || !t || t < 0)
|
|
4405
|
-
return;
|
|
4366
|
+
if (!a || !t || t < 0) return;
|
|
4406
4367
|
t = Math.min(t, a);
|
|
4407
4368
|
const s = e.params.slidesPerView === "auto" ? e.slidesPerViewDynamic() : Math.ceil(e.params.slidesPerView), n = e.activeIndex;
|
|
4408
4369
|
if (e.params.grid && e.params.grid.rows > 1) {
|
|
@@ -4706,8 +4667,7 @@ function mf(e, t, a, s, n) {
|
|
|
4706
4667
|
function gf(e, t, a, s) {
|
|
4707
4668
|
e === void 0 && (e = 0), a === void 0 && (a = !0), typeof e == "string" && (e = parseInt(e, 10));
|
|
4708
4669
|
const n = this;
|
|
4709
|
-
if (n.destroyed)
|
|
4710
|
-
return;
|
|
4670
|
+
if (n.destroyed) return;
|
|
4711
4671
|
typeof t > "u" && (t = n.params.speed);
|
|
4712
4672
|
const i = n.grid && n.params.grid && n.params.grid.rows > 1;
|
|
4713
4673
|
let r = e;
|
|
@@ -4753,15 +4713,13 @@ function vf(e, t, a) {
|
|
|
4753
4713
|
params: i,
|
|
4754
4714
|
animating: r
|
|
4755
4715
|
} = s;
|
|
4756
|
-
if (!n || s.destroyed)
|
|
4757
|
-
return s;
|
|
4716
|
+
if (!n || s.destroyed) return s;
|
|
4758
4717
|
typeof e > "u" && (e = s.params.speed);
|
|
4759
4718
|
let o = i.slidesPerGroup;
|
|
4760
4719
|
i.slidesPerView === "auto" && i.slidesPerGroup === 1 && i.slidesPerGroupAuto && (o = Math.max(s.slidesPerViewDynamic("current", !0), 1));
|
|
4761
4720
|
const l = s.activeIndex < i.slidesPerGroupSkip ? 1 : o, u = s.virtual && i.virtual.enabled;
|
|
4762
4721
|
if (i.loop) {
|
|
4763
|
-
if (r && !u && i.loopPreventsSliding)
|
|
4764
|
-
return !1;
|
|
4722
|
+
if (r && !u && i.loopPreventsSliding) return !1;
|
|
4765
4723
|
if (s.loopFix({
|
|
4766
4724
|
direction: "next"
|
|
4767
4725
|
}), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && i.cssMode)
|
|
@@ -4781,13 +4739,11 @@ function yf(e, t, a) {
|
|
|
4781
4739
|
enabled: l,
|
|
4782
4740
|
animating: u
|
|
4783
4741
|
} = s;
|
|
4784
|
-
if (!l || s.destroyed)
|
|
4785
|
-
return s;
|
|
4742
|
+
if (!l || s.destroyed) return s;
|
|
4786
4743
|
typeof e > "u" && (e = s.params.speed);
|
|
4787
4744
|
const p = s.virtual && n.virtual.enabled;
|
|
4788
4745
|
if (n.loop) {
|
|
4789
|
-
if (u && !p && n.loopPreventsSliding)
|
|
4790
|
-
return !1;
|
|
4746
|
+
if (u && !p && n.loopPreventsSliding) return !1;
|
|
4791
4747
|
s.loopFix({
|
|
4792
4748
|
direction: "prev"
|
|
4793
4749
|
}), s._clientLeft = s.wrapperEl.clientLeft;
|
|
@@ -4823,8 +4779,7 @@ function bf(e, t, a) {
|
|
|
4823
4779
|
function _f(e, t, a, s) {
|
|
4824
4780
|
t === void 0 && (t = !0), s === void 0 && (s = 0.5);
|
|
4825
4781
|
const n = this;
|
|
4826
|
-
if (n.destroyed)
|
|
4827
|
-
return;
|
|
4782
|
+
if (n.destroyed) return;
|
|
4828
4783
|
typeof e > "u" && (e = n.params.speed);
|
|
4829
4784
|
let i = n.activeIndex;
|
|
4830
4785
|
const r = Math.min(n.params.slidesPerGroupSkip, i), o = r + Math.floor((i - r) / n.params.slidesPerGroup), l = n.rtlTranslate ? n.translate : -n.translate;
|
|
@@ -4839,8 +4794,7 @@ function _f(e, t, a, s) {
|
|
|
4839
4794
|
}
|
|
4840
4795
|
function $f() {
|
|
4841
4796
|
const e = this;
|
|
4842
|
-
if (e.destroyed)
|
|
4843
|
-
return;
|
|
4797
|
+
if (e.destroyed) return;
|
|
4844
4798
|
const {
|
|
4845
4799
|
params: t,
|
|
4846
4800
|
slidesEl: a
|
|
@@ -4848,8 +4802,7 @@ function $f() {
|
|
|
4848
4802
|
let n = e.clickedIndex, i;
|
|
4849
4803
|
const r = e.isElement ? "swiper-slide" : `.${t.slideClass}`;
|
|
4850
4804
|
if (t.loop) {
|
|
4851
|
-
if (e.animating)
|
|
4852
|
-
return;
|
|
4805
|
+
if (e.animating) return;
|
|
4853
4806
|
i = parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"), 10), t.centeredSlides ? n < e.loopedSlides - s / 2 || n > e.slides.length - e.loopedSlides + s / 2 ? (e.loopFix(), n = e.getSlideIndex(Ye(a, `${r}[data-swiper-slide-index="${i}"]`)[0]), An(() => {
|
|
4854
4807
|
e.slideTo(n);
|
|
4855
4808
|
})) : e.slideTo(n) : n > e.slides.length - s ? (e.loopFix(), n = e.getSlideIndex(Ye(a, `${r}[data-swiper-slide-index="${i}"]`)[0]), An(() => {
|
|
@@ -4872,8 +4825,7 @@ function kf(e) {
|
|
|
4872
4825
|
params: a,
|
|
4873
4826
|
slidesEl: s
|
|
4874
4827
|
} = t;
|
|
4875
|
-
if (!a.loop || t.virtual && t.params.virtual.enabled)
|
|
4876
|
-
return;
|
|
4828
|
+
if (!a.loop || t.virtual && t.params.virtual.enabled) return;
|
|
4877
4829
|
const n = () => {
|
|
4878
4830
|
Ye(s, `.${a.slideClass}, swiper-slide`).forEach((f, m) => {
|
|
4879
4831
|
f.setAttribute("data-swiper-slide-index", m);
|
|
@@ -4916,8 +4868,7 @@ function Sf(e) {
|
|
|
4916
4868
|
byMousewheel: o
|
|
4917
4869
|
} = e === void 0 ? {} : e;
|
|
4918
4870
|
const l = this;
|
|
4919
|
-
if (!l.params.loop)
|
|
4920
|
-
return;
|
|
4871
|
+
if (!l.params.loop) return;
|
|
4921
4872
|
l.emit("beforeLoopFix");
|
|
4922
4873
|
const {
|
|
4923
4874
|
slides: u,
|
|
@@ -5016,8 +4967,7 @@ function Cf() {
|
|
|
5016
4967
|
params: t,
|
|
5017
4968
|
slidesEl: a
|
|
5018
4969
|
} = e;
|
|
5019
|
-
if (!t.loop || e.virtual && e.params.virtual.enabled)
|
|
5020
|
-
return;
|
|
4970
|
+
if (!t.loop || e.virtual && e.params.virtual.enabled) return;
|
|
5021
4971
|
e.recalcSlides();
|
|
5022
4972
|
const s = [];
|
|
5023
4973
|
e.slides.forEach((n) => {
|
|
@@ -5036,8 +4986,7 @@ var If = {
|
|
|
5036
4986
|
};
|
|
5037
4987
|
function Tf(e) {
|
|
5038
4988
|
const t = this;
|
|
5039
|
-
if (!t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode)
|
|
5040
|
-
return;
|
|
4989
|
+
if (!t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return;
|
|
5041
4990
|
const a = t.params.touchEventsTarget === "container" ? t.el : t.wrapperEl;
|
|
5042
4991
|
t.isElement && (t.__preventObserver__ = !0), a.style.cursor = "move", a.style.cursor = e ? "grabbing" : "grab", t.isElement && requestAnimationFrame(() => {
|
|
5043
4992
|
t.__preventObserver__ = !1;
|
|
@@ -5056,8 +5005,7 @@ var xf = {
|
|
|
5056
5005
|
function Lf(e, t) {
|
|
5057
5006
|
t === void 0 && (t = this);
|
|
5058
5007
|
function a(s) {
|
|
5059
|
-
if (!s || s === Fe() || s === De())
|
|
5060
|
-
return null;
|
|
5008
|
+
if (!s || s === Fe() || s === De()) return null;
|
|
5061
5009
|
s.assignedSlot && (s = s.assignedSlot);
|
|
5062
5010
|
const n = s.closest(e);
|
|
5063
5011
|
return !n && !s.getRootNode ? null : n || a(s.getRootNode().host);
|
|
@@ -5079,8 +5027,7 @@ function Ef(e) {
|
|
|
5079
5027
|
if (n.pointerId !== null && n.pointerId !== s.pointerId)
|
|
5080
5028
|
return;
|
|
5081
5029
|
n.pointerId = s.pointerId;
|
|
5082
|
-
} else
|
|
5083
|
-
s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
|
|
5030
|
+
} else s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
|
|
5084
5031
|
if (s.type === "touchstart") {
|
|
5085
5032
|
vr(t, s, s.targetTouches[0].pageX);
|
|
5086
5033
|
return;
|
|
@@ -5094,8 +5041,7 @@ function Ef(e) {
|
|
|
5094
5041
|
return;
|
|
5095
5042
|
!t.animating && i.cssMode && i.loop && t.loopFix();
|
|
5096
5043
|
let l = s.target;
|
|
5097
|
-
if (i.touchEventsTarget === "wrapper" && !t.wrapperEl.contains(l) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved)
|
|
5098
|
-
return;
|
|
5044
|
+
if (i.touchEventsTarget === "wrapper" && !t.wrapperEl.contains(l) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved) return;
|
|
5099
5045
|
const u = !!i.noSwipingClass && i.noSwipingClass !== "", p = s.composedPath ? s.composedPath() : s.path;
|
|
5100
5046
|
u && s.target && s.target.shadowRoot && p && (l = p[0]);
|
|
5101
5047
|
const f = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, m = !!(s.target && s.target.shadowRoot);
|
|
@@ -5128,15 +5074,13 @@ function Pf(e) {
|
|
|
5128
5074
|
rtlTranslate: r,
|
|
5129
5075
|
enabled: o
|
|
5130
5076
|
} = a;
|
|
5131
|
-
if (!o || !n.simulateTouch && e.pointerType === "mouse")
|
|
5132
|
-
return;
|
|
5077
|
+
if (!o || !n.simulateTouch && e.pointerType === "mouse") return;
|
|
5133
5078
|
let l = e;
|
|
5134
5079
|
if (l.originalEvent && (l = l.originalEvent), l.type === "pointermove" && (s.touchId !== null || l.pointerId !== s.pointerId))
|
|
5135
5080
|
return;
|
|
5136
5081
|
let u;
|
|
5137
5082
|
if (l.type === "touchmove") {
|
|
5138
|
-
if (u = [...l.changedTouches].filter((A) => A.identifier === s.touchId)[0], !u || u.identifier !== s.touchId)
|
|
5139
|
-
return;
|
|
5083
|
+
if (u = [...l.changedTouches].filter((A) => A.identifier === s.touchId)[0], !u || u.identifier !== s.touchId) return;
|
|
5140
5084
|
} else
|
|
5141
5085
|
u = l;
|
|
5142
5086
|
if (!s.isTouched) {
|
|
@@ -5172,8 +5116,7 @@ function Pf(e) {
|
|
|
5172
5116
|
}
|
|
5173
5117
|
s.allowTouchCallbacks && a.emit("touchMove", l), i.previousX = i.currentX, i.previousY = i.currentY, i.currentX = p, i.currentY = f;
|
|
5174
5118
|
const m = i.currentX - i.startX, v = i.currentY - i.startY;
|
|
5175
|
-
if (a.params.threshold && Math.sqrt(m ** 2 + v ** 2) < a.params.threshold)
|
|
5176
|
-
return;
|
|
5119
|
+
if (a.params.threshold && Math.sqrt(m ** 2 + v ** 2) < a.params.threshold) return;
|
|
5177
5120
|
if (typeof s.isScrolling > "u") {
|
|
5178
5121
|
let A;
|
|
5179
5122
|
a.isHorizontal() && i.currentY === i.startY || a.isVertical() && i.currentX === i.startX ? s.isScrolling = !1 : m * m + v * v >= 25 && (A = Math.atan2(Math.abs(v), Math.abs(m)) * 180 / Math.PI, s.isScrolling = a.isHorizontal() ? A > n.touchAngle : 90 - A > n.touchAngle);
|
|
@@ -5244,11 +5187,9 @@ function Bf(e) {
|
|
|
5244
5187
|
s.originalEvent && (s = s.originalEvent);
|
|
5245
5188
|
let n;
|
|
5246
5189
|
if (s.type === "touchend" || s.type === "touchcancel") {
|
|
5247
|
-
if (n = [...s.changedTouches].filter((N) => N.identifier === a.touchId)[0], !n || n.identifier !== a.touchId)
|
|
5248
|
-
return;
|
|
5190
|
+
if (n = [...s.changedTouches].filter((N) => N.identifier === a.touchId)[0], !n || n.identifier !== a.touchId) return;
|
|
5249
5191
|
} else {
|
|
5250
|
-
if (a.touchId !== null || s.pointerId !== a.pointerId)
|
|
5251
|
-
return;
|
|
5192
|
+
if (a.touchId !== null || s.pointerId !== a.pointerId) return;
|
|
5252
5193
|
n = s;
|
|
5253
5194
|
}
|
|
5254
5195
|
if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(s.type) && !(["pointercancel", "contextmenu"].includes(s.type) && (t.browser.isSafari || t.browser.isWebView)))
|
|
@@ -5261,8 +5202,7 @@ function Bf(e) {
|
|
|
5261
5202
|
slidesGrid: u,
|
|
5262
5203
|
enabled: p
|
|
5263
5204
|
} = t;
|
|
5264
|
-
if (!p || !r.simulateTouch && s.pointerType === "mouse")
|
|
5265
|
-
return;
|
|
5205
|
+
if (!p || !r.simulateTouch && s.pointerType === "mouse") return;
|
|
5266
5206
|
if (a.allowTouchCallbacks && t.emit("touchEnd", s), a.allowTouchCallbacks = !1, !a.isTouched) {
|
|
5267
5207
|
a.isMoved && r.grabCursor && t.setGrabCursor(!1), a.isMoved = !1, a.startMoving = !1;
|
|
5268
5208
|
return;
|
|
@@ -5317,8 +5257,7 @@ function yr() {
|
|
|
5317
5257
|
params: t,
|
|
5318
5258
|
el: a
|
|
5319
5259
|
} = e;
|
|
5320
|
-
if (a && a.offsetWidth === 0)
|
|
5321
|
-
return;
|
|
5260
|
+
if (a && a.offsetWidth === 0) return;
|
|
5322
5261
|
t.breakpoints && e.setBreakpoint();
|
|
5323
5262
|
const {
|
|
5324
5263
|
allowSlideNext: s,
|
|
@@ -5341,8 +5280,7 @@ function Af() {
|
|
|
5341
5280
|
rtlTranslate: a,
|
|
5342
5281
|
enabled: s
|
|
5343
5282
|
} = e;
|
|
5344
|
-
if (!s)
|
|
5345
|
-
return;
|
|
5283
|
+
if (!s) return;
|
|
5346
5284
|
e.previousTranslate = e.translate, e.isHorizontal() ? e.translate = -t.scrollLeft : e.translate = -t.scrollTop, e.translate === 0 && (e.translate = 0), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
5347
5285
|
let n;
|
|
5348
5286
|
const i = e.maxTranslate() - e.minTranslate();
|
|
@@ -5415,15 +5353,12 @@ function Vf() {
|
|
|
5415
5353
|
params: s,
|
|
5416
5354
|
el: n
|
|
5417
5355
|
} = e, i = s.breakpoints;
|
|
5418
|
-
if (!i || i && Object.keys(i).length === 0)
|
|
5419
|
-
return;
|
|
5356
|
+
if (!i || i && Object.keys(i).length === 0) return;
|
|
5420
5357
|
const r = e.getBreakpoint(i, e.params.breakpointsBase, e.el);
|
|
5421
|
-
if (!r || e.currentBreakpoint === r)
|
|
5422
|
-
return;
|
|
5358
|
+
if (!r || e.currentBreakpoint === r) return;
|
|
5423
5359
|
const l = (r in i ? i[r] : void 0) || e.originalParams, u = br(e, s), p = br(e, l), f = e.params.grabCursor, m = l.grabCursor, v = s.enabled;
|
|
5424
5360
|
u && !p ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), e.emitContainerClasses()) : !u && p && (n.classList.add(`${s.containerModifierClass}grid`), (l.grid.fill && l.grid.fill === "column" || !l.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), e.emitContainerClasses()), f && !m ? e.unsetGrabCursor() : !f && m && e.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((C) => {
|
|
5425
|
-
if (typeof l[C] > "u")
|
|
5426
|
-
return;
|
|
5361
|
+
if (typeof l[C] > "u") return;
|
|
5427
5362
|
const D = s[C] && s[C].enabled, N = l[C] && l[C].enabled;
|
|
5428
5363
|
D && !N && e[C].disable(), !D && N && e[C].enable();
|
|
5429
5364
|
});
|
|
@@ -5437,8 +5372,7 @@ function Vf() {
|
|
|
5437
5372
|
}), v && !b ? e.disable() : !v && b && e.enable(), e.currentBreakpoint = r, e.emit("_beforeBreakpoint", l), a && ($ ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !E && I ? (e.loopCreate(t), e.updateSlides()) : E && !I && e.loopDestroy()), e.emit("breakpoint", l);
|
|
5438
5373
|
}
|
|
5439
5374
|
function qf(e, t, a) {
|
|
5440
|
-
if (t === void 0 && (t = "window"), !e || t === "container" && !a)
|
|
5441
|
-
return;
|
|
5375
|
+
if (t === void 0 && (t = "window"), !e || t === "container" && !a) return;
|
|
5442
5376
|
let s = !1;
|
|
5443
5377
|
const n = De(), i = t === "window" ? n.innerHeight : a.clientHeight, r = Object.keys(e).map((o) => {
|
|
5444
5378
|
if (typeof o == "string" && o.indexOf("@") === 0) {
|
|
@@ -5838,8 +5772,7 @@ class fe {
|
|
|
5838
5772
|
}
|
|
5839
5773
|
emitContainerClasses() {
|
|
5840
5774
|
const t = this;
|
|
5841
|
-
if (!t.params._emitClasses || !t.el)
|
|
5842
|
-
return;
|
|
5775
|
+
if (!t.params._emitClasses || !t.el) return;
|
|
5843
5776
|
const a = t.el.className.split(" ").filter((s) => s.indexOf("swiper") === 0 || s.indexOf(t.params.containerModifierClass) === 0);
|
|
5844
5777
|
t.emit("_containerClasses", a.join(" "));
|
|
5845
5778
|
}
|
|
@@ -5849,8 +5782,7 @@ class fe {
|
|
|
5849
5782
|
}
|
|
5850
5783
|
emitSlidesClasses() {
|
|
5851
5784
|
const t = this;
|
|
5852
|
-
if (!t.params._emitClasses || !t.el)
|
|
5853
|
-
return;
|
|
5785
|
+
if (!t.params._emitClasses || !t.el) return;
|
|
5854
5786
|
const a = [];
|
|
5855
5787
|
t.slides.forEach((s) => {
|
|
5856
5788
|
const n = t.getSlideClasses(s);
|
|
@@ -5871,8 +5803,7 @@ class fe {
|
|
|
5871
5803
|
activeIndex: u
|
|
5872
5804
|
} = s;
|
|
5873
5805
|
let p = 1;
|
|
5874
|
-
if (typeof n.slidesPerView == "number")
|
|
5875
|
-
return n.slidesPerView;
|
|
5806
|
+
if (typeof n.slidesPerView == "number") return n.slidesPerView;
|
|
5876
5807
|
if (n.centeredSlides) {
|
|
5877
5808
|
let f = i[u] ? Math.ceil(i[u].swiperSlideSize) : 0, m;
|
|
5878
5809
|
for (let v = u + 1; v < i.length; v += 1)
|
|
@@ -5889,8 +5820,7 @@ class fe {
|
|
|
5889
5820
|
}
|
|
5890
5821
|
update() {
|
|
5891
5822
|
const t = this;
|
|
5892
|
-
if (!t || t.destroyed)
|
|
5893
|
-
return;
|
|
5823
|
+
if (!t || t.destroyed) return;
|
|
5894
5824
|
const {
|
|
5895
5825
|
snapGrid: a,
|
|
5896
5826
|
params: s
|
|
@@ -5928,8 +5858,7 @@ class fe {
|
|
|
5928
5858
|
}
|
|
5929
5859
|
mount(t) {
|
|
5930
5860
|
const a = this;
|
|
5931
|
-
if (a.mounted)
|
|
5932
|
-
return !0;
|
|
5861
|
+
if (a.mounted) return !0;
|
|
5933
5862
|
let s = t || a.params.el;
|
|
5934
5863
|
if (typeof s == "string" && (s = document.querySelector(s)), !s)
|
|
5935
5864
|
return !1;
|
|
@@ -5952,8 +5881,7 @@ class fe {
|
|
|
5952
5881
|
}
|
|
5953
5882
|
init(t) {
|
|
5954
5883
|
const a = this;
|
|
5955
|
-
if (a.initialized || a.mount(t) === !1)
|
|
5956
|
-
return a;
|
|
5884
|
+
if (a.initialized || a.mount(t) === !1) return a;
|
|
5957
5885
|
a.emit("beforeInit"), a.params.breakpoints && a.setBreakpoint(), a.addClasses(), a.updateSize(), a.updateSlides(), a.params.watchOverflow && a.checkOverflow(), a.params.grabCursor && a.enabled && a.setGrabCursor(), a.params.loop && a.virtual && a.params.virtual.enabled ? a.slideTo(a.params.initialSlide + a.virtual.slidesBefore, 0, a.params.runCallbacksOnInit, !1, !0) : a.slideTo(a.params.initialSlide, 0, a.params.runCallbacksOnInit, !1, !0), a.params.loop && a.loopCreate(), a.attachEvents();
|
|
5958
5886
|
const n = [...a.el.querySelectorAll('[loading="lazy"]')];
|
|
5959
5887
|
return a.isElement && n.push(...a.hostEl.querySelectorAll('[loading="lazy"]')), n.forEach((i) => {
|
|
@@ -6061,8 +5989,7 @@ function ws(e) {
|
|
|
6061
5989
|
if (t.params.navigation = Cl(t, t.originalParams.navigation, t.params.navigation, {
|
|
6062
5990
|
nextEl: "swiper-button-next",
|
|
6063
5991
|
prevEl: "swiper-button-prev"
|
|
6064
|
-
}), !(y.nextEl || y.prevEl))
|
|
6065
|
-
return;
|
|
5992
|
+
}), !(y.nextEl || y.prevEl)) return;
|
|
6066
5993
|
let $ = i(y.nextEl), E = i(y.prevEl);
|
|
6067
5994
|
Object.assign(t.navigation, {
|
|
6068
5995
|
nextEl: $,
|
|
@@ -6113,8 +6040,7 @@ function ws(e) {
|
|
|
6113
6040
|
D && (C = D.find((N) => E.includes(N) || b.includes(N)));
|
|
6114
6041
|
}
|
|
6115
6042
|
if (t.params.navigation.hideOnClick && !C) {
|
|
6116
|
-
if (t.pagination && t.params.pagination && t.params.pagination.clickable && (t.pagination.el === I || t.pagination.el.contains(I)))
|
|
6117
|
-
return;
|
|
6043
|
+
if (t.pagination && t.params.pagination && t.params.pagination.clickable && (t.pagination.el === I || t.pagination.el.contains(I))) return;
|
|
6118
6044
|
let D;
|
|
6119
6045
|
E.length ? D = E[0].classList.contains(t.params.navigation.hiddenClass) : b.length && (D = b[0].classList.contains(t.params.navigation.hiddenClass)), n(D === !0 ? "navigationShow" : "navigationHide"), [...E, ...b].filter((N) => !!N).forEach((N) => N.classList.toggle(t.params.navigation.hiddenClass));
|
|
6120
6046
|
}
|
|
@@ -6195,16 +6121,14 @@ function Xf(e) {
|
|
|
6195
6121
|
b.preventDefault();
|
|
6196
6122
|
const C = Ia(I) * t.params.slidesPerGroup;
|
|
6197
6123
|
if (t.params.loop) {
|
|
6198
|
-
if (t.realIndex === C)
|
|
6199
|
-
return;
|
|
6124
|
+
if (t.realIndex === C) return;
|
|
6200
6125
|
t.slideToLoop(C);
|
|
6201
6126
|
} else
|
|
6202
6127
|
t.slideTo(C);
|
|
6203
6128
|
}
|
|
6204
6129
|
function f() {
|
|
6205
6130
|
const b = t.rtl, I = t.params.pagination;
|
|
6206
|
-
if (l())
|
|
6207
|
-
return;
|
|
6131
|
+
if (l()) return;
|
|
6208
6132
|
let C = t.pagination.el;
|
|
6209
6133
|
C = le(C);
|
|
6210
6134
|
let D, N;
|
|
@@ -6259,8 +6183,7 @@ function Xf(e) {
|
|
|
6259
6183
|
}
|
|
6260
6184
|
function m() {
|
|
6261
6185
|
const b = t.params.pagination;
|
|
6262
|
-
if (l())
|
|
6263
|
-
return;
|
|
6186
|
+
if (l()) return;
|
|
6264
6187
|
const I = t.virtual && t.params.virtual.enabled ? t.virtual.slides.length : t.grid && t.params.grid.rows > 1 ? t.slides.length / Math.ceil(t.params.grid.rows) : t.slides.length;
|
|
6265
6188
|
let C = t.pagination.el;
|
|
6266
6189
|
C = le(C);
|
|
@@ -6280,8 +6203,7 @@ function Xf(e) {
|
|
|
6280
6203
|
el: "swiper-pagination"
|
|
6281
6204
|
});
|
|
6282
6205
|
const b = t.params.pagination;
|
|
6283
|
-
if (!b.el)
|
|
6284
|
-
return;
|
|
6206
|
+
if (!b.el) return;
|
|
6285
6207
|
let I;
|
|
6286
6208
|
typeof b.el == "string" && t.isElement && (I = t.el.querySelector(b.el)), !I && typeof b.el == "string" && (I = [...document.querySelectorAll(b.el)]), I || (I = b.el), !(!I || I.length === 0) && (t.params.uniqueNavElements && typeof b.el == "string" && Array.isArray(I) && I.length > 1 && (I = [...t.el.querySelectorAll(b.el)], I.length > 1 && (I = I.filter((C) => _l(C, ".swiper")[0] === t.el)[0])), Array.isArray(I) && I.length === 1 && (I = I[0]), Object.assign(t.pagination, {
|
|
6287
6209
|
el: I
|
|
@@ -6291,16 +6213,14 @@ function Xf(e) {
|
|
|
6291
6213
|
}
|
|
6292
6214
|
function y() {
|
|
6293
6215
|
const b = t.params.pagination;
|
|
6294
|
-
if (l())
|
|
6295
|
-
return;
|
|
6216
|
+
if (l()) return;
|
|
6296
6217
|
let I = t.pagination.el;
|
|
6297
6218
|
I && (I = le(I), I.forEach((C) => {
|
|
6298
6219
|
C.classList.remove(b.hiddenClass), C.classList.remove(b.modifierClass + b.type), C.classList.remove(t.isHorizontal() ? b.horizontalClass : b.verticalClass), b.clickable && (C.classList.remove(...(b.clickableClass || "").split(" ")), C.removeEventListener("click", p));
|
|
6299
6220
|
})), t.pagination.bullets && t.pagination.bullets.forEach((C) => C.classList.remove(...b.bulletActiveClass.split(" ")));
|
|
6300
6221
|
}
|
|
6301
6222
|
s("changeDirection", () => {
|
|
6302
|
-
if (!t.pagination || !t.pagination.el)
|
|
6303
|
-
return;
|
|
6223
|
+
if (!t.pagination || !t.pagination.el) return;
|
|
6304
6224
|
const b = t.params.pagination;
|
|
6305
6225
|
let {
|
|
6306
6226
|
el: I
|
|
@@ -6328,8 +6248,7 @@ function Xf(e) {
|
|
|
6328
6248
|
}), s("click", (b, I) => {
|
|
6329
6249
|
const C = I.target, D = le(t.pagination.el);
|
|
6330
6250
|
if (t.params.pagination.el && t.params.pagination.hideOnClick && D && D.length > 0 && !C.classList.contains(t.params.pagination.bulletClass)) {
|
|
6331
|
-
if (t.navigation && (t.navigation.nextEl && C === t.navigation.nextEl || t.navigation.prevEl && C === t.navigation.prevEl))
|
|
6332
|
-
return;
|
|
6251
|
+
if (t.navigation && (t.navigation.nextEl && C === t.navigation.nextEl || t.navigation.prevEl && C === t.navigation.prevEl)) return;
|
|
6333
6252
|
const N = D[0].classList.contains(t.params.pagination.hiddenClass);
|
|
6334
6253
|
n(N === !0 ? "paginationShow" : "paginationHide"), D.forEach((A) => A.classList.toggle(t.params.pagination.hiddenClass));
|
|
6335
6254
|
}
|
|
@@ -6441,8 +6360,7 @@ function Ea(e) {
|
|
|
6441
6360
|
});
|
|
6442
6361
|
}
|
|
6443
6362
|
function D(B) {
|
|
6444
|
-
if (B.keyCode !== 13 && B.keyCode !== 32)
|
|
6445
|
-
return;
|
|
6363
|
+
if (B.keyCode !== 13 && B.keyCode !== 32) return;
|
|
6446
6364
|
const P = t.params.a11y, W = B.target;
|
|
6447
6365
|
if (!(t.pagination && t.pagination.el && (W === t.pagination.el || t.pagination.el.contains(B.target)) && !B.target.matches(pt(t.params.pagination.bulletClass)))) {
|
|
6448
6366
|
if (t.navigation && t.navigation.prevEl && t.navigation.nextEl) {
|
|
@@ -6453,8 +6371,7 @@ function Ea(e) {
|
|
|
6453
6371
|
}
|
|
6454
6372
|
}
|
|
6455
6373
|
function N() {
|
|
6456
|
-
if (t.params.loop || t.params.rewind || !t.navigation)
|
|
6457
|
-
return;
|
|
6374
|
+
if (t.params.loop || t.params.rewind || !t.navigation) return;
|
|
6458
6375
|
const {
|
|
6459
6376
|
nextEl: B,
|
|
6460
6377
|
prevEl: P
|
|
@@ -6486,11 +6403,9 @@ function Ea(e) {
|
|
|
6486
6403
|
}, q = (B) => {
|
|
6487
6404
|
o = (/* @__PURE__ */ new Date()).getTime();
|
|
6488
6405
|
}, F = (B) => {
|
|
6489
|
-
if (t.a11y.clicked || (/* @__PURE__ */ new Date()).getTime() - o < 100)
|
|
6490
|
-
return;
|
|
6406
|
+
if (t.a11y.clicked || (/* @__PURE__ */ new Date()).getTime() - o < 100) return;
|
|
6491
6407
|
const P = B.target.closest(`.${t.params.slideClass}, swiper-slide`);
|
|
6492
|
-
if (!P || !t.slides.includes(P))
|
|
6493
|
-
return;
|
|
6408
|
+
if (!P || !t.slides.includes(P)) return;
|
|
6494
6409
|
r = P;
|
|
6495
6410
|
const W = t.slides.indexOf(P) === t.activeIndex, K = t.params.watchSlidesProgress && t.visibleSlides && t.visibleSlides.includes(P);
|
|
6496
6411
|
W || K || B.sourceCapabilities && B.sourceCapabilities.firesTouchEvents || (t.isHorizontal() ? t.el.scrollLeft = 0 : t.el.scrollTop = 0, requestAnimationFrame(() => {
|
|
@@ -6571,8 +6486,7 @@ function Jf(e) {
|
|
|
6571
6486
|
!t || t.destroyed || !t.wrapperEl || P.target === t.wrapperEl && (t.wrapperEl.removeEventListener("transitionend", C), !(I || P.detail && P.detail.bySwiperTouchMove) && k());
|
|
6572
6487
|
}
|
|
6573
6488
|
const D = () => {
|
|
6574
|
-
if (t.destroyed || !t.autoplay.running)
|
|
6575
|
-
return;
|
|
6489
|
+
if (t.destroyed || !t.autoplay.running) return;
|
|
6576
6490
|
t.autoplay.paused ? m = !0 : m && (u = p, m = !1);
|
|
6577
6491
|
const P = t.autoplay.paused ? p : f + u - (/* @__PURE__ */ new Date()).getTime();
|
|
6578
6492
|
t.autoplay.timeLeft = P, n("autoplayTimeLeft", P, P / l), o = requestAnimationFrame(() => {
|
|
@@ -6582,8 +6496,7 @@ function Jf(e) {
|
|
|
6582
6496
|
let P;
|
|
6583
6497
|
return t.virtual && t.params.virtual.enabled ? P = t.slides.filter((K) => K.classList.contains("swiper-slide-active"))[0] : P = t.slides[t.activeIndex], P ? parseInt(P.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
6584
6498
|
}, A = (P) => {
|
|
6585
|
-
if (t.destroyed || !t.autoplay.running)
|
|
6586
|
-
return;
|
|
6499
|
+
if (t.destroyed || !t.autoplay.running) return;
|
|
6587
6500
|
cancelAnimationFrame(o), D();
|
|
6588
6501
|
let W = typeof P > "u" ? t.params.autoplay.delay : P;
|
|
6589
6502
|
l = t.params.autoplay.delay, u = t.params.autoplay.delay;
|
|
@@ -6604,8 +6517,7 @@ function Jf(e) {
|
|
|
6604
6517
|
}, z = () => {
|
|
6605
6518
|
t.autoplay.running = !1, clearTimeout(r), cancelAnimationFrame(o), n("autoplayStop");
|
|
6606
6519
|
}, U = (P, W) => {
|
|
6607
|
-
if (t.destroyed || !t.autoplay.running)
|
|
6608
|
-
return;
|
|
6520
|
+
if (t.destroyed || !t.autoplay.running) return;
|
|
6609
6521
|
clearTimeout(r), P || (b = !0);
|
|
6610
6522
|
const K = () => {
|
|
6611
6523
|
n("autoplayPause"), t.params.autoplay.waitForTransition ? t.wrapperEl.addEventListener("transitionend", C) : k();
|
|
@@ -6618,8 +6530,7 @@ function Jf(e) {
|
|
|
6618
6530
|
}, k = () => {
|
|
6619
6531
|
t.isEnd && p < 0 && !t.params.loop || t.destroyed || !t.autoplay.running || (f = (/* @__PURE__ */ new Date()).getTime(), b ? (b = !1, A(p)) : A(), t.autoplay.paused = !1, n("autoplayResume"));
|
|
6620
6532
|
}, M = () => {
|
|
6621
|
-
if (t.destroyed || !t.autoplay.running)
|
|
6622
|
-
return;
|
|
6533
|
+
if (t.destroyed || !t.autoplay.running) return;
|
|
6623
6534
|
const P = Fe();
|
|
6624
6535
|
P.visibilityState === "hidden" && (b = !0, U(!0)), P.visibilityState === "visible" && k();
|
|
6625
6536
|
}, q = (P) => {
|
|
@@ -6685,8 +6596,7 @@ function Qf(e) {
|
|
|
6685
6596
|
getEffectParams: u
|
|
6686
6597
|
} = e;
|
|
6687
6598
|
s("beforeInit", () => {
|
|
6688
|
-
if (a.params.effect !== t)
|
|
6689
|
-
return;
|
|
6599
|
+
if (a.params.effect !== t) return;
|
|
6690
6600
|
a.classNames.push(`${a.params.containerModifierClass}${t}`), o && o() && a.classNames.push(`${a.params.containerModifierClass}3d`);
|
|
6691
6601
|
const f = r ? r() : {};
|
|
6692
6602
|
Object.assign(a.params, f), Object.assign(a.originalParams, f);
|
|
@@ -6696,8 +6606,7 @@ function Qf(e) {
|
|
|
6696
6606
|
a.params.effect === t && i(m);
|
|
6697
6607
|
}), s("transitionEnd", () => {
|
|
6698
6608
|
if (a.params.effect === t && l) {
|
|
6699
|
-
if (!u || !u().slideShadows)
|
|
6700
|
-
return;
|
|
6609
|
+
if (!u || !u().slideShadows) return;
|
|
6701
6610
|
a.slides.forEach((f) => {
|
|
6702
6611
|
f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((m) => m.remove());
|
|
6703
6612
|
}), l();
|
|
@@ -6731,8 +6640,7 @@ function tm(e) {
|
|
|
6731
6640
|
return t.getSlideIndex(p) === i;
|
|
6732
6641
|
}), l.forEach((u) => {
|
|
6733
6642
|
Np(u, () => {
|
|
6734
|
-
if (o || !t || t.destroyed)
|
|
6735
|
-
return;
|
|
6643
|
+
if (o || !t || t.destroyed) return;
|
|
6736
6644
|
o = !0, t.animating = !1;
|
|
6737
6645
|
const p = new window.CustomEvent("transitionend", {
|
|
6738
6646
|
bubbles: !0,
|
|
@@ -7372,20 +7280,17 @@ const Tl = /* @__PURE__ */ x(qm, [["render", Um]]), Ft = (e) => typeof e == "obj
|
|
|
7372
7280
|
let t = !1;
|
|
7373
7281
|
typeof e[0] == "boolean" && (t = e.shift());
|
|
7374
7282
|
let a = e[0];
|
|
7375
|
-
if (!a || typeof a != "object")
|
|
7376
|
-
throw new Error("extendee must be an object");
|
|
7283
|
+
if (!a || typeof a != "object") throw new Error("extendee must be an object");
|
|
7377
7284
|
const s = e.slice(1), n = s.length;
|
|
7378
7285
|
for (let i = 0; i < n; i++) {
|
|
7379
7286
|
const r = s[i];
|
|
7380
|
-
for (let o in r)
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
a[o] = l;
|
|
7388
|
-
}
|
|
7287
|
+
for (let o in r) if (r.hasOwnProperty(o)) {
|
|
7288
|
+
const l = r[o];
|
|
7289
|
+
if (t && (Array.isArray(l) || Ft(l))) {
|
|
7290
|
+
const u = Array.isArray(l) ? [] : {};
|
|
7291
|
+
a[o] = Me(!0, a.hasOwnProperty(o) ? a[o] : u, l);
|
|
7292
|
+
} else a[o] = l;
|
|
7293
|
+
}
|
|
7389
7294
|
}
|
|
7390
7295
|
return a;
|
|
7391
7296
|
}, ye = (e, t = 1e4) => (e = parseFloat(e) || 0, Math.round((e + Number.EPSILON) * t) / t), as = function(e) {
|
|
@@ -7398,8 +7303,7 @@ const Tl = /* @__PURE__ */ x(qm, [["render", Um]]), Ft = (e) => typeof e == "obj
|
|
|
7398
7303
|
this.observables = [], this.boundCheck = this.check.bind(this), this.boundCheck(), this.callback = e;
|
|
7399
7304
|
}
|
|
7400
7305
|
observe(e) {
|
|
7401
|
-
if (this.observables.some((a) => a.el === e))
|
|
7402
|
-
return;
|
|
7306
|
+
if (this.observables.some((a) => a.el === e)) return;
|
|
7403
7307
|
const t = { el: e, size: { height: e.clientHeight, width: e.clientWidth } };
|
|
7404
7308
|
this.observables.push(t);
|
|
7405
7309
|
}
|
|
@@ -7412,8 +7316,7 @@ const Tl = /* @__PURE__ */ x(qm, [["render", Um]]), Ft = (e) => typeof e == "obj
|
|
|
7412
7316
|
check() {
|
|
7413
7317
|
const e = this.observables.filter((t) => {
|
|
7414
7318
|
const a = t.el.clientHeight, s = t.el.clientWidth;
|
|
7415
|
-
if (t.size.height !== a || t.size.width !== s)
|
|
7416
|
-
return t.size.height = a, t.size.width = s, !0;
|
|
7319
|
+
if (t.size.height !== a || t.size.width !== s) return t.size.height = a, t.size.width = s, !0;
|
|
7417
7320
|
}).map((t) => t.el);
|
|
7418
7321
|
e.length > 0 && this.callback(e), window.requestAnimationFrame(this.boundCheck);
|
|
7419
7322
|
}
|
|
@@ -7429,13 +7332,11 @@ class Ym {
|
|
|
7429
7332
|
}, end: n = () => {
|
|
7430
7333
|
} } = {}) {
|
|
7431
7334
|
this._element = t, this.startPointers = [], this.currentPointers = [], this._pointerStart = (i) => {
|
|
7432
|
-
if (i.buttons > 0 && i.button !== 0)
|
|
7433
|
-
return;
|
|
7335
|
+
if (i.buttons > 0 && i.button !== 0) return;
|
|
7434
7336
|
const r = new Ot(i);
|
|
7435
7337
|
this.currentPointers.some((o) => o.id === r.id) || this._triggerPointerStart(r, i) && (window.addEventListener("mousemove", this._move), window.addEventListener("mouseup", this._pointerEnd));
|
|
7436
7338
|
}, this._touchStart = (i) => {
|
|
7437
|
-
for (const r of Array.from(i.changedTouches || []))
|
|
7438
|
-
this._triggerPointerStart(new Ot(r), i);
|
|
7339
|
+
for (const r of Array.from(i.changedTouches || [])) this._triggerPointerStart(new Ot(r), i);
|
|
7439
7340
|
}, this._move = (i) => {
|
|
7440
7341
|
const r = this.currentPointers.slice(), o = ((l) => "changedTouches" in l)(i) ? Array.from(i.changedTouches).map((l) => new Ot(l)) : [new Ot(i)];
|
|
7441
7342
|
for (const l of o) {
|
|
@@ -7449,8 +7350,7 @@ class Ym {
|
|
|
7449
7350
|
}, this._pointerEnd = (i) => {
|
|
7450
7351
|
i.buttons > 0 && i.button !== 0 || this._triggerPointerEnd(new Ot(i), i) && (window.removeEventListener("mousemove", this._move, { passive: !1 }), window.removeEventListener("mouseup", this._pointerEnd, { passive: !1 }));
|
|
7451
7352
|
}, this._touchEnd = (i) => {
|
|
7452
|
-
for (const r of Array.from(i.changedTouches || []))
|
|
7453
|
-
this._triggerPointerEnd(new Ot(r), i);
|
|
7353
|
+
for (const r of Array.from(i.changedTouches || [])) this._triggerPointerEnd(new Ot(r), i);
|
|
7454
7354
|
}, this._startCallback = a, this._moveCallback = s, this._endCallback = n, this._element.addEventListener("mousedown", this._pointerStart, { passive: !1 }), this._element.addEventListener("touchstart", this._touchStart, { passive: !1 }), this._element.addEventListener("touchmove", this._move, { passive: !1 }), this._element.addEventListener("touchend", this._touchEnd), this._element.addEventListener("touchcancel", this._touchEnd);
|
|
7455
7355
|
}
|
|
7456
7356
|
stop() {
|
|
@@ -7463,9 +7363,7 @@ class Ym {
|
|
|
7463
7363
|
class di {
|
|
7464
7364
|
constructor(t = {}) {
|
|
7465
7365
|
this.options = Me(!0, {}, t), this.plugins = [], this.events = {};
|
|
7466
|
-
for (const a of ["on", "once"])
|
|
7467
|
-
for (const s of Object.entries(this.options[a] || {}))
|
|
7468
|
-
this[a](...s);
|
|
7366
|
+
for (const a of ["on", "once"]) for (const s of Object.entries(this.options[a] || {})) this[a](...s);
|
|
7469
7367
|
}
|
|
7470
7368
|
option(t, a, ...s) {
|
|
7471
7369
|
t = String(t);
|
|
@@ -7479,15 +7377,13 @@ class di {
|
|
|
7479
7377
|
return t = (t = String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g, (s, n, i) => {
|
|
7480
7378
|
let r = "";
|
|
7481
7379
|
i ? r = this.option(`${n[0] + n.toLowerCase().substring(1)}.l10n.${i}`) : n && (r = this.option(`l10n.${n}`)), r || (r = s);
|
|
7482
|
-
for (let o = 0; o < a.length; o++)
|
|
7483
|
-
r = r.split(a[o][0]).join(a[o][1]);
|
|
7380
|
+
for (let o = 0; o < a.length; o++) r = r.split(a[o][0]).join(a[o][1]);
|
|
7484
7381
|
return r;
|
|
7485
7382
|
})).replace(/\{\{(.*)\}\}/, (s, n) => n);
|
|
7486
7383
|
}
|
|
7487
7384
|
on(t, a) {
|
|
7488
7385
|
if (Ft(t)) {
|
|
7489
|
-
for (const s of Object.entries(t))
|
|
7490
|
-
this.on(...s);
|
|
7386
|
+
for (const s of Object.entries(t)) this.on(...s);
|
|
7491
7387
|
return this;
|
|
7492
7388
|
}
|
|
7493
7389
|
return String(t).split(" ").forEach((s) => {
|
|
@@ -7497,8 +7393,7 @@ class di {
|
|
|
7497
7393
|
}
|
|
7498
7394
|
once(t, a) {
|
|
7499
7395
|
if (Ft(t)) {
|
|
7500
|
-
for (const s of Object.entries(t))
|
|
7501
|
-
this.once(...s);
|
|
7396
|
+
for (const s of Object.entries(t)) this.once(...s);
|
|
7502
7397
|
return this;
|
|
7503
7398
|
}
|
|
7504
7399
|
return String(t).split(" ").forEach((s) => {
|
|
@@ -7509,39 +7404,30 @@ class di {
|
|
|
7509
7404
|
}), this;
|
|
7510
7405
|
}
|
|
7511
7406
|
off(t, a) {
|
|
7512
|
-
if (!Ft(t))
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
i = r;
|
|
7522
|
-
break;
|
|
7523
|
-
}
|
|
7407
|
+
if (!Ft(t)) return t.split(" ").forEach((s) => {
|
|
7408
|
+
const n = this.events[s];
|
|
7409
|
+
if (!n || !n.length) return this;
|
|
7410
|
+
let i = -1;
|
|
7411
|
+
for (let r = 0, o = n.length; r < o; r++) {
|
|
7412
|
+
const l = n[r];
|
|
7413
|
+
if (l && (l === a || l._ === a)) {
|
|
7414
|
+
i = r;
|
|
7415
|
+
break;
|
|
7524
7416
|
}
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7417
|
+
}
|
|
7418
|
+
i != -1 && n.splice(i, 1);
|
|
7419
|
+
}), this;
|
|
7420
|
+
for (const s of Object.entries(t)) this.off(...s);
|
|
7529
7421
|
}
|
|
7530
7422
|
trigger(t, ...a) {
|
|
7531
|
-
for (const s of [...this.events[t] || []].slice())
|
|
7532
|
-
|
|
7533
|
-
return !1;
|
|
7534
|
-
for (const s of [...this.events["*"] || []].slice())
|
|
7535
|
-
if (s && s.call(this, t, this, ...a) === !1)
|
|
7536
|
-
return !1;
|
|
7423
|
+
for (const s of [...this.events[t] || []].slice()) if (s && s.call(this, this, ...a) === !1) return !1;
|
|
7424
|
+
for (const s of [...this.events["*"] || []].slice()) if (s && s.call(this, t, this, ...a) === !1) return !1;
|
|
7537
7425
|
return !0;
|
|
7538
7426
|
}
|
|
7539
7427
|
attachPlugins(t) {
|
|
7540
7428
|
const a = {};
|
|
7541
|
-
for (const [s, n] of Object.entries(t || {}))
|
|
7542
|
-
|
|
7543
|
-
for (const [s, n] of Object.entries(a))
|
|
7544
|
-
n.attach(this);
|
|
7429
|
+
for (const [s, n] of Object.entries(t || {})) this.options[s] === !1 || this.plugins[s] || (this.options[s] = Me({}, n.defaults || {}, this.options[s]), a[s] = new n(this));
|
|
7430
|
+
for (const [s, n] of Object.entries(a)) n.attach(this);
|
|
7545
7431
|
return this.plugins = Object.assign({}, this.plugins, a), this;
|
|
7546
7432
|
}
|
|
7547
7433
|
detachPlugins() {
|
|
@@ -7556,17 +7442,14 @@ const Km = { touch: !0, zoom: !0, pinchToZoom: !0, panOnlyZoomed: !1, lockAxis:
|
|
|
7556
7442
|
class jt extends di {
|
|
7557
7443
|
constructor(t, a = {}) {
|
|
7558
7444
|
super(Me(!0, {}, Km, a)), this.state = "init", this.$container = t;
|
|
7559
|
-
for (const s of ["onLoad", "onWheel", "onClick"])
|
|
7560
|
-
this[s] = this[s].bind(this);
|
|
7445
|
+
for (const s of ["onLoad", "onWheel", "onClick"]) this[s] = this[s].bind(this);
|
|
7561
7446
|
this.initLayout(), this.resetValues(), this.attachPlugins(jt.Plugins), this.trigger("init"), this.updateMetrics(), this.attachEvents(), this.trigger("ready"), this.option("centerOnStart") === !1 ? this.state = "ready" : this.panTo({ friction: 0 }), t.__Panzoom = this;
|
|
7562
7447
|
}
|
|
7563
7448
|
initLayout() {
|
|
7564
7449
|
const t = this.$container;
|
|
7565
|
-
if (!(t instanceof HTMLElement))
|
|
7566
|
-
throw new Error("Panzoom: Container not found");
|
|
7450
|
+
if (!(t instanceof HTMLElement)) throw new Error("Panzoom: Container not found");
|
|
7567
7451
|
const a = this.option("content") || t.querySelector(".panzoom__content");
|
|
7568
|
-
if (!a)
|
|
7569
|
-
throw new Error("Panzoom: Content not found");
|
|
7452
|
+
if (!a) throw new Error("Panzoom: Content not found");
|
|
7570
7453
|
this.$content = a;
|
|
7571
7454
|
let s = this.option("viewport") || t.querySelector(".panzoom__viewport");
|
|
7572
7455
|
s || this.option("wrapInner") === !1 || (s = document.createElement("div"), s.classList.add("panzoom__viewport"), s.append(...t.childNodes), t.appendChild(s)), this.$viewport = s || a.parentNode;
|
|
@@ -7578,13 +7461,10 @@ class jt extends di {
|
|
|
7578
7461
|
this.updateMetrics(), this.panTo({ scale: this.option("baseScale"), friction: 0 }), this.trigger("load", t);
|
|
7579
7462
|
}
|
|
7580
7463
|
onClick(t) {
|
|
7581
|
-
if (t.defaultPrevented || document.activeElement && document.activeElement.closest("[contenteditable]"))
|
|
7582
|
-
|
|
7583
|
-
if (this.option("textSelection") && window.getSelection().toString().length && (!t.target || !t.target.hasAttribute("data-fancybox-close")))
|
|
7584
|
-
return void t.stopPropagation();
|
|
7464
|
+
if (t.defaultPrevented || document.activeElement && document.activeElement.closest("[contenteditable]")) return;
|
|
7465
|
+
if (this.option("textSelection") && window.getSelection().toString().length && (!t.target || !t.target.hasAttribute("data-fancybox-close"))) return void t.stopPropagation();
|
|
7585
7466
|
const a = this.$content.getClientRects()[0];
|
|
7586
|
-
if (this.state !== "ready" && (this.dragPosition.midPoint || Math.abs(a.top - this.dragStart.rect.top) > 1 || Math.abs(a.left - this.dragStart.rect.left) > 1))
|
|
7587
|
-
return t.preventDefault(), void t.stopPropagation();
|
|
7467
|
+
if (this.state !== "ready" && (this.dragPosition.midPoint || Math.abs(a.top - this.dragStart.rect.top) > 1 || Math.abs(a.left - this.dragStart.rect.left) > 1)) return t.preventDefault(), void t.stopPropagation();
|
|
7588
7468
|
this.trigger("click", t) !== !1 && this.option("zoom") && this.option("click") === "toggleZoom" && (t.preventDefault(), t.stopPropagation(), this.zoomWithClick(t));
|
|
7589
7469
|
}
|
|
7590
7470
|
onWheel(t) {
|
|
@@ -7594,8 +7474,7 @@ class jt extends di {
|
|
|
7594
7474
|
this.changedDelta === void 0 && (this.changedDelta = 0);
|
|
7595
7475
|
const a = Math.max(-1, Math.min(1, -t.deltaY || -t.deltaX || t.wheelDelta || -t.detail)), s = this.content.scale;
|
|
7596
7476
|
let n = s * (100 + a * this.option("wheelFactor")) / 100;
|
|
7597
|
-
if (a < 0 && Math.abs(s - this.option("minScale")) < 0.01 || a > 0 && Math.abs(s - this.option("maxScale")) < 0.01 ? (this.changedDelta += Math.abs(a), n = s) : (this.changedDelta = 0, n = Math.max(Math.min(n, this.option("maxScale")), this.option("minScale"))), this.changedDelta > this.option("wheelLimit") || (t.preventDefault(), n === s))
|
|
7598
|
-
return;
|
|
7477
|
+
if (a < 0 && Math.abs(s - this.option("minScale")) < 0.01 || a > 0 && Math.abs(s - this.option("maxScale")) < 0.01 ? (this.changedDelta += Math.abs(a), n = s) : (this.changedDelta = 0, n = Math.max(Math.min(n, this.option("maxScale")), this.option("minScale"))), this.changedDelta > this.option("wheelLimit") || (t.preventDefault(), n === s)) return;
|
|
7599
7478
|
const i = this.$content.getBoundingClientRect(), r = t.clientX - i.left, o = t.clientY - i.top;
|
|
7600
7479
|
this.zoomTo(n, { x: r, y: o });
|
|
7601
7480
|
}
|
|
@@ -7606,35 +7485,28 @@ class jt extends di {
|
|
|
7606
7485
|
attachEvents() {
|
|
7607
7486
|
this.$content.addEventListener("load", this.onLoad), this.$container.addEventListener("wheel", this.onWheel, { passive: !1 }), this.$container.addEventListener("click", this.onClick, { passive: !1 }), this.initObserver();
|
|
7608
7487
|
const t = new Ym(this.$container, { start: (a, s) => {
|
|
7609
|
-
if (!this.option("touch") || this.velocity.scale < 0)
|
|
7610
|
-
return !1;
|
|
7488
|
+
if (!this.option("touch") || this.velocity.scale < 0) return !1;
|
|
7611
7489
|
const n = s.composedPath()[0];
|
|
7612
7490
|
return !t.currentPointers.length && (["BUTTON", "TEXTAREA", "OPTION", "INPUT", "SELECT", "VIDEO"].indexOf(n.nodeName) !== -1 || this.option("textSelection") && ((i, r, o) => {
|
|
7613
7491
|
const l = i.childNodes, u = document.createRange();
|
|
7614
7492
|
for (let p = 0; p < l.length; p++) {
|
|
7615
7493
|
const f = l[p];
|
|
7616
|
-
if (f.nodeType !== Node.TEXT_NODE)
|
|
7617
|
-
continue;
|
|
7494
|
+
if (f.nodeType !== Node.TEXT_NODE) continue;
|
|
7618
7495
|
u.selectNodeContents(f);
|
|
7619
7496
|
const m = u.getBoundingClientRect();
|
|
7620
|
-
if (r >= m.left && o >= m.top && r <= m.right && o <= m.bottom)
|
|
7621
|
-
return f;
|
|
7497
|
+
if (r >= m.left && o >= m.top && r <= m.right && o <= m.bottom) return f;
|
|
7622
7498
|
}
|
|
7623
7499
|
return !1;
|
|
7624
7500
|
})(n, a.clientX, a.clientY)) ? !1 : !as(n) && this.trigger("touchStart", s) !== !1 && (s.type === "mousedown" && s.preventDefault(), this.state = "pointerdown", this.resetDragPosition(), this.dragPosition.midPoint = null, this.dragPosition.time = Date.now(), !0);
|
|
7625
7501
|
}, move: (a, s, n) => {
|
|
7626
|
-
if (this.state !== "pointerdown")
|
|
7627
|
-
|
|
7628
|
-
if (this.
|
|
7629
|
-
return void n.preventDefault();
|
|
7630
|
-
if (s.length < 2 && this.option("panOnlyZoomed") === !0 && this.content.width <= this.viewport.width && this.content.height <= this.viewport.height && this.transform.scale <= this.option("baseScale") || s.length > 1 && (!this.option("zoom") || this.option("pinchToZoom") === !1))
|
|
7631
|
-
return;
|
|
7502
|
+
if (this.state !== "pointerdown") return;
|
|
7503
|
+
if (this.trigger("touchMove", n) === !1) return void n.preventDefault();
|
|
7504
|
+
if (s.length < 2 && this.option("panOnlyZoomed") === !0 && this.content.width <= this.viewport.width && this.content.height <= this.viewport.height && this.transform.scale <= this.option("baseScale") || s.length > 1 && (!this.option("zoom") || this.option("pinchToZoom") === !1)) return;
|
|
7632
7505
|
const i = pn(a[0], a[1]), r = pn(s[0], s[1]), o = r.clientX - i.clientX, l = r.clientY - i.clientY, u = Sr(a[0], a[1]), p = Sr(s[0], s[1]), f = u && p ? p / u : 1;
|
|
7633
7506
|
this.dragOffset.x += o, this.dragOffset.y += l, this.dragOffset.scale *= f, this.dragOffset.time = Date.now() - this.dragPosition.time;
|
|
7634
7507
|
const m = this.dragStart.scale === 1 && this.option("lockAxis");
|
|
7635
7508
|
if (m && !this.lockAxis) {
|
|
7636
|
-
if (Math.abs(this.dragOffset.x) < 6 && Math.abs(this.dragOffset.y) < 6)
|
|
7637
|
-
return void n.preventDefault();
|
|
7509
|
+
if (Math.abs(this.dragOffset.x) < 6 && Math.abs(this.dragOffset.y) < 6) return void n.preventDefault();
|
|
7638
7510
|
const v = Math.abs(180 * Math.atan2(this.dragOffset.y, this.dragOffset.x) / Math.PI);
|
|
7639
7511
|
this.lockAxis = v > 45 && v < 135 ? "y" : "x";
|
|
7640
7512
|
}
|
|
@@ -7642,20 +7514,15 @@ class jt extends di {
|
|
|
7642
7514
|
if (n.preventDefault(), n.stopPropagation(), n.stopImmediatePropagation(), this.lockAxis && (this.dragOffset[this.lockAxis === "x" ? "y" : "x"] = 0), this.$container.classList.add(this.option("draggingClass")), this.transform.scale === this.option("baseScale") && this.lockAxis === "y" || (this.dragPosition.x = this.dragStart.x + this.dragOffset.x), this.transform.scale === this.option("baseScale") && this.lockAxis === "x" || (this.dragPosition.y = this.dragStart.y + this.dragOffset.y), this.dragPosition.scale = this.dragStart.scale * this.dragOffset.scale, s.length > 1) {
|
|
7643
7515
|
const v = pn(t.startPointers[0], t.startPointers[1]), y = v.clientX - this.dragStart.rect.x, $ = v.clientY - this.dragStart.rect.y, { deltaX: E, deltaY: b } = this.getZoomDelta(this.content.scale * this.dragOffset.scale, y, $);
|
|
7644
7516
|
this.dragPosition.x -= E, this.dragPosition.y -= b, this.dragPosition.midPoint = r;
|
|
7645
|
-
} else
|
|
7646
|
-
this.setDragResistance();
|
|
7517
|
+
} else this.setDragResistance();
|
|
7647
7518
|
this.transform = { x: this.dragPosition.x, y: this.dragPosition.y, scale: this.dragPosition.scale }, this.startAnimation();
|
|
7648
7519
|
}
|
|
7649
7520
|
}, end: (a, s) => {
|
|
7650
|
-
if (this.state !== "pointerdown")
|
|
7651
|
-
|
|
7652
|
-
if (this.
|
|
7653
|
-
return void this.resetDragPosition();
|
|
7654
|
-
if (this.state = "decel", this.friction = this.option("decelFriction"), this.recalculateTransform(), this.$container.classList.remove(this.option("draggingClass")), this.trigger("touchEnd", s) === !1 || this.state !== "decel")
|
|
7655
|
-
return;
|
|
7521
|
+
if (this.state !== "pointerdown") return;
|
|
7522
|
+
if (this._dragOffset = { ...this.dragOffset }, t.currentPointers.length) return void this.resetDragPosition();
|
|
7523
|
+
if (this.state = "decel", this.friction = this.option("decelFriction"), this.recalculateTransform(), this.$container.classList.remove(this.option("draggingClass")), this.trigger("touchEnd", s) === !1 || this.state !== "decel") return;
|
|
7656
7524
|
const n = this.option("minScale");
|
|
7657
|
-
if (this.transform.scale < n)
|
|
7658
|
-
return void this.zoomTo(n, { friction: 0.64 });
|
|
7525
|
+
if (this.transform.scale < n) return void this.zoomTo(n, { friction: 0.64 });
|
|
7659
7526
|
const i = this.option("maxScale");
|
|
7660
7527
|
if (this.transform.scale - i > 0.01) {
|
|
7661
7528
|
const r = this.dragPosition.midPoint || a, o = this.$content.getClientRects()[0];
|
|
@@ -7738,33 +7605,27 @@ class jt extends di {
|
|
|
7738
7605
|
this.rAF ? cancelAnimationFrame(this.rAF) : this.trigger("startAnimation"), this.rAF = requestAnimationFrame(() => this.animate());
|
|
7739
7606
|
}
|
|
7740
7607
|
animate() {
|
|
7741
|
-
if (this.setEdgeForce(), this.setDragForce(), this.velocity.x *= this.friction, this.velocity.y *= this.friction, this.velocity.scale *= this.friction, this.content.x += this.velocity.x, this.content.y += this.velocity.y, this.content.scale += this.velocity.scale, this.isAnimating())
|
|
7742
|
-
|
|
7743
|
-
else if (this.state !== "pointerdown")
|
|
7744
|
-
return void this.endAnimation();
|
|
7608
|
+
if (this.setEdgeForce(), this.setDragForce(), this.velocity.x *= this.friction, this.velocity.y *= this.friction, this.velocity.scale *= this.friction, this.content.x += this.velocity.x, this.content.y += this.velocity.y, this.content.scale += this.velocity.scale, this.isAnimating()) this.setTransform();
|
|
7609
|
+
else if (this.state !== "pointerdown") return void this.endAnimation();
|
|
7745
7610
|
this.rAF = requestAnimationFrame(() => this.animate());
|
|
7746
7611
|
}
|
|
7747
7612
|
getBounds(t) {
|
|
7748
7613
|
let a = this.boundX, s = this.boundY;
|
|
7749
|
-
if (a !== void 0 && s !== void 0)
|
|
7750
|
-
return { boundX: a, boundY: s };
|
|
7614
|
+
if (a !== void 0 && s !== void 0) return { boundX: a, boundY: s };
|
|
7751
7615
|
a = { from: 0, to: 0 }, s = { from: 0, to: 0 }, t = t || this.transform.scale;
|
|
7752
7616
|
const n = this.content.fitWidth * t, i = this.content.fitHeight * t, r = this.viewport.width, o = this.viewport.height;
|
|
7753
7617
|
if (n < r) {
|
|
7754
7618
|
const l = ye(0.5 * (r - n));
|
|
7755
7619
|
a.from = l, a.to = l;
|
|
7756
|
-
} else
|
|
7757
|
-
a.from = ye(r - n);
|
|
7620
|
+
} else a.from = ye(r - n);
|
|
7758
7621
|
if (i < o) {
|
|
7759
7622
|
const l = 0.5 * (o - i);
|
|
7760
7623
|
s.from = l, s.to = l;
|
|
7761
|
-
} else
|
|
7762
|
-
s.from = ye(o - i);
|
|
7624
|
+
} else s.from = ye(o - i);
|
|
7763
7625
|
return { boundX: a, boundY: s };
|
|
7764
7626
|
}
|
|
7765
7627
|
setEdgeForce() {
|
|
7766
|
-
if (this.state !== "decel")
|
|
7767
|
-
return;
|
|
7628
|
+
if (this.state !== "decel") return;
|
|
7768
7629
|
const t = this.option("bounceForce"), { boundX: a, boundY: s } = this.getBounds(Math.max(this.transform.scale, this.content.scale));
|
|
7769
7630
|
let n, i, r, o;
|
|
7770
7631
|
if (a && (n = this.content.x < a.from, i = this.content.x > a.to), s && (r = this.content.y < s.from, o = this.content.y > s.to), n || i) {
|
|
@@ -7779,8 +7640,7 @@ class jt extends di {
|
|
|
7779
7640
|
}
|
|
7780
7641
|
}
|
|
7781
7642
|
setDragResistance() {
|
|
7782
|
-
if (this.state !== "pointerdown")
|
|
7783
|
-
return;
|
|
7643
|
+
if (this.state !== "pointerdown") return;
|
|
7784
7644
|
const { boundX: t, boundY: a } = this.getBounds(this.dragPosition.scale);
|
|
7785
7645
|
let s, n, i, r;
|
|
7786
7646
|
if (t && (s = this.dragPosition.x < t.from, n = this.dragPosition.x > t.to), a && (i = this.dragPosition.y < a.from, r = this.dragPosition.y > a.to), (s || n) && (!s || !n)) {
|
|
@@ -7806,8 +7666,7 @@ class jt extends di {
|
|
|
7806
7666
|
if (t ? (a = ye(this.transform.x), s = ye(this.transform.y), n = this.transform.scale, this.content = { ...this.content, x: a, y: s, scale: n }) : (a = ye(this.content.x), s = ye(this.content.y), n = this.content.scale / (this.content.width / this.content.fitWidth), this.content = { ...this.content, x: a, y: s }), this.trigger("beforeTransform"), a = ye(this.content.x), s = ye(this.content.y), t && this.option("zoom")) {
|
|
7807
7667
|
let i, r;
|
|
7808
7668
|
i = ye(this.content.fitWidth * n), r = ye(this.content.fitHeight * n), this.content.width = i, this.content.height = r, this.transform = { ...this.transform, width: i, height: r, scale: n }, Object.assign(this.$content.style, { width: `${i}px`, height: `${r}px`, maxWidth: "none", maxHeight: "none", transform: `translate3d(${a}px, ${s}px, 0) scale(1)` });
|
|
7809
|
-
} else
|
|
7810
|
-
this.$content.style.transform = `translate3d(${a}px, ${s}px, 0) scale(${n})`;
|
|
7669
|
+
} else this.$content.style.transform = `translate3d(${a}px, ${s}px, 0) scale(${n})`;
|
|
7811
7670
|
this.trigger("afterTransform");
|
|
7812
7671
|
}
|
|
7813
7672
|
endAnimation(t) {
|
|
@@ -7829,8 +7688,7 @@ const Cr = (e, t) => {
|
|
|
7829
7688
|
let a = 0;
|
|
7830
7689
|
return function(...s) {
|
|
7831
7690
|
const n = (/* @__PURE__ */ new Date()).getTime();
|
|
7832
|
-
if (!(n - a < t))
|
|
7833
|
-
return a = n, e(...s);
|
|
7691
|
+
if (!(n - a < t)) return a = n, e(...s);
|
|
7834
7692
|
};
|
|
7835
7693
|
};
|
|
7836
7694
|
class Ml {
|
|
@@ -7884,8 +7742,7 @@ class xl {
|
|
|
7884
7742
|
}
|
|
7885
7743
|
onNavClick(t, a, s) {
|
|
7886
7744
|
const n = s.target.closest(".carousel__slide");
|
|
7887
|
-
if (!n)
|
|
7888
|
-
return;
|
|
7745
|
+
if (!n) return;
|
|
7889
7746
|
s.stopPropagation();
|
|
7890
7747
|
const i = parseInt(n.dataset.index, 10), r = this.target.findPageForSlide(i);
|
|
7891
7748
|
this.target.page !== r && this.target.slideTo(r, { friction: this.friction }), this.markSelectedSlide(i);
|
|
@@ -7916,12 +7773,10 @@ const Zm = { Navigation: Ml, Dots: class {
|
|
|
7916
7773
|
this.carousel = e, this.$list = null, this.events = { change: this.onChange.bind(this), refresh: this.onRefresh.bind(this) };
|
|
7917
7774
|
}
|
|
7918
7775
|
buildList() {
|
|
7919
|
-
if (this.carousel.pages.length < this.carousel.option("Dots.minSlideCount"))
|
|
7920
|
-
return;
|
|
7776
|
+
if (this.carousel.pages.length < this.carousel.option("Dots.minSlideCount")) return;
|
|
7921
7777
|
const e = document.createElement("ol");
|
|
7922
7778
|
return e.classList.add("carousel__dots"), e.addEventListener("click", (t) => {
|
|
7923
|
-
if (!("page" in t.target.dataset))
|
|
7924
|
-
return;
|
|
7779
|
+
if (!("page" in t.target.dataset)) return;
|
|
7925
7780
|
t.preventDefault(), t.stopPropagation();
|
|
7926
7781
|
const a = parseInt(t.target.dataset.page, 10), s = this.carousel;
|
|
7927
7782
|
a !== s.page && (s.pages.length < 3 && s.option("infinite") ? s[a == 0 ? "slidePrev" : "slideNext"]() : s.slideTo(a));
|
|
@@ -7933,13 +7788,10 @@ const Zm = { Navigation: Ml, Dots: class {
|
|
|
7933
7788
|
rebuildDots() {
|
|
7934
7789
|
let e = this.$list;
|
|
7935
7790
|
const t = !!e, a = this.carousel.pages.length;
|
|
7936
|
-
if (a < 2)
|
|
7937
|
-
return void (t && this.removeList());
|
|
7791
|
+
if (a < 2) return void (t && this.removeList());
|
|
7938
7792
|
t || (e = this.buildList());
|
|
7939
7793
|
const s = this.$list.children.length;
|
|
7940
|
-
if (s > a)
|
|
7941
|
-
for (let n = a; n < s; n++)
|
|
7942
|
-
this.$list.removeChild(this.$list.lastChild);
|
|
7794
|
+
if (s > a) for (let n = a; n < s; n++) this.$list.removeChild(this.$list.lastChild);
|
|
7943
7795
|
else {
|
|
7944
7796
|
for (let n = s; n < a; n++) {
|
|
7945
7797
|
const i = document.createElement("li");
|
|
@@ -7953,8 +7805,7 @@ const Zm = { Navigation: Ml, Dots: class {
|
|
|
7953
7805
|
}
|
|
7954
7806
|
}
|
|
7955
7807
|
setActiveDot() {
|
|
7956
|
-
if (!this.$list)
|
|
7957
|
-
return;
|
|
7808
|
+
if (!this.$list) return;
|
|
7958
7809
|
this.$list.childNodes.forEach((t) => {
|
|
7959
7810
|
t.classList.remove("is-selected");
|
|
7960
7811
|
});
|
|
@@ -7976,8 +7827,7 @@ const Zm = { Navigation: Ml, Dots: class {
|
|
|
7976
7827
|
}, Sync: xl }, Xm = { slides: [], preload: 0, slidesPerPage: "auto", initialPage: null, initialSlide: null, friction: 0.92, center: !0, infinite: !0, fill: !0, dragFree: !1, prefix: "", classNames: { viewport: "carousel__viewport", track: "carousel__track", slide: "carousel__slide", slideSelected: "is-selected" }, l10n: { NEXT: "Next slide", PREV: "Previous slide", GOTO: "Go to slide #%d" } };
|
|
7977
7828
|
class Gt extends di {
|
|
7978
7829
|
constructor(t, a = {}) {
|
|
7979
|
-
if (super(a = Me(!0, {}, Xm, a)), this.state = "init", this.$container = t, !(this.$container instanceof HTMLElement))
|
|
7980
|
-
throw new Error("No root element provided");
|
|
7830
|
+
if (super(a = Me(!0, {}, Xm, a)), this.state = "init", this.$container = t, !(this.$container instanceof HTMLElement)) throw new Error("No root element provided");
|
|
7981
7831
|
this.slideNext = Cr(this.slideNext.bind(this), 250), this.slidePrev = Cr(this.slidePrev.bind(this), 250), this.init(), t.__Carousel = this;
|
|
7982
7832
|
}
|
|
7983
7833
|
init() {
|
|
@@ -8002,9 +7852,7 @@ class Gt extends di {
|
|
|
8002
7852
|
let n = Math.max(this.$track.offsetWidth, ye(this.$track.getBoundingClientRect().width)), i = getComputedStyle(this.$track);
|
|
8003
7853
|
n -= parseFloat(i.paddingLeft) + parseFloat(i.paddingRight), this.contentWidth = a, this.viewportWidth = n;
|
|
8004
7854
|
const r = [], o = this.option("slidesPerPage");
|
|
8005
|
-
if (Number.isInteger(o) && a > n)
|
|
8006
|
-
for (let v = 0; v < this.slides.length; v += o)
|
|
8007
|
-
r.push({ indexes: s.slice(v, v + o), slides: this.slides.slice(v, v + o) });
|
|
7855
|
+
if (Number.isInteger(o) && a > n) for (let v = 0; v < this.slides.length; v += o) r.push({ indexes: s.slice(v, v + o), slides: this.slides.slice(v, v + o) });
|
|
8008
7856
|
else {
|
|
8009
7857
|
let v = 0, y = 0;
|
|
8010
7858
|
for (let $ = 0; $ < this.slides.length; $ += 1) {
|
|
@@ -8088,8 +7936,7 @@ class Gt extends di {
|
|
|
8088
7936
|
}), this.markSelectedSlides();
|
|
8089
7937
|
}
|
|
8090
7938
|
createSlideEl(t) {
|
|
8091
|
-
if (!t)
|
|
8092
|
-
return;
|
|
7939
|
+
if (!t) return;
|
|
8093
7940
|
if (t.$el) {
|
|
8094
7941
|
let r = t.$el.dataset.index;
|
|
8095
7942
|
if (!r || parseInt(r, 10) !== t.index) {
|
|
@@ -8124,8 +7971,7 @@ class Gt extends di {
|
|
|
8124
7971
|
const t = this.option("classNames.slideSelected"), a = "aria-hidden";
|
|
8125
7972
|
this.slides.forEach((s, n) => {
|
|
8126
7973
|
const i = s.$el;
|
|
8127
|
-
if (!i)
|
|
8128
|
-
return;
|
|
7974
|
+
if (!i) return;
|
|
8129
7975
|
const r = this.pages[this.page];
|
|
8130
7976
|
r && r.indexes && r.indexes.indexOf(n) > -1 ? (t && !i.classList.contains(t) && (i.classList.add(t), this.trigger("selectSlide", s)), i.removeAttribute(a)) : (t && i.classList.contains(t) && (i.classList.remove(t), this.trigger("unselectSlide", s)), i.setAttribute(a, !0));
|
|
8131
7977
|
});
|
|
@@ -8138,21 +7984,18 @@ class Gt extends di {
|
|
|
8138
7984
|
}
|
|
8139
7985
|
manageInfiniteTrack() {
|
|
8140
7986
|
const t = this.contentWidth, a = this.viewportWidth;
|
|
8141
|
-
if (!this.option("infiniteX", this.option("infinite")) || this.pages.length < 2 || t < a)
|
|
8142
|
-
return;
|
|
7987
|
+
if (!this.option("infiniteX", this.option("infinite")) || this.pages.length < 2 || t < a) return;
|
|
8143
7988
|
const s = this.Panzoom;
|
|
8144
7989
|
let n = !1;
|
|
8145
7990
|
return s.content.x < -1 * (t - a) && (s.content.x += t, this.pageIndex = this.pageIndex - this.pages.length, n = !0), s.content.x > a && (s.content.x -= t, this.pageIndex = this.pageIndex + this.pages.length, n = !0), n && s.state === "pointerdown" && s.resetDragPosition(), n;
|
|
8146
7991
|
}
|
|
8147
7992
|
onTouchEnd(t, a) {
|
|
8148
7993
|
const s = this.option("dragFree");
|
|
8149
|
-
if (!s && this.pages.length > 1 && t.dragOffset.time < 350 && Math.abs(t.dragOffset.y) < 1 && Math.abs(t.dragOffset.x) > 5)
|
|
8150
|
-
this[t.dragOffset.x < 0 ? "slideNext" : "slidePrev"]();
|
|
7994
|
+
if (!s && this.pages.length > 1 && t.dragOffset.time < 350 && Math.abs(t.dragOffset.y) < 1 && Math.abs(t.dragOffset.x) > 5) this[t.dragOffset.x < 0 ? "slideNext" : "slidePrev"]();
|
|
8151
7995
|
else if (s) {
|
|
8152
7996
|
const [, n] = this.getPageFromPosition(-1 * t.transform.x);
|
|
8153
7997
|
this.setPage(n);
|
|
8154
|
-
} else
|
|
8155
|
-
this.slideToClosest();
|
|
7998
|
+
} else this.slideToClosest();
|
|
8156
7999
|
}
|
|
8157
8000
|
slideToClosest(t = {}) {
|
|
8158
8001
|
let [, a] = this.getPageFromPosition(-1 * this.Panzoom.content.x);
|
|
@@ -8180,8 +8023,7 @@ class Gt extends di {
|
|
|
8180
8023
|
const v = s - f, y = s + f, $ = Math.abs(m - s), E = Math.abs(m - v), b = Math.abs(m - y);
|
|
8181
8024
|
b < $ && b <= E ? (s = y, n += o) : E < $ && E < b && (s = v, n -= o);
|
|
8182
8025
|
}
|
|
8183
|
-
} else
|
|
8184
|
-
t = n = Math.max(0, Math.min(n, o - 1)), s = this.pages.length ? this.pages[t].left : 0;
|
|
8026
|
+
} else t = n = Math.max(0, Math.min(n, o - 1)), s = this.pages.length ? this.pages[t].left : 0;
|
|
8185
8027
|
return this.page = t, this.pageIndex = n, i !== null && t !== i && (this.prevPage = i, this.prevPageIndex = r, this.trigger("change", t, i)), s;
|
|
8186
8028
|
}
|
|
8187
8029
|
destroy() {
|
|
@@ -8199,10 +8041,8 @@ const Ir = ["a[href]", "area[href]", 'input:not([disabled]):not([type="hidden"])
|
|
|
8199
8041
|
return fn = !0, !1;
|
|
8200
8042
|
} });
|
|
8201
8043
|
try {
|
|
8202
|
-
if (e.setActive)
|
|
8203
|
-
|
|
8204
|
-
else if (fn)
|
|
8205
|
-
e.focus({ preventScroll: !0 });
|
|
8044
|
+
if (e.setActive) e.setActive();
|
|
8045
|
+
else if (fn) e.focus({ preventScroll: !0 });
|
|
8206
8046
|
else {
|
|
8207
8047
|
const t = window.pageXOffset || document.body.scrollTop, a = window.pageYOffset || document.body.scrollLeft;
|
|
8208
8048
|
e.focus(), document.body.scrollTo({ top: t, left: a, behavior: "auto" });
|
|
@@ -8214,8 +8054,7 @@ const Ir = ["a[href]", "area[href]", 'input:not([disabled]):not([type="hidden"])
|
|
|
8214
8054
|
class Ll {
|
|
8215
8055
|
constructor(t) {
|
|
8216
8056
|
this.fancybox = t, this.$container = null, this.state = "init";
|
|
8217
|
-
for (const a of ["onPrepare", "onClosing", "onKeydown"])
|
|
8218
|
-
this[a] = this[a].bind(this);
|
|
8057
|
+
for (const a of ["onPrepare", "onClosing", "onKeydown"]) this[a] = this[a].bind(this);
|
|
8219
8058
|
this.events = { prepare: this.onPrepare, closing: this.onClosing, keydown: this.onKeydown };
|
|
8220
8059
|
}
|
|
8221
8060
|
onPrepare() {
|
|
@@ -8228,8 +8067,7 @@ class Ll {
|
|
|
8228
8067
|
a === t.option("Thumbs.key") && this.toggle();
|
|
8229
8068
|
}
|
|
8230
8069
|
build() {
|
|
8231
|
-
if (this.$container)
|
|
8232
|
-
return;
|
|
8070
|
+
if (this.$container) return;
|
|
8233
8071
|
const t = document.createElement("div");
|
|
8234
8072
|
t.classList.add("fancybox__thumbs"), this.fancybox.$carousel.parentNode.insertBefore(t, this.fancybox.$carousel.nextSibling), this.Carousel = new Gt(t, Me(!0, { Dots: !1, Navigation: !1, Sync: { friction: 0 }, infinite: !1, center: !0, fill: !0, dragFree: !0, slidesPerPage: 1, preload: 1 }, this.fancybox.option("Thumbs.Carousel"), { Sync: { target: this.fancybox.Carousel }, slides: this.getSlides() })), this.Carousel.Panzoom.on("wheel", (a, s) => {
|
|
8235
8073
|
s.preventDefault(), this.fancybox[s.deltaY < 0 ? "prev" : "next"]();
|
|
@@ -8266,8 +8104,7 @@ Ll.defaults = Jm;
|
|
|
8266
8104
|
const Tr = (e, t) => {
|
|
8267
8105
|
const a = new URL(e), s = new URLSearchParams(a.search);
|
|
8268
8106
|
let n = new URLSearchParams();
|
|
8269
|
-
for (const [r, o] of [...s, ...Object.entries(t)])
|
|
8270
|
-
r === "t" ? n.set("start", parseInt(o)) : n.set(r, o);
|
|
8107
|
+
for (const [r, o] of [...s, ...Object.entries(t)]) r === "t" ? n.set("start", parseInt(o)) : n.set(r, o);
|
|
8271
8108
|
n = n.toString();
|
|
8272
8109
|
let i = e.match(/#t=((.*)?\d+s)/);
|
|
8273
8110
|
return i && (n += `#t=${i[1]}`), n;
|
|
@@ -8276,17 +8113,14 @@ const Tr = (e, t) => {
|
|
|
8276
8113
|
class Pl {
|
|
8277
8114
|
constructor(t) {
|
|
8278
8115
|
this.fancybox = t;
|
|
8279
|
-
for (const a of ["onInit", "onReady", "onCreateSlide", "onRemoveSlide", "onSelectSlide", "onUnselectSlide", "onRefresh", "onMessage"])
|
|
8280
|
-
this[a] = this[a].bind(this);
|
|
8116
|
+
for (const a of ["onInit", "onReady", "onCreateSlide", "onRemoveSlide", "onSelectSlide", "onUnselectSlide", "onRefresh", "onMessage"]) this[a] = this[a].bind(this);
|
|
8281
8117
|
this.events = { init: this.onInit, ready: this.onReady, "Carousel.createSlide": this.onCreateSlide, "Carousel.removeSlide": this.onRemoveSlide, "Carousel.selectSlide": this.onSelectSlide, "Carousel.unselectSlide": this.onUnselectSlide, "Carousel.refresh": this.onRefresh };
|
|
8282
8118
|
}
|
|
8283
8119
|
onInit() {
|
|
8284
|
-
for (const t of this.fancybox.items)
|
|
8285
|
-
this.processType(t);
|
|
8120
|
+
for (const t of this.fancybox.items) this.processType(t);
|
|
8286
8121
|
}
|
|
8287
8122
|
processType(t) {
|
|
8288
|
-
if (t.html)
|
|
8289
|
-
return t.src = t.html, t.type = "html", void delete t.html;
|
|
8123
|
+
if (t.html) return t.src = t.html, t.type = "html", void delete t.html;
|
|
8290
8124
|
const a = t.src || "";
|
|
8291
8125
|
let s = t.type || this.fancybox.options.type, n = null;
|
|
8292
8126
|
if (!a || typeof a == "string") {
|
|
@@ -8296,8 +8130,7 @@ class Pl {
|
|
|
8296
8130
|
} else if (n = a.match(/^.+vimeo.com\/(?:\/)?([\d]+)(.*)?/)) {
|
|
8297
8131
|
const i = Tr(a, this.fancybox.option("Html.vimeo")), r = encodeURIComponent(n[1]);
|
|
8298
8132
|
t.videoId = r, t.src = `https://player.vimeo.com/video/${r}?${i}`, t.vendor = "vimeo", s = "video";
|
|
8299
|
-
} else
|
|
8300
|
-
(n = a.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i)) ? (t.src = `//maps.google.${n[1]}/?ll=${(n[2] ? n[2] + "&z=" + Math.floor(n[3]) + (n[4] ? n[4].replace(/^\//, "&") : "") : n[4] + "").replace(/\?/, "&")}&output=${n[4] && n[4].indexOf("layer=c") > 0 ? "svembed" : "embed"}`, s = "map") : (n = a.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i)) && (t.src = `//maps.google.${n[1]}/maps?q=${n[2].replace("query=", "q=").replace("api=1", "")}&output=embed`, s = "map");
|
|
8133
|
+
} else (n = a.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i)) ? (t.src = `//maps.google.${n[1]}/?ll=${(n[2] ? n[2] + "&z=" + Math.floor(n[3]) + (n[4] ? n[4].replace(/^\//, "&") : "") : n[4] + "").replace(/\?/, "&")}&output=${n[4] && n[4].indexOf("layer=c") > 0 ? "svembed" : "embed"}`, s = "map") : (n = a.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i)) && (t.src = `//maps.google.${n[1]}/maps?q=${n[2].replace("query=", "q=").replace("api=1", "")}&output=embed`, s = "map");
|
|
8301
8134
|
s || (a.charAt(0) === "#" ? s = "inline" : (n = a.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i)) ? (s = "html5video", t.format = t.format || "video/" + (n[1] === "ogv" ? "ogg" : n[1])) : a.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i) ? s = "image" : a.match(/\.(pdf)((\?|#).*)?$/i) && (s = "pdf")), t.type = s || this.fancybox.option("defaultType", "image"), s !== "html5video" && s !== "video" || (t.video = Me({}, this.fancybox.option("Html.video"), t.video), t._width && t._height ? t.ratio = parseFloat(t._width) / parseFloat(t._height) : t.ratio = t.ratio || t.video.ratio || El.video.ratio);
|
|
8302
8135
|
}
|
|
8303
8136
|
}
|
|
@@ -8311,8 +8144,7 @@ class Pl {
|
|
|
8311
8144
|
}
|
|
8312
8145
|
loadInlineContent(t) {
|
|
8313
8146
|
let a;
|
|
8314
|
-
if (t.src instanceof HTMLElement)
|
|
8315
|
-
a = t.src;
|
|
8147
|
+
if (t.src instanceof HTMLElement) a = t.src;
|
|
8316
8148
|
else if (typeof t.src == "string") {
|
|
8317
8149
|
const s = t.src.split("#", 2), n = s.length === 2 && s[0] === "" ? s[1] : s[0];
|
|
8318
8150
|
a = document.getElementById(n);
|
|
@@ -8327,8 +8159,7 @@ class Pl {
|
|
|
8327
8159
|
s.classList.add("fancybox-placeholder"), a.parentNode.insertBefore(s, a), a.$placeHolder = s;
|
|
8328
8160
|
}
|
|
8329
8161
|
this.fancybox.setContent(t, a);
|
|
8330
|
-
} else
|
|
8331
|
-
this.fancybox.setError(t, "{{ELEMENT_NOT_FOUND}}");
|
|
8162
|
+
} else this.fancybox.setError(t, "{{ELEMENT_NOT_FOUND}}");
|
|
8332
8163
|
}
|
|
8333
8164
|
loadAjaxContent(t) {
|
|
8334
8165
|
const a = this.fancybox, s = new XMLHttpRequest();
|
|
@@ -8340,8 +8171,7 @@ class Pl {
|
|
|
8340
8171
|
}
|
|
8341
8172
|
loadIframeContent(t) {
|
|
8342
8173
|
const a = this.fancybox, s = document.createElement("iframe");
|
|
8343
|
-
if (s.className = "fancybox__iframe", s.setAttribute("id", `fancybox__iframe_${a.id}_${t.index}`), s.setAttribute("allow", "autoplay; fullscreen"), s.setAttribute("scrolling", "auto"), t.$iframe = s, t.type !== "iframe" || t.preload === !1)
|
|
8344
|
-
return s.setAttribute("src", t.src), this.fancybox.setContent(t, s), void this.resizeIframe(t);
|
|
8174
|
+
if (s.className = "fancybox__iframe", s.setAttribute("id", `fancybox__iframe_${a.id}_${t.index}`), s.setAttribute("allow", "autoplay; fullscreen"), s.setAttribute("scrolling", "auto"), t.$iframe = s, t.type !== "iframe" || t.preload === !1) return s.setAttribute("src", t.src), this.fancybox.setContent(t, s), void this.resizeIframe(t);
|
|
8345
8175
|
a.showLoading(t);
|
|
8346
8176
|
const n = document.createElement("div");
|
|
8347
8177
|
n.style.visibility = "hidden", this.fancybox.setContent(t, n), n.appendChild(s), s.onerror = () => {
|
|
@@ -8354,8 +8184,7 @@ class Pl {
|
|
|
8354
8184
|
}
|
|
8355
8185
|
setAspectRatio(t) {
|
|
8356
8186
|
const a = t.$content, s = t.ratio;
|
|
8357
|
-
if (!a)
|
|
8358
|
-
return;
|
|
8187
|
+
if (!a) return;
|
|
8359
8188
|
let n = t._width, i = t._height;
|
|
8360
8189
|
if (s || n && i) {
|
|
8361
8190
|
Object.assign(a.style, { width: n && i ? "100%" : "", height: n && i ? "100%" : "", maxWidth: "", maxHeight: "" });
|
|
@@ -8369,17 +8198,15 @@ class Pl {
|
|
|
8369
8198
|
}
|
|
8370
8199
|
resizeIframe(t) {
|
|
8371
8200
|
const a = t.$iframe;
|
|
8372
|
-
if (!a)
|
|
8373
|
-
return;
|
|
8201
|
+
if (!a) return;
|
|
8374
8202
|
let s = t._width || 0, n = t._height || 0;
|
|
8375
8203
|
s && n && (t.autoSize = !1);
|
|
8376
8204
|
const i = a.parentNode, r = i && i.style;
|
|
8377
|
-
if (t.preload !== !1 && t.autoSize !== !1 && r)
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
}
|
|
8205
|
+
if (t.preload !== !1 && t.autoSize !== !1 && r) try {
|
|
8206
|
+
const o = window.getComputedStyle(i), l = parseFloat(o.paddingLeft) + parseFloat(o.paddingRight), u = parseFloat(o.paddingTop) + parseFloat(o.paddingBottom), p = a.contentWindow.document, f = p.getElementsByTagName("html")[0], m = p.body;
|
|
8207
|
+
r.width = "", m.style.overflow = "hidden", s = s || f.scrollWidth + l, r.width = `${s}px`, m.style.overflow = "", r.flex = "0 0 auto", r.height = `${m.scrollHeight}px`, n = f.scrollHeight + u;
|
|
8208
|
+
} catch {
|
|
8209
|
+
}
|
|
8383
8210
|
if (s || n) {
|
|
8384
8211
|
const o = { flex: "0 1 auto" };
|
|
8385
8212
|
s && (o.width = `${s}px`), n && (o.height = `${n}px`), Object.assign(r, o);
|
|
@@ -8420,25 +8247,22 @@ class Pl {
|
|
|
8420
8247
|
t.state === "ready" && this.playVideo(s);
|
|
8421
8248
|
}
|
|
8422
8249
|
playVideo(t) {
|
|
8423
|
-
if (t.type === "html5video" && t.video.autoplay)
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
});
|
|
8432
|
-
}
|
|
8433
|
-
} catch {
|
|
8250
|
+
if (t.type === "html5video" && t.video.autoplay) try {
|
|
8251
|
+
const s = t.$el.querySelector("video");
|
|
8252
|
+
if (s) {
|
|
8253
|
+
const n = s.play();
|
|
8254
|
+
n !== void 0 && n.then(() => {
|
|
8255
|
+
}).catch((i) => {
|
|
8256
|
+
s.muted = !0, s.play();
|
|
8257
|
+
});
|
|
8434
8258
|
}
|
|
8435
|
-
|
|
8436
|
-
|
|
8259
|
+
} catch {
|
|
8260
|
+
}
|
|
8261
|
+
if (t.type !== "video" || !t.$iframe || !t.$iframe.contentWindow) return;
|
|
8437
8262
|
const a = () => {
|
|
8438
8263
|
if (t.state === "done" && t.$iframe && t.$iframe.contentWindow) {
|
|
8439
8264
|
let s;
|
|
8440
|
-
if (t.$iframe.isReady)
|
|
8441
|
-
return t.video && t.video.autoplay && (s = t.vendor == "youtube" ? { event: "command", func: "playVideo" } : { method: "play", value: "true" }), void (s && t.$iframe.contentWindow.postMessage(JSON.stringify(s), "*"));
|
|
8265
|
+
if (t.$iframe.isReady) return t.video && t.video.autoplay && (s = t.vendor == "youtube" ? { event: "command", func: "playVideo" } : { method: "play", value: "true" }), void (s && t.$iframe.contentWindow.postMessage(JSON.stringify(s), "*"));
|
|
8442
8266
|
t.vendor === "youtube" && (s = { event: "listening", id: t.$iframe.getAttribute("id") }, t.$iframe.contentWindow.postMessage(JSON.stringify(s), "*"));
|
|
8443
8267
|
}
|
|
8444
8268
|
t.poller = setTimeout(a, 250);
|
|
@@ -8467,11 +8291,8 @@ class Pl {
|
|
|
8467
8291
|
try {
|
|
8468
8292
|
let a = JSON.parse(t.data);
|
|
8469
8293
|
if (t.origin === "https://player.vimeo.com") {
|
|
8470
|
-
if (a.event === "ready")
|
|
8471
|
-
|
|
8472
|
-
s.contentWindow === t.source && (s.isReady = 1);
|
|
8473
|
-
} else
|
|
8474
|
-
t.origin === "https://www.youtube-nocookie.com" && a.event === "onReady" && (document.getElementById(a.id).isReady = 1);
|
|
8294
|
+
if (a.event === "ready") for (let s of document.getElementsByClassName("fancybox__iframe")) s.contentWindow === t.source && (s.isReady = 1);
|
|
8295
|
+
} else t.origin === "https://www.youtube-nocookie.com" && a.event === "onReady" && (document.getElementById(a.id).isReady = 1);
|
|
8475
8296
|
} catch {
|
|
8476
8297
|
}
|
|
8477
8298
|
}
|
|
@@ -8486,8 +8307,7 @@ Pl.defaults = El;
|
|
|
8486
8307
|
class Bl {
|
|
8487
8308
|
constructor(t) {
|
|
8488
8309
|
this.fancybox = t;
|
|
8489
|
-
for (const a of ["onReady", "onClosing", "onDone", "onPageChange", "onCreateSlide", "onRemoveSlide", "onImageStatusChange"])
|
|
8490
|
-
this[a] = this[a].bind(this);
|
|
8310
|
+
for (const a of ["onReady", "onClosing", "onDone", "onPageChange", "onCreateSlide", "onRemoveSlide", "onImageStatusChange"]) this[a] = this[a].bind(this);
|
|
8491
8311
|
this.events = { ready: this.onReady, closing: this.onClosing, done: this.onDone, "Carousel.change": this.onPageChange, "Carousel.createSlide": this.onCreateSlide, "Carousel.removeSlide": this.onRemoveSlide };
|
|
8492
8312
|
}
|
|
8493
8313
|
onReady() {
|
|
@@ -8510,8 +8330,7 @@ class Bl {
|
|
|
8510
8330
|
s.$image && (s.$el.classList.remove(t.option("Image.canZoomInClass")), s.$image.remove(), s.$image = null), s.Panzoom && (s.Panzoom.destroy(), s.Panzoom = null), s.$el && s.$el.dataset && delete s.$el.dataset.imageFit;
|
|
8511
8331
|
}
|
|
8512
8332
|
setContent(t) {
|
|
8513
|
-
if (t.isDom || t.html || t.type && t.type !== "image" || t.$image)
|
|
8514
|
-
return;
|
|
8333
|
+
if (t.isDom || t.html || t.type && t.type !== "image" || t.$image) return;
|
|
8515
8334
|
t.type = "image", t.state = "loading";
|
|
8516
8335
|
const a = document.createElement("div");
|
|
8517
8336
|
a.style.visibility = "hidden";
|
|
@@ -8525,8 +8344,7 @@ class Bl {
|
|
|
8525
8344
|
if (n) {
|
|
8526
8345
|
const i = document.createElement("div");
|
|
8527
8346
|
i.classList.add(typeof n == "string" ? n : "fancybox__image-wrap"), i.appendChild(s), a.appendChild(i), t.$wrap = i;
|
|
8528
|
-
} else
|
|
8529
|
-
a.appendChild(s);
|
|
8347
|
+
} else a.appendChild(s);
|
|
8530
8348
|
t.$el.dataset.imageFit = this.fancybox.option("Image.fit"), this.fancybox.setContent(t, a), s.complete || s.error ? this.onImageStatusChange(t) : this.fancybox.showLoading(t);
|
|
8531
8349
|
}
|
|
8532
8350
|
onImageStatusChange(t) {
|
|
@@ -8552,19 +8370,16 @@ class Bl {
|
|
|
8552
8370
|
}
|
|
8553
8371
|
canZoom(t) {
|
|
8554
8372
|
const a = this.fancybox, s = a.$container;
|
|
8555
|
-
if (window.visualViewport && window.visualViewport.scale !== 1 || t.Panzoom && !t.Panzoom.content.width || !a.option("Image.zoom") || a.option("Image.fit") !== "contain")
|
|
8556
|
-
return !1;
|
|
8373
|
+
if (window.visualViewport && window.visualViewport.scale !== 1 || t.Panzoom && !t.Panzoom.content.width || !a.option("Image.zoom") || a.option("Image.fit") !== "contain") return !1;
|
|
8557
8374
|
const n = t.$thumb;
|
|
8558
|
-
if (!n || t.state === "loading")
|
|
8559
|
-
return !1;
|
|
8375
|
+
if (!n || t.state === "loading") return !1;
|
|
8560
8376
|
s.classList.add("fancybox__no-click");
|
|
8561
8377
|
const i = n.getBoundingClientRect();
|
|
8562
8378
|
let r;
|
|
8563
8379
|
if (this.fancybox.option("Image.ignoreCoveredThumbnail")) {
|
|
8564
8380
|
const o = document.elementFromPoint(i.left + 1, i.top + 1) === n, l = document.elementFromPoint(i.right - 1, i.bottom - 1) === n;
|
|
8565
8381
|
r = o && l;
|
|
8566
|
-
} else
|
|
8567
|
-
r = document.elementFromPoint(i.left + 0.5 * i.width, i.top + 0.5 * i.height) === n;
|
|
8382
|
+
} else r = document.elementFromPoint(i.left + 0.5 * i.width, i.top + 0.5 * i.height) === n;
|
|
8568
8383
|
return s.classList.remove("fancybox__no-click"), r;
|
|
8569
8384
|
}
|
|
8570
8385
|
zoomIn() {
|
|
@@ -8575,8 +8390,7 @@ class Bl {
|
|
|
8575
8390
|
}
|
|
8576
8391
|
zoomOut() {
|
|
8577
8392
|
const t = this.fancybox, a = t.getSlide(), s = a.Panzoom;
|
|
8578
|
-
if (!s)
|
|
8579
|
-
return;
|
|
8393
|
+
if (!s) return;
|
|
8580
8394
|
a.state = "zoomOut", t.state = "customClosing", a.$caption && (a.$caption.style.visibility = "hidden");
|
|
8581
8395
|
let n = this.fancybox.option("Image.zoomFriction");
|
|
8582
8396
|
const i = (r) => {
|
|
@@ -8588,32 +8402,27 @@ class Bl {
|
|
|
8588
8402
|
}), i();
|
|
8589
8403
|
}
|
|
8590
8404
|
handleCursor(t) {
|
|
8591
|
-
if (t.type !== "image" || !t.$el)
|
|
8592
|
-
return;
|
|
8405
|
+
if (t.type !== "image" || !t.$el) return;
|
|
8593
8406
|
const a = t.Panzoom, s = this.fancybox.option("Image.click", !1, t), n = this.fancybox.option("Image.touch"), i = t.$el.classList, r = this.fancybox.option("Image.canZoomInClass"), o = this.fancybox.option("Image.canZoomOutClass");
|
|
8594
8407
|
i.remove(o), i.remove(r), a && s === "toggleZoom" ? a && a.content.scale === 1 && a.option("maxScale") - a.content.scale > 0.01 ? i.add(r) : a.content.scale > 1 && !n && i.add(o) : s === "close" && i.add(o);
|
|
8595
8408
|
}
|
|
8596
8409
|
onWheel(t, a) {
|
|
8597
|
-
if (this.fancybox.state === "ready" && this.fancybox.trigger("Image.wheel", a) !== !1)
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8607
|
-
}
|
|
8410
|
+
if (this.fancybox.state === "ready" && this.fancybox.trigger("Image.wheel", a) !== !1) switch (this.fancybox.option("Image.wheel")) {
|
|
8411
|
+
case "zoom":
|
|
8412
|
+
t.state === "done" && t.Panzoom && t.Panzoom.zoomWithWheel(a);
|
|
8413
|
+
break;
|
|
8414
|
+
case "close":
|
|
8415
|
+
this.fancybox.close();
|
|
8416
|
+
break;
|
|
8417
|
+
case "slide":
|
|
8418
|
+
this.fancybox[a.deltaY < 0 ? "prev" : "next"]();
|
|
8419
|
+
}
|
|
8608
8420
|
}
|
|
8609
8421
|
onClick(t, a) {
|
|
8610
|
-
if (this.fancybox.state !== "ready")
|
|
8611
|
-
return;
|
|
8422
|
+
if (this.fancybox.state !== "ready") return;
|
|
8612
8423
|
const s = t.Panzoom;
|
|
8613
|
-
if (s && (s.dragPosition.midPoint || s.dragOffset.x !== 0 || s.dragOffset.y !== 0 || s.dragOffset.scale !== 1))
|
|
8614
|
-
|
|
8615
|
-
if (this.fancybox.Carousel.Panzoom.lockAxis)
|
|
8616
|
-
return !1;
|
|
8424
|
+
if (s && (s.dragPosition.midPoint || s.dragOffset.x !== 0 || s.dragOffset.y !== 0 || s.dragOffset.scale !== 1)) return;
|
|
8425
|
+
if (this.fancybox.Carousel.Panzoom.lockAxis) return !1;
|
|
8617
8426
|
const n = (o) => {
|
|
8618
8427
|
switch (o) {
|
|
8619
8428
|
case "toggleZoom":
|
|
@@ -8647,8 +8456,7 @@ Bl.defaults = { canZoomInClass: "can-zoom_in", canZoomOutClass: "can-zoom_out",
|
|
|
8647
8456
|
class He {
|
|
8648
8457
|
constructor(t) {
|
|
8649
8458
|
this.fancybox = t;
|
|
8650
|
-
for (const a of ["onChange", "onClosing"])
|
|
8651
|
-
this[a] = this[a].bind(this);
|
|
8459
|
+
for (const a of ["onChange", "onClosing"]) this[a] = this[a].bind(this);
|
|
8652
8460
|
this.events = { initCarousel: this.onChange, "Carousel.change": this.onChange, closing: this.onClosing }, this.hasCreatedHistory = !1, this.origHash = "", this.timer = null;
|
|
8653
8461
|
}
|
|
8654
8462
|
onChange(t) {
|
|
@@ -8656,8 +8464,7 @@ class He {
|
|
|
8656
8464
|
this.timer && clearTimeout(this.timer);
|
|
8657
8465
|
const s = a.prevPage === null, n = t.getSlide(), i = new URL(document.URL).hash;
|
|
8658
8466
|
let r = !1;
|
|
8659
|
-
if (n.slug)
|
|
8660
|
-
r = "#" + n.slug;
|
|
8467
|
+
if (n.slug) r = "#" + n.slug;
|
|
8661
8468
|
else {
|
|
8662
8469
|
const o = n.$trigger && n.$trigger.dataset, l = t.option("slug") || o && o.fancybox;
|
|
8663
8470
|
l && l.length && l !== "true" && (r = "#" + l + (a.slides.length > 1 ? "-" + (n.index + 1) : ""));
|
|
@@ -8670,11 +8477,10 @@ class He {
|
|
|
8670
8477
|
}, 300));
|
|
8671
8478
|
}
|
|
8672
8479
|
onClosing() {
|
|
8673
|
-
if (this.timer && clearTimeout(this.timer), this.hasSilentClose !== !0)
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
}
|
|
8480
|
+
if (this.timer && clearTimeout(this.timer), this.hasSilentClose !== !0) try {
|
|
8481
|
+
return void window.history.replaceState({}, document.title, window.location.pathname + window.location.search + (this.origHash || ""));
|
|
8482
|
+
} catch {
|
|
8483
|
+
}
|
|
8678
8484
|
}
|
|
8679
8485
|
attach(t) {
|
|
8680
8486
|
t.on(this.events);
|
|
@@ -8684,14 +8490,11 @@ class He {
|
|
|
8684
8490
|
}
|
|
8685
8491
|
static startFromUrl() {
|
|
8686
8492
|
const t = He.Fancybox;
|
|
8687
|
-
if (!t || t.getInstance() || t.defaults.Hash === !1)
|
|
8688
|
-
return;
|
|
8493
|
+
if (!t || t.getInstance() || t.defaults.Hash === !1) return;
|
|
8689
8494
|
const { hash: a, slug: s, index: n } = He.getParsedURL();
|
|
8690
|
-
if (!s)
|
|
8691
|
-
return;
|
|
8495
|
+
if (!s) return;
|
|
8692
8496
|
let i = document.querySelector(`[data-slug="${a}"]`);
|
|
8693
|
-
if (i && i.dispatchEvent(new CustomEvent("click", { bubbles: !0, cancelable: !0 })), t.getInstance())
|
|
8694
|
-
return;
|
|
8497
|
+
if (i && i.dispatchEvent(new CustomEvent("click", { bubbles: !0, cancelable: !0 })), t.getInstance()) return;
|
|
8695
8498
|
const r = document.querySelectorAll(`[data-fancybox="${s}"]`);
|
|
8696
8499
|
r.length && (n === null && r.length === 1 ? i = r[0] : n && (i = r[n - 1]), i && i.dispatchEvent(new CustomEvent("click", { bubbles: !0, cancelable: !0 })));
|
|
8697
8500
|
}
|
|
@@ -8700,14 +8503,10 @@ class He {
|
|
|
8700
8503
|
if (n && n.plugins.Hash) {
|
|
8701
8504
|
if (t) {
|
|
8702
8505
|
const i = n.Carousel;
|
|
8703
|
-
if (t === n.option("slug"))
|
|
8704
|
-
|
|
8705
|
-
for (let l of i.slides)
|
|
8706
|
-
if (l.slug && l.slug === t)
|
|
8707
|
-
return i.slideTo(l.index);
|
|
8506
|
+
if (t === n.option("slug")) return i.slideTo(a - 1);
|
|
8507
|
+
for (let l of i.slides) if (l.slug && l.slug === t) return i.slideTo(l.index);
|
|
8708
8508
|
const r = n.getSlide(), o = r.$trigger && r.$trigger.dataset;
|
|
8709
|
-
if (o && o.fancybox === t)
|
|
8710
|
-
return i.slideTo(a - 1);
|
|
8509
|
+
if (o && o.fancybox === t) return i.slideTo(a - 1);
|
|
8711
8510
|
}
|
|
8712
8511
|
n.plugins.Hash.hasSilentClose = !0, n.close();
|
|
8713
8512
|
}
|
|
@@ -8742,8 +8541,7 @@ class Qm {
|
|
|
8742
8541
|
return this.active;
|
|
8743
8542
|
}
|
|
8744
8543
|
setTimer() {
|
|
8745
|
-
if (!this.active || this.timer)
|
|
8746
|
-
return;
|
|
8544
|
+
if (!this.active || this.timer) return;
|
|
8747
8545
|
const t = this.fancybox.option("slideshow.delay", 3e3);
|
|
8748
8546
|
this.timer = setTimeout(() => {
|
|
8749
8547
|
this.timer = null, this.fancybox.option("infinite") || this.fancybox.getSlide().index !== this.fancybox.Carousel.slides.length - 1 ? this.fancybox.next() : this.fancybox.jumpTo(0, { friction: 0 });
|
|
@@ -8791,20 +8589,17 @@ const eg = { display: ["counter", "zoom", "slideshow", "fullscreen", "thumbs", "
|
|
|
8791
8589
|
class Dl {
|
|
8792
8590
|
constructor(t) {
|
|
8793
8591
|
this.fancybox = t, this.$container = null, this.state = "init";
|
|
8794
|
-
for (const a of ["onInit", "onPrepare", "onDone", "onKeydown", "onClosing", "onChange", "onSettle", "onRefresh"])
|
|
8795
|
-
this[a] = this[a].bind(this);
|
|
8592
|
+
for (const a of ["onInit", "onPrepare", "onDone", "onKeydown", "onClosing", "onChange", "onSettle", "onRefresh"]) this[a] = this[a].bind(this);
|
|
8796
8593
|
this.events = { init: this.onInit, prepare: this.onPrepare, done: this.onDone, keydown: this.onKeydown, closing: this.onClosing, "Carousel.change": this.onChange, "Carousel.settle": this.onSettle, "Carousel.Panzoom.touchStart": () => this.onRefresh(), "Image.startAnimation": (a, s) => this.onRefresh(s), "Image.afterUpdate": (a, s) => this.onRefresh(s) };
|
|
8797
8594
|
}
|
|
8798
8595
|
onInit() {
|
|
8799
8596
|
if (this.fancybox.option("Toolbar.autoEnable")) {
|
|
8800
8597
|
let t = !1;
|
|
8801
|
-
for (const a of this.fancybox.items)
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
if (!t)
|
|
8807
|
-
return void (this.state = "disabled");
|
|
8598
|
+
for (const a of this.fancybox.items) if (a.type === "image") {
|
|
8599
|
+
t = !0;
|
|
8600
|
+
break;
|
|
8601
|
+
}
|
|
8602
|
+
if (!t) return void (this.state = "disabled");
|
|
8808
8603
|
}
|
|
8809
8604
|
for (const t of this.fancybox.option("Toolbar.display"))
|
|
8810
8605
|
if ((Ft(t) ? t.id : t) === "close") {
|
|
@@ -8814,11 +8609,10 @@ class Dl {
|
|
|
8814
8609
|
}
|
|
8815
8610
|
onPrepare() {
|
|
8816
8611
|
const t = this.fancybox;
|
|
8817
|
-
if (this.state === "init" && (this.build(), this.update(), this.Slideshow = new Qm(t), !t.Carousel.prevPage && (t.option("slideshow.autoStart") && this.Slideshow.activate(), t.option("fullscreen.autoStart") && !it.element())))
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
}
|
|
8612
|
+
if (this.state === "init" && (this.build(), this.update(), this.Slideshow = new Qm(t), !t.Carousel.prevPage && (t.option("slideshow.autoStart") && this.Slideshow.activate(), t.option("fullscreen.autoStart") && !it.element()))) try {
|
|
8613
|
+
it.activate(t.$container);
|
|
8614
|
+
} catch {
|
|
8615
|
+
}
|
|
8822
8616
|
}
|
|
8823
8617
|
onFsChange() {
|
|
8824
8618
|
window.scrollTo(it.pageXOffset, it.pageYOffset);
|
|
@@ -8846,8 +8640,7 @@ class Dl {
|
|
|
8846
8640
|
createElement(t) {
|
|
8847
8641
|
let a;
|
|
8848
8642
|
t.type === "div" ? a = document.createElement("div") : (a = document.createElement(t.type === "link" ? "a" : "button"), a.classList.add("carousel__button")), a.innerHTML = t.html, a.setAttribute("tabindex", t.tabindex || 0), t.class && a.classList.add(...t.class.split(" "));
|
|
8849
|
-
for (const n in t.attr)
|
|
8850
|
-
a.setAttribute(n, t.attr[n]);
|
|
8643
|
+
for (const n in t.attr) a.setAttribute(n, t.attr[n]);
|
|
8851
8644
|
t.label && a.setAttribute("title", this.fancybox.localize(`{{${t.label}}}`)), t.click && a.addEventListener("click", t.click.bind(this)), t.id === "prev" && a.setAttribute("data-fancybox-prev", ""), t.id === "next" && a.setAttribute("data-fancybox-next", "");
|
|
8852
8645
|
const s = a.querySelector("svg");
|
|
8853
8646
|
return s && (s.setAttribute("role", "img"), s.setAttribute("tabindex", "-1"), s.setAttribute("xmlns", "http://www.w3.org/2000/svg")), a;
|
|
@@ -8857,46 +8650,35 @@ class Dl {
|
|
|
8857
8650
|
const t = this.fancybox.option("Toolbar.items"), a = [{ position: "left", items: [] }, { position: "center", items: [] }, { position: "right", items: [] }], s = this.fancybox.plugins.Thumbs;
|
|
8858
8651
|
for (const i of this.fancybox.option("Toolbar.display")) {
|
|
8859
8652
|
let r, o;
|
|
8860
|
-
if (Ft(i) ? (r = i.id, o = Me({}, t[r], i)) : (r = i, o = t[r]), ["counter", "next", "prev", "slideshow"].includes(r) && this.fancybox.items.length < 2)
|
|
8861
|
-
continue;
|
|
8653
|
+
if (Ft(i) ? (r = i.id, o = Me({}, t[r], i)) : (r = i, o = t[r]), ["counter", "next", "prev", "slideshow"].includes(r) && this.fancybox.items.length < 2) continue;
|
|
8862
8654
|
if (r === "fullscreen") {
|
|
8863
|
-
if (!document.fullscreenEnabled || window.fullScreen)
|
|
8864
|
-
continue;
|
|
8655
|
+
if (!document.fullscreenEnabled || window.fullScreen) continue;
|
|
8865
8656
|
document.addEventListener("fullscreenchange", this.onFsChange);
|
|
8866
8657
|
}
|
|
8867
|
-
if (r === "thumbs" && (!s || s.state === "disabled") || !o)
|
|
8868
|
-
continue;
|
|
8658
|
+
if (r === "thumbs" && (!s || s.state === "disabled") || !o) continue;
|
|
8869
8659
|
let l = o.position || "right", u = a.find((p) => p.position === l);
|
|
8870
8660
|
u && u.items.push(o);
|
|
8871
8661
|
}
|
|
8872
8662
|
const n = document.createElement("div");
|
|
8873
8663
|
n.classList.add("fancybox__toolbar");
|
|
8874
|
-
for (const i of a)
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
n.appendChild(r);
|
|
8881
|
-
}
|
|
8664
|
+
for (const i of a) if (i.items.length) {
|
|
8665
|
+
const r = document.createElement("div");
|
|
8666
|
+
r.classList.add("fancybox__toolbar__items"), r.classList.add(`fancybox__toolbar__items--${i.position}`);
|
|
8667
|
+
for (const o of i.items) r.appendChild(this.createElement(o));
|
|
8668
|
+
n.appendChild(r);
|
|
8669
|
+
}
|
|
8882
8670
|
this.fancybox.$carousel.parentNode.insertBefore(n, this.fancybox.$carousel), this.$container = n;
|
|
8883
8671
|
}
|
|
8884
8672
|
update() {
|
|
8885
8673
|
const t = this.fancybox.getSlide(), a = t.index, s = this.fancybox.items.length, n = t.downloadSrc || (t.type !== "image" || t.error ? null : t.src);
|
|
8886
|
-
for (const o of this.fancybox.$container.querySelectorAll("a.fancybox__button--download"))
|
|
8887
|
-
n ? (o.removeAttribute("disabled"), o.removeAttribute("tabindex"), o.setAttribute("href", n), o.setAttribute("download", n), o.setAttribute("target", "_blank")) : (o.setAttribute("disabled", ""), o.setAttribute("tabindex", -1), o.removeAttribute("href"), o.removeAttribute("download"));
|
|
8674
|
+
for (const o of this.fancybox.$container.querySelectorAll("a.fancybox__button--download")) n ? (o.removeAttribute("disabled"), o.removeAttribute("tabindex"), o.setAttribute("href", n), o.setAttribute("download", n), o.setAttribute("target", "_blank")) : (o.setAttribute("disabled", ""), o.setAttribute("tabindex", -1), o.removeAttribute("href"), o.removeAttribute("download"));
|
|
8888
8675
|
const i = t.Panzoom, r = i && i.option("maxScale") > i.option("baseScale");
|
|
8889
|
-
for (const o of this.fancybox.$container.querySelectorAll(".fancybox__button--zoom"))
|
|
8890
|
-
|
|
8891
|
-
for (const o of this.fancybox.$container.querySelectorAll("[data-fancybox-
|
|
8892
|
-
o.innerHTML = t.index + 1;
|
|
8893
|
-
for (const o of this.fancybox.$container.querySelectorAll("[data-fancybox-count]"))
|
|
8894
|
-
o.innerHTML = s;
|
|
8676
|
+
for (const o of this.fancybox.$container.querySelectorAll(".fancybox__button--zoom")) r ? o.removeAttribute("disabled") : o.setAttribute("disabled", "");
|
|
8677
|
+
for (const o of this.fancybox.$container.querySelectorAll("[data-fancybox-index]")) o.innerHTML = t.index + 1;
|
|
8678
|
+
for (const o of this.fancybox.$container.querySelectorAll("[data-fancybox-count]")) o.innerHTML = s;
|
|
8895
8679
|
if (!this.fancybox.option("infinite")) {
|
|
8896
|
-
for (const o of this.fancybox.$container.querySelectorAll("[data-fancybox-prev]"))
|
|
8897
|
-
|
|
8898
|
-
for (const o of this.fancybox.$container.querySelectorAll("[data-fancybox-next]"))
|
|
8899
|
-
a === s - 1 ? o.setAttribute("disabled", "") : o.removeAttribute("disabled");
|
|
8680
|
+
for (const o of this.fancybox.$container.querySelectorAll("[data-fancybox-prev]")) a === 0 ? o.setAttribute("disabled", "") : o.removeAttribute("disabled");
|
|
8681
|
+
for (const o of this.fancybox.$container.querySelectorAll("[data-fancybox-next]")) a === s - 1 ? o.setAttribute("disabled", "") : o.removeAttribute("disabled");
|
|
8900
8682
|
}
|
|
8901
8683
|
}
|
|
8902
8684
|
cleanup() {
|
|
@@ -8913,8 +8695,7 @@ Dl.defaults = eg;
|
|
|
8913
8695
|
const tg = { ScrollLock: class {
|
|
8914
8696
|
constructor(e) {
|
|
8915
8697
|
this.fancybox = e, this.viewport = null, this.pendingUpdate = null;
|
|
8916
|
-
for (const t of ["onReady", "onResize", "onTouchstart", "onTouchmove"])
|
|
8917
|
-
this[t] = this[t].bind(this);
|
|
8698
|
+
for (const t of ["onReady", "onResize", "onTouchstart", "onTouchmove"]) this[t] = this[t].bind(this);
|
|
8918
8699
|
}
|
|
8919
8700
|
onReady() {
|
|
8920
8701
|
const e = window.visualViewport;
|
|
@@ -8925,8 +8706,7 @@ const tg = { ScrollLock: class {
|
|
|
8925
8706
|
}
|
|
8926
8707
|
updateViewport() {
|
|
8927
8708
|
const e = this.fancybox, t = this.viewport, a = t.scale || 1, s = e.$container;
|
|
8928
|
-
if (!s)
|
|
8929
|
-
return;
|
|
8709
|
+
if (!s) return;
|
|
8930
8710
|
let n = "", i = "", r = "";
|
|
8931
8711
|
a - 1 > 0.1 && (n = t.width * a + "px", i = t.height * a + "px", r = `translate3d(${t.offsetLeft}px, ${t.offsetTop}px, 0) scale(${1 / a})`), s.style.width = n, s.style.height = i, s.style.transform = r;
|
|
8932
8712
|
}
|
|
@@ -8935,11 +8715,9 @@ const tg = { ScrollLock: class {
|
|
|
8935
8715
|
}
|
|
8936
8716
|
onTouchmove(e) {
|
|
8937
8717
|
const t = this.startY, a = window.innerWidth / window.document.documentElement.clientWidth;
|
|
8938
|
-
if (!e.cancelable || e.touches.length > 1 || a !== 1)
|
|
8939
|
-
return;
|
|
8718
|
+
if (!e.cancelable || e.touches.length > 1 || a !== 1) return;
|
|
8940
8719
|
const s = as(e.composedPath()[0]);
|
|
8941
|
-
if (!s)
|
|
8942
|
-
return void e.preventDefault();
|
|
8720
|
+
if (!s) return void e.preventDefault();
|
|
8943
8721
|
const n = window.getComputedStyle(s), i = parseInt(n.getPropertyValue("height"), 10), r = e.touches ? e.touches[0].screenY : e.screenY, o = t <= r && s.scrollTop === 0, l = t >= r && s.scrollHeight - s.scrollTop === i;
|
|
8944
8722
|
(o || l) && e.preventDefault();
|
|
8945
8723
|
}
|
|
@@ -8969,8 +8747,7 @@ class ie extends di {
|
|
|
8969
8747
|
return n !== void 0 ? (typeof n == "function" && (n = n.call(this, this, ...a)), n) : super.option(t, ...a);
|
|
8970
8748
|
}
|
|
8971
8749
|
bindHandlers() {
|
|
8972
|
-
for (const t of ["onMousedown", "onKeydown", "onClick", "onFocus", "onCreateSlide", "onSettle", "onTouchMove", "onTouchEnd", "onTransform"])
|
|
8973
|
-
this[t] = this[t].bind(this);
|
|
8750
|
+
for (const t of ["onMousedown", "onKeydown", "onClick", "onFocus", "onCreateSlide", "onSettle", "onTouchMove", "onTouchEnd", "onTransform"]) this[t] = this[t].bind(this);
|
|
8974
8751
|
}
|
|
8975
8752
|
attachEvents() {
|
|
8976
8753
|
document.addEventListener("mousedown", this.onMousedown), document.addEventListener("keydown", this.onKeydown, !0), this.option("trapFocus") && document.addEventListener("focus", this.onFocus, !0), this.$container.addEventListener("click", this.onClick);
|
|
@@ -9026,19 +8803,14 @@ class ie extends di {
|
|
|
9026
8803
|
this.isTopmost() && this.focus(t);
|
|
9027
8804
|
}
|
|
9028
8805
|
onClick(t) {
|
|
9029
|
-
if (t.defaultPrevented)
|
|
9030
|
-
return;
|
|
8806
|
+
if (t.defaultPrevented) return;
|
|
9031
8807
|
let a = t.composedPath()[0];
|
|
9032
|
-
if (a.matches("[data-fancybox-close]"))
|
|
9033
|
-
|
|
9034
|
-
if (a.matches("[data-fancybox-
|
|
9035
|
-
return t.preventDefault(), void ie.next();
|
|
9036
|
-
if (a.matches("[data-fancybox-prev]"))
|
|
9037
|
-
return t.preventDefault(), void ie.prev();
|
|
8808
|
+
if (a.matches("[data-fancybox-close]")) return t.preventDefault(), void ie.close(!1, t);
|
|
8809
|
+
if (a.matches("[data-fancybox-next]")) return t.preventDefault(), void ie.next();
|
|
8810
|
+
if (a.matches("[data-fancybox-prev]")) return t.preventDefault(), void ie.prev();
|
|
9038
8811
|
const s = document.activeElement;
|
|
9039
8812
|
if (s) {
|
|
9040
|
-
if (s.closest("[contenteditable]"))
|
|
9041
|
-
return;
|
|
8813
|
+
if (s.closest("[contenteditable]")) return;
|
|
9042
8814
|
a.matches(Ir) || s.blur();
|
|
9043
8815
|
}
|
|
9044
8816
|
if (!a.closest(".fancybox__content") && !getSelection().toString().length && this.trigger("click", t) !== !1)
|
|
@@ -9068,31 +8840,25 @@ class ie extends di {
|
|
|
9068
8840
|
this.state === "ready" && document.body.classList.add("is-using-mouse");
|
|
9069
8841
|
}
|
|
9070
8842
|
onKeydown(t) {
|
|
9071
|
-
if (!this.isTopmost())
|
|
9072
|
-
return;
|
|
8843
|
+
if (!this.isTopmost()) return;
|
|
9073
8844
|
document.body.classList.remove("is-using-mouse");
|
|
9074
8845
|
const a = t.key, s = this.option("keyboard");
|
|
9075
|
-
if (!s || t.ctrlKey || t.altKey || t.shiftKey)
|
|
9076
|
-
return;
|
|
8846
|
+
if (!s || t.ctrlKey || t.altKey || t.shiftKey) return;
|
|
9077
8847
|
const n = t.composedPath()[0], i = document.activeElement && document.activeElement.classList, r = i && i.contains("carousel__button");
|
|
9078
|
-
if (a !== "Escape" && !r && (t.target.isContentEditable || ["BUTTON", "TEXTAREA", "OPTION", "INPUT", "SELECT", "VIDEO"].indexOf(n.nodeName) !== -1) || this.trigger("keydown", a, t) === !1)
|
|
9079
|
-
return;
|
|
8848
|
+
if (a !== "Escape" && !r && (t.target.isContentEditable || ["BUTTON", "TEXTAREA", "OPTION", "INPUT", "SELECT", "VIDEO"].indexOf(n.nodeName) !== -1) || this.trigger("keydown", a, t) === !1) return;
|
|
9080
8849
|
const o = s[a];
|
|
9081
8850
|
typeof this[o] == "function" && this[o]();
|
|
9082
8851
|
}
|
|
9083
8852
|
getSlide() {
|
|
9084
8853
|
const t = this.Carousel;
|
|
9085
|
-
if (!t)
|
|
9086
|
-
return null;
|
|
8854
|
+
if (!t) return null;
|
|
9087
8855
|
const a = t.page === null ? t.option("initialPage") : t.page, s = t.pages || [];
|
|
9088
8856
|
return s.length && s[a] ? s[a].slides[0] : null;
|
|
9089
8857
|
}
|
|
9090
8858
|
focus(t) {
|
|
9091
|
-
if (ie.ignoreFocusChange || ["init", "closing", "customClosing", "destroy"].indexOf(this.state) > -1)
|
|
9092
|
-
return;
|
|
8859
|
+
if (ie.ignoreFocusChange || ["init", "closing", "customClosing", "destroy"].indexOf(this.state) > -1) return;
|
|
9093
8860
|
const a = this.$container, s = this.getSlide(), n = s.state === "done" ? s.$el : null;
|
|
9094
|
-
if (n && n.contains(document.activeElement))
|
|
9095
|
-
return;
|
|
8861
|
+
if (n && n.contains(document.activeElement)) return;
|
|
9096
8862
|
t && t.preventDefault(), ie.ignoreFocusChange = !0;
|
|
9097
8863
|
const i = Array.from(a.querySelectorAll(Ir));
|
|
9098
8864
|
let r, o = [];
|
|
@@ -9103,8 +8869,7 @@ class ie extends di {
|
|
|
9103
8869
|
t ? o.indexOf(t.target) > -1 ? this.lastFocus = t.target : this.lastFocus === a ? ha(o[o.length - 1]) : ha(a) : this.option("autoFocus") && r ? ha(r) : o.indexOf(document.activeElement) < 0 && ha(a), this.lastFocus = document.activeElement, ie.ignoreFocusChange = !1;
|
|
9104
8870
|
}
|
|
9105
8871
|
hideScrollbar() {
|
|
9106
|
-
if (!ss)
|
|
9107
|
-
return;
|
|
8872
|
+
if (!ss) return;
|
|
9108
8873
|
const t = window.innerWidth - document.documentElement.getBoundingClientRect().width, a = "fancybox-style-noscroll";
|
|
9109
8874
|
let s = document.getElementById(a);
|
|
9110
8875
|
s || t > 0 && (s = document.createElement("style"), s.id = a, s.type = "text/css", s.innerHTML = `.compensate-for-scrollbar {padding-right: ${t}px;}`, document.getElementsByTagName("head")[0].appendChild(s), document.body.classList.add("compensate-for-scrollbar"));
|
|
@@ -9120,20 +8885,17 @@ class ie extends di {
|
|
|
9120
8885
|
setContent(t, a, s = {}) {
|
|
9121
8886
|
let n;
|
|
9122
8887
|
const i = t.$el;
|
|
9123
|
-
if (a instanceof HTMLElement)
|
|
9124
|
-
["img", "iframe", "video", "audio"].indexOf(a.nodeName.toLowerCase()) > -1 ? (n = document.createElement("div"), n.appendChild(a)) : n = a;
|
|
8888
|
+
if (a instanceof HTMLElement) ["img", "iframe", "video", "audio"].indexOf(a.nodeName.toLowerCase()) > -1 ? (n = document.createElement("div"), n.appendChild(a)) : n = a;
|
|
9125
8889
|
else {
|
|
9126
8890
|
const r = document.createRange().createContextualFragment(a);
|
|
9127
8891
|
n = document.createElement("div"), n.appendChild(r);
|
|
9128
8892
|
}
|
|
9129
|
-
if (t.filter && !t.error && (n = n.querySelector(t.filter)), n instanceof Element)
|
|
9130
|
-
return t._className = `has-${s.suffix || t.type || "unknown"}`, i.classList.add(t._className), n.classList.add("fancybox__content"), n.style.display !== "none" && getComputedStyle(n).getPropertyValue("display") !== "none" || (n.style.display = t.display || this.option("defaultDisplay") || "flex"), t.id && n.setAttribute("id", t.id), t.$content = n, i.prepend(n), this.manageCloseButton(t), t.state !== "loading" && this.revealContent(t), n;
|
|
8893
|
+
if (t.filter && !t.error && (n = n.querySelector(t.filter)), n instanceof Element) return t._className = `has-${s.suffix || t.type || "unknown"}`, i.classList.add(t._className), n.classList.add("fancybox__content"), n.style.display !== "none" && getComputedStyle(n).getPropertyValue("display") !== "none" || (n.style.display = t.display || this.option("defaultDisplay") || "flex"), t.id && n.setAttribute("id", t.id), t.$content = n, i.prepend(n), this.manageCloseButton(t), t.state !== "loading" && this.revealContent(t), n;
|
|
9131
8894
|
this.setError(t, "{{ELEMENT_NOT_FOUND}}");
|
|
9132
8895
|
}
|
|
9133
8896
|
manageCloseButton(t) {
|
|
9134
8897
|
const a = t.closeButton === void 0 ? this.option("closeButton") : t.closeButton;
|
|
9135
|
-
if (!a || a === "top" && this.$closeButton)
|
|
9136
|
-
return;
|
|
8898
|
+
if (!a || a === "top" && this.$closeButton) return;
|
|
9137
8899
|
const s = document.createElement("button");
|
|
9138
8900
|
s.classList.add("carousel__button", "is-close"), s.setAttribute("title", this.options.l10n.CLOSE), s.innerHTML = this.option("template.closeButton"), s.addEventListener("click", (n) => this.close(n)), a === "inside" ? (t.$closeButton && t.$closeButton.remove(), t.$closeButton = t.$content.appendChild(s)) : this.$closeButton = this.$container.insertBefore(s, this.$container.firstChild);
|
|
9139
8901
|
}
|
|
@@ -9145,8 +8907,7 @@ class ie extends di {
|
|
|
9145
8907
|
})) : this.done(t);
|
|
9146
8908
|
}
|
|
9147
8909
|
animateCSS(t, a, s) {
|
|
9148
|
-
if (t && t.dispatchEvent(new CustomEvent("animationend", { bubbles: !0, cancelable: !0 })), !t || !a)
|
|
9149
|
-
return void (typeof s == "function" && s());
|
|
8910
|
+
if (t && t.dispatchEvent(new CustomEvent("animationend", { bubbles: !0, cancelable: !0 })), !t || !a) return void (typeof s == "function" && s());
|
|
9150
8911
|
const n = function(i) {
|
|
9151
8912
|
i.currentTarget === this && (t.removeEventListener("animationend", n), s && s(), t.classList.remove(a));
|
|
9152
8913
|
};
|
|
@@ -9191,8 +8952,7 @@ class ie extends di {
|
|
|
9191
8952
|
return ie.getInstance().id == this.id;
|
|
9192
8953
|
}
|
|
9193
8954
|
close(t) {
|
|
9194
|
-
if (t && t.preventDefault(), this.isClosing() || this.trigger("shouldClose", t) === !1 || (this.state = "closing", this.Carousel.Panzoom.destroy(), this.detachEvents(), this.trigger("closing", t), this.state === "destroy"))
|
|
9195
|
-
return;
|
|
8955
|
+
if (t && t.preventDefault(), this.isClosing() || this.trigger("shouldClose", t) === !1 || (this.state = "closing", this.Carousel.Panzoom.destroy(), this.detachEvents(), this.trigger("closing", t), this.state === "destroy")) return;
|
|
9196
8956
|
this.$container.setAttribute("aria-hidden", "true"), this.$container.classList.add("is-closing");
|
|
9197
8957
|
const a = this.getSlide();
|
|
9198
8958
|
if (this.Carousel.slides.forEach((s) => {
|
|
@@ -9205,8 +8965,7 @@ class ie extends di {
|
|
|
9205
8965
|
}
|
|
9206
8966
|
}
|
|
9207
8967
|
destroy() {
|
|
9208
|
-
if (this.state === "destroy")
|
|
9209
|
-
return;
|
|
8968
|
+
if (this.state === "destroy") return;
|
|
9210
8969
|
this.state = "destroy", this.trigger("destroy");
|
|
9211
8970
|
const t = this.option("placeFocusBack") ? this.option("triggerTarget", this.getSlide().$trigger) : null;
|
|
9212
8971
|
this.Carousel.destroy(), this.detachPlugins(), this.Carousel = null, this.options = {}, this.events = {}, this.$container.remove(), this.$container = this.$backdrop = this.$carousel = null, t && ha(t), pa.delete(this.id);
|
|
@@ -9217,8 +8976,7 @@ class ie extends di {
|
|
|
9217
8976
|
return new ie(t, a);
|
|
9218
8977
|
}
|
|
9219
8978
|
static fromEvent(t, a = {}) {
|
|
9220
|
-
if (t.defaultPrevented || t.button && t.button !== 0 || t.ctrlKey || t.metaKey || t.shiftKey)
|
|
9221
|
-
return;
|
|
8979
|
+
if (t.defaultPrevented || t.button && t.button !== 0 || t.ctrlKey || t.metaKey || t.shiftKey) return;
|
|
9222
8980
|
const s = t.composedPath()[0];
|
|
9223
8981
|
let n, i, r, o = s;
|
|
9224
8982
|
if ((o.matches("[data-fancybox-trigger]") || (o = o.closest("[data-fancybox-trigger]"))) && (a.triggerTarget = o, n = o && o.dataset && o.dataset.fancyboxTrigger), n) {
|
|
@@ -9249,28 +9007,19 @@ class ie extends di {
|
|
|
9249
9007
|
const p = a.root || (i ? i.getRootNode() : document.body);
|
|
9250
9008
|
s = [].slice.call(p.querySelectorAll(t));
|
|
9251
9009
|
}
|
|
9252
|
-
if (i && !r && (s = l ? s.filter((p) => p.getAttribute(`${o}`) === l) : [i]), !s.length)
|
|
9253
|
-
return !1;
|
|
9010
|
+
if (i && !r && (s = l ? s.filter((p) => p.getAttribute(`${o}`) === l) : [i]), !s.length) return !1;
|
|
9254
9011
|
const u = ie.getInstance();
|
|
9255
9012
|
return !(u && s.indexOf(u.options.$trigger) > -1) && (n = i ? s.indexOf(i) : n, s = s.map(function(p) {
|
|
9256
9013
|
const f = ["false", "0", "no", "null", "undefined"], m = ["true", "1", "yes"], v = Object.assign({}, p.dataset), y = {};
|
|
9257
|
-
for (let [$, E] of Object.entries(v))
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
else
|
|
9267
|
-
try {
|
|
9268
|
-
y[$] = JSON.parse(E);
|
|
9269
|
-
} catch {
|
|
9270
|
-
y[$] = E;
|
|
9271
|
-
}
|
|
9272
|
-
else
|
|
9273
|
-
y[$] = E;
|
|
9014
|
+
for (let [$, E] of Object.entries(v)) if ($ !== "fancybox") if ($ === "width" || $ === "height") y[`_${$}`] = E;
|
|
9015
|
+
else if (typeof E == "string" || E instanceof String) if (f.indexOf(E) > -1) y[$] = !1;
|
|
9016
|
+
else if (m.indexOf(y[$]) > -1) y[$] = !0;
|
|
9017
|
+
else try {
|
|
9018
|
+
y[$] = JSON.parse(E);
|
|
9019
|
+
} catch {
|
|
9020
|
+
y[$] = E;
|
|
9021
|
+
}
|
|
9022
|
+
else y[$] = E;
|
|
9274
9023
|
return p instanceof Element && (y.$trigger = p), y;
|
|
9275
9024
|
}), new ie(s, Me({}, a, { startIndex: n, $trigger: i })));
|
|
9276
9025
|
}
|
|
@@ -9285,17 +9034,14 @@ class ie extends di {
|
|
|
9285
9034
|
}
|
|
9286
9035
|
static destroy() {
|
|
9287
9036
|
let t;
|
|
9288
|
-
for (; t = ie.getInstance(); )
|
|
9289
|
-
t.destroy();
|
|
9037
|
+
for (; t = ie.getInstance(); ) t.destroy();
|
|
9290
9038
|
ie.openers = /* @__PURE__ */ new Map(), document.body.removeEventListener("click", ie.fromEvent, !1);
|
|
9291
9039
|
}
|
|
9292
9040
|
static getInstance(t) {
|
|
9293
9041
|
return t ? pa.get(t) : Array.from(pa.values()).reverse().find((a) => !a.isClosing() && a) || null;
|
|
9294
9042
|
}
|
|
9295
9043
|
static close(t = !0, a) {
|
|
9296
|
-
if (t)
|
|
9297
|
-
for (const s of pa.values())
|
|
9298
|
-
s.close(a);
|
|
9044
|
+
if (t) for (const s of pa.values()) s.close(a);
|
|
9299
9045
|
else {
|
|
9300
9046
|
const s = ie.getInstance();
|
|
9301
9047
|
s && s.close(a);
|
|
@@ -9311,8 +9057,7 @@ class ie extends di {
|
|
|
9311
9057
|
}
|
|
9312
9058
|
}
|
|
9313
9059
|
ie.version = "4.0.31", ie.defaults = Al, ie.openers = /* @__PURE__ */ new Map(), ie.Plugins = tg, ie.bind("[data-fancybox]");
|
|
9314
|
-
for (const [e, t] of Object.entries(ie.Plugins || {}))
|
|
9315
|
-
typeof t.create == "function" && t.create(ie);
|
|
9060
|
+
for (const [e, t] of Object.entries(ie.Plugins || {})) typeof t.create == "function" && t.create(ie);
|
|
9316
9061
|
const ya = {
|
|
9317
9062
|
pageXOffset: 0,
|
|
9318
9063
|
pageYOffset: 0,
|
|
@@ -11767,8 +11512,7 @@ var T4 = {
|
|
|
11767
11512
|
return Hn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(a, s) {
|
|
11768
11513
|
a.__proto__ = s;
|
|
11769
11514
|
} || function(a, s) {
|
|
11770
|
-
for (var n in s)
|
|
11771
|
-
Object.prototype.hasOwnProperty.call(s, n) && (a[n] = s[n]);
|
|
11515
|
+
for (var n in s) Object.prototype.hasOwnProperty.call(s, n) && (a[n] = s[n]);
|
|
11772
11516
|
}, Hn(e, t);
|
|
11773
11517
|
};
|
|
11774
11518
|
function Es(e, t) {
|
|
@@ -11784,16 +11528,14 @@ var is = function() {
|
|
|
11784
11528
|
return is = Object.assign || function(t) {
|
|
11785
11529
|
for (var a, s = 1, n = arguments.length; s < n; s++) {
|
|
11786
11530
|
a = arguments[s];
|
|
11787
|
-
for (var i in a)
|
|
11788
|
-
Object.prototype.hasOwnProperty.call(a, i) && (t[i] = a[i]);
|
|
11531
|
+
for (var i in a) Object.prototype.hasOwnProperty.call(a, i) && (t[i] = a[i]);
|
|
11789
11532
|
}
|
|
11790
11533
|
return t;
|
|
11791
11534
|
}, is.apply(this, arguments);
|
|
11792
11535
|
};
|
|
11793
11536
|
function ut(e, t, a) {
|
|
11794
|
-
if (a || arguments.length === 2)
|
|
11795
|
-
|
|
11796
|
-
(i || !(s in t)) && (i || (i = Array.prototype.slice.call(t, 0, s)), i[s] = t[s]);
|
|
11537
|
+
if (a || arguments.length === 2) for (var s = 0, n = t.length, i; s < n; s++)
|
|
11538
|
+
(i || !(s in t)) && (i || (i = Array.prototype.slice.call(t, 0, s)), i[s] = t[s]);
|
|
11797
11539
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
11798
11540
|
}
|
|
11799
11541
|
var pi = function(e, t, a) {
|
|
@@ -12845,8 +12587,7 @@ var Rv = function e(t) {
|
|
|
12845
12587
|
return o;
|
|
12846
12588
|
}, tc = { exports: {} }, bn, Ar;
|
|
12847
12589
|
function vi() {
|
|
12848
|
-
if (Ar)
|
|
12849
|
-
return bn;
|
|
12590
|
+
if (Ar) return bn;
|
|
12850
12591
|
Ar = 1;
|
|
12851
12592
|
var e = ta, t = e("%Object.defineProperty%", !0) || !1;
|
|
12852
12593
|
if (t)
|
|
@@ -17034,14 +16775,12 @@ function to(e) {
|
|
|
17034
16775
|
}
|
|
17035
16776
|
function jk(e) {
|
|
17036
16777
|
if (Array.isArray(e)) {
|
|
17037
|
-
for (var t = 0, a = new Array(e.length); t < e.length; t++)
|
|
17038
|
-
a[t] = e[t];
|
|
16778
|
+
for (var t = 0, a = new Array(e.length); t < e.length; t++) a[t] = e[t];
|
|
17039
16779
|
return a;
|
|
17040
16780
|
}
|
|
17041
16781
|
}
|
|
17042
16782
|
function Gk(e) {
|
|
17043
|
-
if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]")
|
|
17044
|
-
return Array.from(e);
|
|
16783
|
+
if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]") return Array.from(e);
|
|
17045
16784
|
}
|
|
17046
16785
|
function Uk() {
|
|
17047
16786
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
@@ -17068,8 +16807,7 @@ function Yk(e, t) {
|
|
|
17068
16807
|
}, r;
|
|
17069
16808
|
}
|
|
17070
16809
|
function Dc(e, t) {
|
|
17071
|
-
if (e === t)
|
|
17072
|
-
return !0;
|
|
16810
|
+
if (e === t) return !0;
|
|
17073
16811
|
if (Xa(e) === "object") {
|
|
17074
16812
|
for (var a in e)
|
|
17075
16813
|
if (!Dc(e[a], t[a]))
|
|
@@ -17107,8 +16845,7 @@ var Kk = /* @__PURE__ */ function() {
|
|
|
17107
16845
|
}
|
|
17108
16846
|
if (n.callback) {
|
|
17109
16847
|
var p = l.isIntersecting && l.intersectionRatio >= n.threshold;
|
|
17110
|
-
if (p === n.oldResult)
|
|
17111
|
-
return;
|
|
16848
|
+
if (p === n.oldResult) return;
|
|
17112
16849
|
n.oldResult = p, n.callback(p, l);
|
|
17113
16850
|
}
|
|
17114
16851
|
}, this.options.intersection), s.context.$nextTick(function() {
|
|
@@ -18297,8 +18034,7 @@ function lC(e) {
|
|
|
18297
18034
|
J.key(u) ? u == r && (l.value = o[u]) : l[u] = o[u];
|
|
18298
18035
|
return l;
|
|
18299
18036
|
});
|
|
18300
|
-
}, n = 0; n < t.length; n++)
|
|
18301
|
-
s(n);
|
|
18037
|
+
}, n = 0; n < t.length; n++) s(n);
|
|
18302
18038
|
return a;
|
|
18303
18039
|
}
|
|
18304
18040
|
function cC(e, t) {
|
|
@@ -20476,8 +20212,7 @@ function FA(e, t, a, s) {
|
|
|
20476
20212
|
if (t[m] === f)
|
|
20477
20213
|
continue e;
|
|
20478
20214
|
l.push(p);
|
|
20479
|
-
} else
|
|
20480
|
-
i(t, f, s) || l.push(p);
|
|
20215
|
+
} else i(t, f, s) || l.push(p);
|
|
20481
20216
|
}
|
|
20482
20217
|
return l;
|
|
20483
20218
|
}
|
|
@@ -20567,15 +20302,13 @@ const ei = /* @__PURE__ */ ze(SO), CO = L({
|
|
|
20567
20302
|
linkColumns() {
|
|
20568
20303
|
let e;
|
|
20569
20304
|
return e = this.data ? Qn(this.data.menuColumns, function(t) {
|
|
20570
|
-
if (t.blockType.includes("MenuLinkColumnWithHeader"))
|
|
20571
|
-
return t;
|
|
20305
|
+
if (t.blockType.includes("MenuLinkColumnWithHeader")) return t;
|
|
20572
20306
|
}) : void 0, e = ei(e, void 0), e;
|
|
20573
20307
|
},
|
|
20574
20308
|
highlightsColumn() {
|
|
20575
20309
|
let e;
|
|
20576
20310
|
return e = this.data ? Qn(this.data.menuColumns, function(t) {
|
|
20577
|
-
if (t.blockType.includes("MenuMoreHighlightsColumn"))
|
|
20578
|
-
return t;
|
|
20311
|
+
if (t.blockType.includes("MenuMoreHighlightsColumn")) return t;
|
|
20579
20312
|
}) : void 0, e = ei(e, void 0), e != null && e.length ? e[0] : void 0;
|
|
20580
20313
|
}
|
|
20581
20314
|
}
|
|
@@ -20739,8 +20472,7 @@ const Md = /* @__PURE__ */ x(BO, [["render", OO]]), zO = L({
|
|
|
20739
20472
|
linkColumns() {
|
|
20740
20473
|
let e;
|
|
20741
20474
|
return e = this.data ? Qn(this.data.menuColumns, function(t) {
|
|
20742
|
-
if (t.blockType.includes("MenuLinkColumnWithHeader"))
|
|
20743
|
-
return t;
|
|
20475
|
+
if (t.blockType.includes("MenuLinkColumnWithHeader")) return t;
|
|
20744
20476
|
}) : void 0, e = ei(e, void 0), e;
|
|
20745
20477
|
}
|
|
20746
20478
|
}
|