@poni/adjutant-ui 0.0.161 → 0.0.162
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/adjutant-ui.css +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +235 -238
- package/dist/misc/types.d.ts +1 -1
- package/package.json +2 -2
package/dist/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as H, useCssVars as ae, computed as K, openBlock as C, createElementBlock as _, normalizeClass as D, createCommentVNode as F, createElementVNode as T, toDisplayString as R, withDirectives as se, vShow as re, createVNode as q, ref as
|
|
2
|
-
import { useWindowSize as qe, useMouseInElement as Pe, onClickOutside as Ue, useDebounceFn as Ye, useFocus as Bt, useElementSize as Vt, useWindowScroll as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as H, useCssVars as ae, computed as K, openBlock as C, createElementBlock as _, normalizeClass as D, createCommentVNode as F, createElementVNode as T, toDisplayString as R, withDirectives as se, vShow as re, createVNode as q, ref as z, Transition as de, withCtx as X, Fragment as Z, renderList as ee, withModifiers as Y, renderSlot as Ae, useTemplateRef as ne, normalizeStyle as ge, createBlock as ye, watch as _e, createTextVNode as rt, unref as Ce, onMounted as Ee, vModelText as Mt, getCurrentInstance as jt, watchEffect as Pt, createStaticVNode as It, onUpdated as dt, provide as ut, nextTick as $t, onBeforeUnmount as ct, h as ie, onBeforeUpdate as At } from "vue";
|
|
2
|
+
import { useWindowSize as qe, useMouseInElement as Pe, onClickOutside as Ue, useDebounceFn as Ye, useFocus as Bt, useElementSize as Vt, useWindowScroll as Ot } from "@vueuse/core";
|
|
3
|
+
const zt = /* @__PURE__ */ H({
|
|
4
4
|
__name: "AdjButton",
|
|
5
5
|
props: {
|
|
6
6
|
name: {},
|
|
@@ -45,7 +45,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
45
45
|
for (const [n, s] of i)
|
|
46
46
|
t[n] = s;
|
|
47
47
|
return t;
|
|
48
|
-
}, ft = /* @__PURE__ */ G(
|
|
48
|
+
}, ft = /* @__PURE__ */ G(zt, [["__scopeId", "data-v-8010589b"]]), Dt = { class: "adj-button-checkbox__title" }, Gt = /* @__PURE__ */ H({
|
|
49
49
|
__name: "AdjButtonCheckbox",
|
|
50
50
|
props: {
|
|
51
51
|
title: {},
|
|
@@ -163,7 +163,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
163
163
|
items: {}
|
|
164
164
|
},
|
|
165
165
|
setup(e) {
|
|
166
|
-
const i =
|
|
166
|
+
const i = z(!1);
|
|
167
167
|
return (t, n) => (C(), _("div", {
|
|
168
168
|
class: D(["adj-dropdown-link", { "adj-dropdown-link_show": i.value }])
|
|
169
169
|
}, [
|
|
@@ -284,7 +284,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
284
284
|
], -1))
|
|
285
285
|
], 2));
|
|
286
286
|
}
|
|
287
|
-
}), Xe = /* @__PURE__ */ G(li, [["__scopeId", "data-v-1075347f"]]), oi = { class: "adj-hint" }, ri = ["innerHTML"],
|
|
287
|
+
}), Xe = /* @__PURE__ */ G(li, [["__scopeId", "data-v-1075347f"]]), oi = { class: "adj-hint" }, ri = ["innerHTML"], Le = 14, ke = 14, di = /* @__PURE__ */ H({
|
|
288
288
|
__name: "AdjHint",
|
|
289
289
|
props: {
|
|
290
290
|
html: { default: "" },
|
|
@@ -296,38 +296,38 @@ const Ot = /* @__PURE__ */ H({
|
|
|
296
296
|
modalMode: { type: Boolean, default: !1 }
|
|
297
297
|
},
|
|
298
298
|
setup(e) {
|
|
299
|
-
const i = e, t =
|
|
300
|
-
let m = 10 +
|
|
299
|
+
const i = e, t = z(!1), n = z(!1), { width: s, height: a } = qe(), o = ne("refSlot"), r = ne("refHint"), l = z(0), d = z(0), { elementWidth: u, elementHeight: f } = Pe(o), g = z(0), p = z(80), { elementWidth: v, elementHeight: S } = Pe(r), y = z(i.horizontalPosition), c = z(i.verticalPosition);
|
|
300
|
+
let m = 10 + ke / 2;
|
|
301
301
|
function h() {
|
|
302
302
|
(!i.modalMode || s.value >= 1200) && (B(), A(), b(), t.value = !0);
|
|
303
303
|
}
|
|
304
304
|
function E() {
|
|
305
305
|
(!i.modalMode || s.value >= 1200) && (t.value = !1);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function L() {
|
|
308
308
|
i.modalMode && s.value < 1200 && (n.value = !0);
|
|
309
309
|
}
|
|
310
310
|
function B() {
|
|
311
311
|
if (o.value !== null) {
|
|
312
|
-
const
|
|
313
|
-
l.value =
|
|
312
|
+
const O = o.value.getBoundingClientRect();
|
|
313
|
+
l.value = O.left, d.value = O.top;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
function A() {
|
|
317
|
-
i.dark && (m = 15 +
|
|
317
|
+
i.dark && (m = 15 + ke / 2), y.value = i.horizontalPosition, c.value = i.verticalPosition, i.horizontalPosition === "left" && l.value + u.value / 2 + m - v.value < 0 ? y.value = "right" : i.horizontalPosition === "right" && l.value + u.value / 2 - m + v.value > s.value && (y.value = "left"), i.verticalPosition === "top" && d.value - Le - S.value < 0 ? c.value = "bottom" : i.verticalPosition === "bottom" && d.value + f.value + Le + S.value > a.value && (c.value = "top");
|
|
318
318
|
}
|
|
319
319
|
function b() {
|
|
320
|
-
i.dark && (m = 15 +
|
|
320
|
+
i.dark && (m = 15 + ke / 2), y.value === "left" ? g.value = l.value + u.value / 2 + m - v.value : y.value === "center" ? g.value = l.value + u.value / 2 - ke / 2 - v.value / 2 : y.value === "right" && (g.value = l.value + u.value / 2 - m), c.value == "top" ? p.value = d.value - Le - S.value : c.value == "bottom" && (p.value = d.value + f.value + Le);
|
|
321
321
|
}
|
|
322
|
-
return (
|
|
322
|
+
return (O, $) => (C(), _("div", oi, [
|
|
323
323
|
T("div", {
|
|
324
324
|
class: "adj-hint__slot",
|
|
325
325
|
onMouseenter: Y(h, ["stop"]),
|
|
326
326
|
onMouseleave: Y(E, ["stop"]),
|
|
327
|
-
onClick: Y(
|
|
327
|
+
onClick: Y(L, ["stop"]),
|
|
328
328
|
ref: "refSlot"
|
|
329
329
|
}, [
|
|
330
|
-
Ae(
|
|
330
|
+
Ae(O.$slots, "default", {}, void 0, !0)
|
|
331
331
|
], 544),
|
|
332
332
|
T("div", {
|
|
333
333
|
class: "adj-hint__hint",
|
|
@@ -512,7 +512,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
512
512
|
setup(e, { emit: i }) {
|
|
513
513
|
const t = e, n = i, s = ne("refElement");
|
|
514
514
|
Ue(s, () => a.value = !1);
|
|
515
|
-
const a =
|
|
515
|
+
const a = z(!1);
|
|
516
516
|
function o(l) {
|
|
517
517
|
"disabled" in l && l.disabled || ("id" in l && l.id && (a.value = !1), n("update:modelValue", l));
|
|
518
518
|
}
|
|
@@ -553,7 +553,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
553
553
|
])
|
|
554
554
|
], 2));
|
|
555
555
|
}
|
|
556
|
-
}), Ei = /* @__PURE__ */ G(_i, [["__scopeId", "data-v-582d2d15"]]),
|
|
556
|
+
}), Ei = /* @__PURE__ */ G(_i, [["__scopeId", "data-v-582d2d15"]]), Li = { class: "adj-filters-desktop" }, ki = /* @__PURE__ */ H({
|
|
557
557
|
__name: "AdjFiltersDesktop",
|
|
558
558
|
props: {
|
|
559
559
|
filters: {},
|
|
@@ -566,7 +566,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
566
566
|
const r = [...t.modelValue];
|
|
567
567
|
r[o] = a, n("update:modelValue", r);
|
|
568
568
|
}
|
|
569
|
-
return (a, o) => (C(), _("div",
|
|
569
|
+
return (a, o) => (C(), _("div", Li, [
|
|
570
570
|
(C(!0), _(Z, null, ee(e.filters, (r, l) => (C(), _("div", {
|
|
571
571
|
class: "adj-filters-desktop__item",
|
|
572
572
|
key: r.name
|
|
@@ -591,7 +591,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
591
591
|
]))), 128))
|
|
592
592
|
]));
|
|
593
593
|
}
|
|
594
|
-
}), Sl = /* @__PURE__ */ G(
|
|
594
|
+
}), Sl = /* @__PURE__ */ G(ki, [["__scopeId", "data-v-350efd96"]]), Mi = { class: "adj-filters-mobile" }, ji = { class: "adj-filters-mobile_wrapper" }, Pi = { class: "adj-window__header" }, Ii = { class: "adj-window__header-button" }, $i = { class: "adj-window__header-title" }, Ai = { class: "adj-filters" }, Bi = ["onClick"], Vi = { class: "adj-filter__title" }, Oi = { class: "adj-filter__button" }, zi = {
|
|
595
595
|
key: 0,
|
|
596
596
|
class: "icon-close"
|
|
597
597
|
}, Di = {
|
|
@@ -612,7 +612,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
612
612
|
ae((y) => ({
|
|
613
613
|
v34c98468: y.filterWidth
|
|
614
614
|
}));
|
|
615
|
-
const t = e, n = i, s =
|
|
615
|
+
const t = e, n = i, s = z(!1), a = z(!1), o = z(0), r = K(() => t.modelValue.filter((y) => typeof y == "boolean" ? y : typeof y == "object" ? "id" in y : !1).length), l = K(() => t.name + (r.value > 0 ? ` (${r.value})` : ""));
|
|
616
616
|
function d(y, c) {
|
|
617
617
|
const m = [...t.modelValue];
|
|
618
618
|
m[c] = y, n("update:modelValue", m);
|
|
@@ -703,8 +703,8 @@ const Ot = /* @__PURE__ */ H({
|
|
|
703
703
|
onClick: Y((E) => v(m, h), ["stop"])
|
|
704
704
|
}, [
|
|
705
705
|
T("div", Vi, R(f(h)), 1),
|
|
706
|
-
T("div",
|
|
707
|
-
g(h) ? (C(), _("i",
|
|
706
|
+
T("div", Oi, [
|
|
707
|
+
g(h) ? (C(), _("i", zi)) : "items" in m ? (C(), _("i", Di)) : F("", !0)
|
|
708
708
|
])
|
|
709
709
|
], 10, Bi))), 128))
|
|
710
710
|
])
|
|
@@ -857,7 +857,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
857
857
|
},
|
|
858
858
|
emits: ["update:modelValue"],
|
|
859
859
|
setup(e, { emit: i }) {
|
|
860
|
-
const t = e, n = i, s =
|
|
860
|
+
const t = e, n = i, s = z(!1), a = K(() => s.value === !0 && t.type === "password" ? "text" : t.type);
|
|
861
861
|
function o(d) {
|
|
862
862
|
return Ye((u) => {
|
|
863
863
|
l(u);
|
|
@@ -1053,7 +1053,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
1053
1053
|
], -1)
|
|
1054
1054
|
])], 4));
|
|
1055
1055
|
}
|
|
1056
|
-
}),
|
|
1056
|
+
}), Ll = /* @__PURE__ */ G(pn, [["__scopeId", "data-v-74a07122"]]), mn = ["onClick"], hn = { class: "adj-radio__item_name adj-text-13" }, vn = /* @__PURE__ */ H({
|
|
1057
1057
|
__name: "AdjRadio",
|
|
1058
1058
|
props: {
|
|
1059
1059
|
namePosition: { default: "right" },
|
|
@@ -1085,7 +1085,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
1085
1085
|
], 10, mn))), 128))
|
|
1086
1086
|
], 2));
|
|
1087
1087
|
}
|
|
1088
|
-
}),
|
|
1088
|
+
}), kl = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-e8b7a335"]]), gn = {
|
|
1089
1089
|
key: 0,
|
|
1090
1090
|
class: "adj-select__title"
|
|
1091
1091
|
}, bn = { key: 0 }, yn = { class: "adj-select__comment" }, Sn = { key: 1 }, xn = {
|
|
@@ -1110,7 +1110,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
1110
1110
|
Ue(s, () => l());
|
|
1111
1111
|
const a = ne("refInput");
|
|
1112
1112
|
Bt(a, { initialValue: !0 });
|
|
1113
|
-
const o =
|
|
1113
|
+
const o = z(!1), r = z("");
|
|
1114
1114
|
function l() {
|
|
1115
1115
|
o.value = !1;
|
|
1116
1116
|
}
|
|
@@ -1202,7 +1202,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
1202
1202
|
}, null, 8, ["design", "disabled", "name", "size", "round", "width100", "textLeft", "onClick"]))), 128))
|
|
1203
1203
|
]));
|
|
1204
1204
|
}
|
|
1205
|
-
}), jl = /* @__PURE__ */ G(_n, [["__scopeId", "data-v-46db396a"]]), En = { class: "adj-skeleton-item" },
|
|
1205
|
+
}), jl = /* @__PURE__ */ G(_n, [["__scopeId", "data-v-46db396a"]]), En = { class: "adj-skeleton-item" }, Ln = /* @__PURE__ */ H({
|
|
1206
1206
|
__name: "AdjSkeletonItem",
|
|
1207
1207
|
props: {
|
|
1208
1208
|
width: { default: "100%" },
|
|
@@ -1220,7 +1220,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
1220
1220
|
const i = e, t = K(() => i.height !== "unset" ? "unset" : i.aspectRatio);
|
|
1221
1221
|
return (n, s) => (C(), _("div", En));
|
|
1222
1222
|
}
|
|
1223
|
-
}),
|
|
1223
|
+
}), kn = /* @__PURE__ */ G(Ln, [["__scopeId", "data-v-a8496a75"]]), Mn = { class: "adj-skeleton" }, jn = /* @__PURE__ */ H({
|
|
1224
1224
|
__name: "AdjSkeleton",
|
|
1225
1225
|
props: {
|
|
1226
1226
|
loaders: { default: () => [] },
|
|
@@ -1234,7 +1234,7 @@ const Ot = /* @__PURE__ */ H({
|
|
|
1234
1234
|
}));
|
|
1235
1235
|
const i = e, t = K(() => i.centered ? "center" : "unset");
|
|
1236
1236
|
return (n, s) => (C(), _("div", Mn, [
|
|
1237
|
-
(C(!0), _(Z, null, ee(e.loaders, (a, o) => (C(), ye(
|
|
1237
|
+
(C(!0), _(Z, null, ee(e.loaders, (a, o) => (C(), ye(kn, {
|
|
1238
1238
|
key: o,
|
|
1239
1239
|
width: a.width,
|
|
1240
1240
|
height: a.height,
|
|
@@ -1262,7 +1262,7 @@ const Bn = /* @__PURE__ */ G(In, [["render", An], ["__scopeId", "data-v-ef9285fe
|
|
|
1262
1262
|
key: 0,
|
|
1263
1263
|
class: "adj-select-image-wrapper",
|
|
1264
1264
|
ref: "refElement"
|
|
1265
|
-
},
|
|
1265
|
+
}, On = ["onClick"], zn = ["onMouseenter"], Dn = ["src", "alt"], Gn = { class: "adj-select-image__check2" }, Nn = { class: "adj-select-image__check" }, Hn = { class: "adj-select-image-item__title adj-text-13" }, Rn = { key: 1 }, Fn = {
|
|
1266
1266
|
key: 2,
|
|
1267
1267
|
class: "adj-shadow"
|
|
1268
1268
|
}, Wn = { class: "adj-text-14" }, qn = { class: "adj-select-image__hint" }, Un = /* @__PURE__ */ H({
|
|
@@ -1297,16 +1297,16 @@ const Bn = /* @__PURE__ */ G(In, [["render", An], ["__scopeId", "data-v-ef9285fe
|
|
|
1297
1297
|
width: "80%"
|
|
1298
1298
|
}
|
|
1299
1299
|
]), h;
|
|
1300
|
-
}), a =
|
|
1300
|
+
}), a = z(!1);
|
|
1301
1301
|
function o() {
|
|
1302
1302
|
a.value = !a.value;
|
|
1303
1303
|
}
|
|
1304
|
-
const r = K(() => i.design === "text" ? "unset" : a.value ? n.value + 20 + "px" : "122px"), l = K(() => n.value > 75), d = ne("refRoot"), u =
|
|
1304
|
+
const r = K(() => i.design === "text" ? "unset" : a.value ? n.value + 20 + "px" : "122px"), l = K(() => n.value > 75), d = ne("refRoot"), u = z(""), f = z(""), g = z("0px"), p = z("0px"), v = z("none"), S = K(() => jt()?.type?.__hmrId);
|
|
1305
1305
|
function y() {
|
|
1306
1306
|
const h = document.getElementsByClassName(u.value);
|
|
1307
1307
|
if (h.length > 0) {
|
|
1308
|
-
const E = h[0], { left:
|
|
1309
|
-
p.value =
|
|
1308
|
+
const E = h[0], { left: L, top: B } = E.getBoundingClientRect(), A = E.offsetWidth, b = E.offsetHeight;
|
|
1309
|
+
p.value = L + (A - 120) / 2 + "px", g.value = B + b + 13 + "px";
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
1312
|
function c(h, E) {
|
|
@@ -1325,22 +1325,22 @@ const Bn = /* @__PURE__ */ G(In, [["render", An], ["__scopeId", "data-v-ef9285fe
|
|
|
1325
1325
|
ref: "refRoot"
|
|
1326
1326
|
}, [
|
|
1327
1327
|
e.items.length > 0 ? (C(), _("div", Vn, [
|
|
1328
|
-
(C(!0), _(Z, null, ee(e.items, (
|
|
1328
|
+
(C(!0), _(Z, null, ee(e.items, (L, B) => (C(), _("div", {
|
|
1329
1329
|
class: D([
|
|
1330
1330
|
"adj-select-image-item",
|
|
1331
|
-
{ "adj-select-image-item_checked":
|
|
1331
|
+
{ "adj-select-image-item_checked": L.id === e.modelValue.id }
|
|
1332
1332
|
]),
|
|
1333
1333
|
key: B,
|
|
1334
|
-
onClick: (A) => h.$emit("update:modelValue",
|
|
1334
|
+
onClick: (A) => h.$emit("update:modelValue", L)
|
|
1335
1335
|
}, [
|
|
1336
1336
|
T("div", {
|
|
1337
|
-
class: D(["adj-select-image-item__image adj-effect-overlay-normal", `item-${S.value}-${
|
|
1338
|
-
onMouseenter: Y((A) => c(`item-${S.value}-${
|
|
1337
|
+
class: D(["adj-select-image-item__image adj-effect-overlay-normal", `item-${S.value}-${L.id}`]),
|
|
1338
|
+
onMouseenter: Y((A) => c(`item-${S.value}-${L.id}`, L.name), ["stop"]),
|
|
1339
1339
|
onMouseleave: E[0] || (E[0] = Y((A) => m(), ["stop"]))
|
|
1340
1340
|
}, [
|
|
1341
1341
|
T("img", {
|
|
1342
|
-
src:
|
|
1343
|
-
alt:
|
|
1342
|
+
src: L.image,
|
|
1343
|
+
alt: L.name
|
|
1344
1344
|
}, null, 8, Dn),
|
|
1345
1345
|
q(de, { name: "adj-fade" }, {
|
|
1346
1346
|
default: X(() => [
|
|
@@ -1349,17 +1349,17 @@ const Bn = /* @__PURE__ */ G(In, [["render", An], ["__scopeId", "data-v-ef9285fe
|
|
|
1349
1349
|
q(Bn)
|
|
1350
1350
|
])
|
|
1351
1351
|
], 512), [
|
|
1352
|
-
[re,
|
|
1352
|
+
[re, L.id === e.modelValue.id]
|
|
1353
1353
|
])
|
|
1354
1354
|
]),
|
|
1355
1355
|
_: 2
|
|
1356
1356
|
}, 1024)
|
|
1357
|
-
], 42,
|
|
1358
|
-
T("div", Hn, R(
|
|
1359
|
-
], 10,
|
|
1357
|
+
], 42, zn),
|
|
1358
|
+
T("div", Hn, R(L.name), 1)
|
|
1359
|
+
], 10, On))), 128))
|
|
1360
1360
|
], 512)) : (C(), _("div", Rn, [
|
|
1361
|
-
(C(!0), _(Z, null, ee(e.skeletonQty, (
|
|
1362
|
-
key:
|
|
1361
|
+
(C(!0), _(Z, null, ee(e.skeletonQty, (L) => (C(), _("div", {
|
|
1362
|
+
key: L,
|
|
1363
1363
|
class: "adj-select-image-item"
|
|
1364
1364
|
}, [
|
|
1365
1365
|
q(Pn, {
|
|
@@ -1406,7 +1406,7 @@ const Bn = /* @__PURE__ */ G(In, [["render", An], ["__scopeId", "data-v-ef9285fe
|
|
|
1406
1406
|
},
|
|
1407
1407
|
emits: ["update:modelValue"],
|
|
1408
1408
|
setup(e, { emit: i }) {
|
|
1409
|
-
const t = e, n = i, { x: s, y: a } =
|
|
1409
|
+
const t = e, n = i, { x: s, y: a } = Ot(), { width: o, height: r } = qe();
|
|
1410
1410
|
Ee(() => {
|
|
1411
1411
|
Pt(() => {
|
|
1412
1412
|
s.value >= 0 && a.value >= 0 && o.value >= 0 && A();
|
|
@@ -1414,29 +1414,29 @@ const Bn = /* @__PURE__ */ G(In, [["render", An], ["__scopeId", "data-v-ef9285fe
|
|
|
1414
1414
|
});
|
|
1415
1415
|
const l = ne("refElement");
|
|
1416
1416
|
Ue(l, () => u.value = !1);
|
|
1417
|
-
function d(
|
|
1418
|
-
u.value = !1,
|
|
1417
|
+
function d(k) {
|
|
1418
|
+
u.value = !1, k.id != t.modelValue?.id && n("update:modelValue", k);
|
|
1419
1419
|
}
|
|
1420
|
-
const u =
|
|
1420
|
+
const u = z(!1), f = ne("refInput"), g = ne("refItems"), p = z(0), v = z(0), { elementWidth: S, elementHeight: y } = Pe(f), c = z(0), m = z(80), { elementWidth: h, elementHeight: E } = Pe(g), L = z(t.horizontalPosition), B = z(t.verticalPosition);
|
|
1421
1421
|
function A() {
|
|
1422
|
-
u.value && (
|
|
1422
|
+
u.value && (O(), $(), w());
|
|
1423
1423
|
}
|
|
1424
1424
|
function b() {
|
|
1425
1425
|
u.value = !u.value, A();
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function O() {
|
|
1428
1428
|
if (f.value !== null) {
|
|
1429
|
-
const
|
|
1430
|
-
p.value =
|
|
1429
|
+
const k = f.value.getBoundingClientRect();
|
|
1430
|
+
p.value = k.left, v.value = k.top;
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
1433
|
function $() {
|
|
1434
|
-
|
|
1434
|
+
L.value = t.horizontalPosition, B.value = t.verticalPosition, t.horizontalPosition === "left" && p.value + S.value < h.value ? L.value = "right" : t.horizontalPosition === "right" && h.value > o.value - p.value && (L.value = "left"), t.verticalPosition === "top" && v.value - E.value < 0 ? B.value = "bottom" : t.verticalPosition === "bottom" && v.value + y.value + E.value > r.value && (B.value = "top");
|
|
1435
1435
|
}
|
|
1436
1436
|
function w() {
|
|
1437
|
-
|
|
1437
|
+
L.value === "left" ? c.value = p.value + S.value - h.value : L.value === "center" ? c.value = p.value + S.value / 2 - h.value / 2 : L.value === "right" && (c.value = p.value), B.value == "top" ? m.value = v.value - E.value : B.value == "bottom" && (m.value = v.value + y.value);
|
|
1438
1438
|
}
|
|
1439
|
-
return (
|
|
1439
|
+
return (k, M) => (C(), _("div", {
|
|
1440
1440
|
ref: "refElement",
|
|
1441
1441
|
class: D([
|
|
1442
1442
|
"adj-select-modern",
|
|
@@ -2074,40 +2074,40 @@ function Ta({
|
|
|
2074
2074
|
if (r()) return;
|
|
2075
2075
|
let h = e.pagination.el;
|
|
2076
2076
|
h = N(h);
|
|
2077
|
-
let E,
|
|
2077
|
+
let E, L;
|
|
2078
2078
|
const B = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, A = e.params.loop ? Math.ceil(B / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
2079
|
-
if (e.params.loop ? (
|
|
2079
|
+
if (e.params.loop ? (L = e.previousRealIndex || 0, E = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (E = e.snapIndex, L = e.previousSnapIndex) : (L = e.previousIndex || 0, E = e.activeIndex || 0), m.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
2080
2080
|
const b = e.pagination.bullets;
|
|
2081
|
-
let
|
|
2082
|
-
if (m.dynamicBullets && (a = Re(b[0], e.isHorizontal() ? "width" : "height"), h.forEach((
|
|
2083
|
-
|
|
2084
|
-
}), m.dynamicMainBullets > 1 &&
|
|
2081
|
+
let O, $, w;
|
|
2082
|
+
if (m.dynamicBullets && (a = Re(b[0], e.isHorizontal() ? "width" : "height"), h.forEach((k) => {
|
|
2083
|
+
k.style[e.isHorizontal() ? "width" : "height"] = `${a * (m.dynamicMainBullets + 4)}px`;
|
|
2084
|
+
}), m.dynamicMainBullets > 1 && L !== void 0 && (o += E - (L || 0), o > m.dynamicMainBullets - 1 ? o = m.dynamicMainBullets - 1 : o < 0 && (o = 0)), O = Math.max(E - o, 0), $ = O + (Math.min(b.length, m.dynamicMainBullets) - 1), w = ($ + O) / 2), b.forEach((k) => {
|
|
2085
2085
|
const M = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((I) => `${m.bulletActiveClass}${I}`)].map((I) => typeof I == "string" && I.includes(" ") ? I.split(" ") : I).flat();
|
|
2086
|
-
|
|
2086
|
+
k.classList.remove(...M);
|
|
2087
2087
|
}), h.length > 1)
|
|
2088
|
-
b.forEach((
|
|
2089
|
-
const M = Te(
|
|
2090
|
-
M === E ?
|
|
2088
|
+
b.forEach((k) => {
|
|
2089
|
+
const M = Te(k);
|
|
2090
|
+
M === E ? k.classList.add(...m.bulletActiveClass.split(" ")) : e.isElement && k.setAttribute("part", "bullet"), m.dynamicBullets && (M >= O && M <= $ && k.classList.add(...`${m.bulletActiveClass}-main`.split(" ")), M === O && l(k, "prev"), M === $ && l(k, "next"));
|
|
2091
2091
|
});
|
|
2092
2092
|
else {
|
|
2093
|
-
const
|
|
2094
|
-
if (
|
|
2093
|
+
const k = b[E];
|
|
2094
|
+
if (k && k.classList.add(...m.bulletActiveClass.split(" ")), e.isElement && b.forEach((M, I) => {
|
|
2095
2095
|
M.setAttribute("part", I === E ? "bullet-active" : "bullet");
|
|
2096
2096
|
}), m.dynamicBullets) {
|
|
2097
|
-
const M = b[
|
|
2098
|
-
for (let V =
|
|
2097
|
+
const M = b[O], I = b[$];
|
|
2098
|
+
for (let V = O; V <= $; V += 1)
|
|
2099
2099
|
b[V] && b[V].classList.add(...`${m.bulletActiveClass}-main`.split(" "));
|
|
2100
2100
|
l(M, "prev"), l(I, "next");
|
|
2101
2101
|
}
|
|
2102
2102
|
}
|
|
2103
2103
|
if (m.dynamicBullets) {
|
|
2104
|
-
const
|
|
2104
|
+
const k = Math.min(b.length, m.dynamicMainBullets + 4), M = (a * k - a) / 2 - w * a, I = c ? "right" : "left";
|
|
2105
2105
|
b.forEach((V) => {
|
|
2106
2106
|
V.style[e.isHorizontal() ? I : "top"] = `${M}px`;
|
|
2107
2107
|
});
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
|
-
h.forEach((b,
|
|
2110
|
+
h.forEach((b, O) => {
|
|
2111
2111
|
if (m.type === "fraction" && (b.querySelectorAll(ce(m.currentClass)).forEach(($) => {
|
|
2112
2112
|
$.textContent = m.formatFractionCurrent(E + 1);
|
|
2113
2113
|
}), b.querySelectorAll(ce(m.totalClass)).forEach(($) => {
|
|
@@ -2116,12 +2116,12 @@ function Ta({
|
|
|
2116
2116
|
let $;
|
|
2117
2117
|
m.progressbarOpposite ? $ = e.isHorizontal() ? "vertical" : "horizontal" : $ = e.isHorizontal() ? "horizontal" : "vertical";
|
|
2118
2118
|
const w = (E + 1) / A;
|
|
2119
|
-
let
|
|
2120
|
-
$ === "horizontal" ?
|
|
2121
|
-
I.style.transform = `translate3d(0,0,0) scaleX(${
|
|
2119
|
+
let k = 1, M = 1;
|
|
2120
|
+
$ === "horizontal" ? k = w : M = w, b.querySelectorAll(ce(m.progressbarFillClass)).forEach((I) => {
|
|
2121
|
+
I.style.transform = `translate3d(0,0,0) scaleX(${k}) scaleY(${M})`, I.style.transitionDuration = `${e.params.speed}ms`;
|
|
2122
2122
|
});
|
|
2123
2123
|
}
|
|
2124
|
-
m.type === "custom" && m.renderCustom ? (xe(b, m.renderCustom(e, E + 1, A)),
|
|
2124
|
+
m.type === "custom" && m.renderCustom ? (xe(b, m.renderCustom(e, E + 1, A)), O === 0 && n("paginationRender", b)) : (O === 0 && n("paginationRender", b), n("paginationUpdate", b)), e.params.watchOverflow && e.enabled && b.classList[e.isLocked ? "add" : "remove"](m.lockClass);
|
|
2125
2125
|
});
|
|
2126
2126
|
}
|
|
2127
2127
|
function g() {
|
|
@@ -2132,13 +2132,13 @@ function Ta({
|
|
|
2132
2132
|
h = N(h);
|
|
2133
2133
|
let E = "";
|
|
2134
2134
|
if (c.type === "bullets") {
|
|
2135
|
-
let
|
|
2136
|
-
e.params.freeMode && e.params.freeMode.enabled &&
|
|
2137
|
-
for (let B = 0; B <
|
|
2135
|
+
let L = e.params.loop ? Math.ceil(m / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
2136
|
+
e.params.freeMode && e.params.freeMode.enabled && L > m && (L = m);
|
|
2137
|
+
for (let B = 0; B < L; B += 1)
|
|
2138
2138
|
c.renderBullet ? E += c.renderBullet.call(e, B, c.bulletClass) : E += `<${c.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${c.bulletClass}"></${c.bulletElement}>`;
|
|
2139
2139
|
}
|
|
2140
|
-
c.type === "fraction" && (c.renderFraction ? E = c.renderFraction.call(e, c.currentClass, c.totalClass) : E = `<span class="${c.currentClass}"></span> / <span class="${c.totalClass}"></span>`), c.type === "progressbar" && (c.renderProgressbar ? E = c.renderProgressbar.call(e, c.progressbarFillClass) : E = `<span class="${c.progressbarFillClass}"></span>`), e.pagination.bullets = [], h.forEach((
|
|
2141
|
-
c.type !== "custom" && xe(
|
|
2140
|
+
c.type === "fraction" && (c.renderFraction ? E = c.renderFraction.call(e, c.currentClass, c.totalClass) : E = `<span class="${c.currentClass}"></span> / <span class="${c.totalClass}"></span>`), c.type === "progressbar" && (c.renderProgressbar ? E = c.renderProgressbar.call(e, c.progressbarFillClass) : E = `<span class="${c.progressbarFillClass}"></span>`), e.pagination.bullets = [], h.forEach((L) => {
|
|
2141
|
+
c.type !== "custom" && xe(L, E || ""), c.type === "bullets" && e.pagination.bullets.push(...L.querySelectorAll(ce(c.bulletClass)));
|
|
2142
2142
|
}), c.type !== "custom" && n("paginationRender", h[0]);
|
|
2143
2143
|
}
|
|
2144
2144
|
function p() {
|
|
@@ -2192,8 +2192,8 @@ function Ta({
|
|
|
2192
2192
|
const h = m.target, E = N(e.pagination.el);
|
|
2193
2193
|
if (e.params.pagination.el && e.params.pagination.hideOnClick && E && E.length > 0 && !h.classList.contains(e.params.pagination.bulletClass)) {
|
|
2194
2194
|
if (e.navigation && (e.navigation.nextEl && h === e.navigation.nextEl || e.navigation.prevEl && h === e.navigation.prevEl)) return;
|
|
2195
|
-
const
|
|
2196
|
-
n(
|
|
2195
|
+
const L = E[0].classList.contains(e.params.pagination.hiddenClass);
|
|
2196
|
+
n(L === !0 ? "paginationShow" : "paginationHide"), E.forEach((B) => B.classList.toggle(e.params.pagination.hiddenClass));
|
|
2197
2197
|
}
|
|
2198
2198
|
});
|
|
2199
2199
|
const S = () => {
|
|
@@ -2247,13 +2247,13 @@ function _a({
|
|
|
2247
2247
|
if (!e.params.scrollbar.el || !e.scrollbar.el) return;
|
|
2248
2248
|
const {
|
|
2249
2249
|
scrollbar: w,
|
|
2250
|
-
rtlTranslate:
|
|
2250
|
+
rtlTranslate: k
|
|
2251
2251
|
} = e, {
|
|
2252
2252
|
dragEl: M,
|
|
2253
2253
|
el: I
|
|
2254
2254
|
} = w, V = e.params.scrollbar, x = e.params.loop ? e.progressLoop : e.progress;
|
|
2255
2255
|
let P = d, j = (u - d) * x;
|
|
2256
|
-
|
|
2256
|
+
k ? (j = -j, j > 0 ? (P = d - j, j = 0) : -j + d > u && (P = u + j)) : j < 0 ? (P = d + j, j = 0) : j + d > u && (P = u - j), e.isHorizontal() ? (M.style.transform = `translate3d(${j}px, 0, 0)`, M.style.width = `${P}px`) : (M.style.transform = `translate3d(0px, ${j}px, 0)`, M.style.height = `${P}px`), V.hide && (clearTimeout(o), I.style.opacity = 1, o = setTimeout(() => {
|
|
2257
2257
|
I.style.opacity = 0, I.style.transitionDuration = "400ms";
|
|
2258
2258
|
}, 1e3));
|
|
2259
2259
|
}
|
|
@@ -2265,62 +2265,62 @@ function _a({
|
|
|
2265
2265
|
const {
|
|
2266
2266
|
scrollbar: w
|
|
2267
2267
|
} = e, {
|
|
2268
|
-
dragEl:
|
|
2268
|
+
dragEl: k,
|
|
2269
2269
|
el: M
|
|
2270
2270
|
} = w;
|
|
2271
|
-
|
|
2271
|
+
k.style.width = "", k.style.height = "", u = e.isHorizontal() ? M.offsetWidth : M.offsetHeight, f = e.size / (e.virtualSize + e.params.slidesOffsetBefore - (e.params.centeredSlides ? e.snapGrid[0] : 0)), e.params.scrollbar.dragSize === "auto" ? d = u * f : d = parseInt(e.params.scrollbar.dragSize, 10), e.isHorizontal() ? k.style.width = `${d}px` : k.style.height = `${d}px`, f >= 1 ? M.style.display = "none" : M.style.display = "", e.params.scrollbar.hide && (M.style.opacity = 0), e.params.watchOverflow && e.enabled && w.el.classList[e.isLocked ? "add" : "remove"](e.params.scrollbar.lockClass);
|
|
2272
2272
|
}
|
|
2273
2273
|
function S(w) {
|
|
2274
2274
|
return e.isHorizontal() ? w.clientX : w.clientY;
|
|
2275
2275
|
}
|
|
2276
2276
|
function y(w) {
|
|
2277
2277
|
const {
|
|
2278
|
-
scrollbar:
|
|
2278
|
+
scrollbar: k,
|
|
2279
2279
|
rtlTranslate: M
|
|
2280
2280
|
} = e, {
|
|
2281
2281
|
el: I
|
|
2282
|
-
} =
|
|
2282
|
+
} = k;
|
|
2283
2283
|
let V;
|
|
2284
2284
|
V = (S(w) - Sa(I)[e.isHorizontal() ? "left" : "top"] - (l !== null ? l : d / 2)) / (u - d), V = Math.max(Math.min(V, 1), 0), M && (V = 1 - V);
|
|
2285
2285
|
const x = e.minTranslate() + (e.maxTranslate() - e.minTranslate()) * V;
|
|
2286
2286
|
e.updateProgress(x), e.setTranslate(x), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
2287
2287
|
}
|
|
2288
2288
|
function c(w) {
|
|
2289
|
-
const
|
|
2289
|
+
const k = e.params.scrollbar, {
|
|
2290
2290
|
scrollbar: M,
|
|
2291
2291
|
wrapperEl: I
|
|
2292
2292
|
} = e, {
|
|
2293
2293
|
el: V,
|
|
2294
2294
|
dragEl: x
|
|
2295
2295
|
} = M;
|
|
2296
|
-
a = !0, l = w.target === x ? S(w) - w.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, w.preventDefault(), w.stopPropagation(), I.style.transitionDuration = "100ms", x.style.transitionDuration = "100ms", y(w), clearTimeout(r), V.style.transitionDuration = "0ms",
|
|
2296
|
+
a = !0, l = w.target === x ? S(w) - w.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, w.preventDefault(), w.stopPropagation(), I.style.transitionDuration = "100ms", x.style.transitionDuration = "100ms", y(w), clearTimeout(r), V.style.transitionDuration = "0ms", k.hide && (V.style.opacity = 1), e.params.cssMode && (e.wrapperEl.style["scroll-snap-type"] = "none"), n("scrollbarDragStart", w);
|
|
2297
2297
|
}
|
|
2298
2298
|
function m(w) {
|
|
2299
2299
|
const {
|
|
2300
|
-
scrollbar:
|
|
2300
|
+
scrollbar: k,
|
|
2301
2301
|
wrapperEl: M
|
|
2302
2302
|
} = e, {
|
|
2303
2303
|
el: I,
|
|
2304
2304
|
dragEl: V
|
|
2305
|
-
} =
|
|
2305
|
+
} = k;
|
|
2306
2306
|
a && (w.preventDefault && w.cancelable ? w.preventDefault() : w.returnValue = !1, y(w), M.style.transitionDuration = "0ms", I.style.transitionDuration = "0ms", V.style.transitionDuration = "0ms", n("scrollbarDragMove", w));
|
|
2307
2307
|
}
|
|
2308
2308
|
function h(w) {
|
|
2309
|
-
const
|
|
2309
|
+
const k = e.params.scrollbar, {
|
|
2310
2310
|
scrollbar: M,
|
|
2311
2311
|
wrapperEl: I
|
|
2312
2312
|
} = e, {
|
|
2313
2313
|
el: V
|
|
2314
2314
|
} = M;
|
|
2315
|
-
a && (a = !1, e.params.cssMode && (e.wrapperEl.style["scroll-snap-type"] = "", I.style.transitionDuration = ""),
|
|
2315
|
+
a && (a = !1, e.params.cssMode && (e.wrapperEl.style["scroll-snap-type"] = "", I.style.transitionDuration = ""), k.hide && (clearTimeout(r), r = Ke(() => {
|
|
2316
2316
|
V.style.opacity = 0, V.style.transitionDuration = "400ms";
|
|
2317
|
-
}, 1e3)), n("scrollbarDragEnd", w),
|
|
2317
|
+
}, 1e3)), n("scrollbarDragEnd", w), k.snapOnRelease && e.slideToClosest());
|
|
2318
2318
|
}
|
|
2319
2319
|
function E(w) {
|
|
2320
2320
|
const {
|
|
2321
|
-
scrollbar:
|
|
2321
|
+
scrollbar: k,
|
|
2322
2322
|
params: M
|
|
2323
|
-
} = e, I =
|
|
2323
|
+
} = e, I = k.el;
|
|
2324
2324
|
if (!I) return;
|
|
2325
2325
|
const V = I, x = M.passiveListeners ? {
|
|
2326
2326
|
passive: !1,
|
|
@@ -2333,7 +2333,7 @@ function _a({
|
|
|
2333
2333
|
const j = w === "on" ? "addEventListener" : "removeEventListener";
|
|
2334
2334
|
V[j]("pointerdown", c, x), s[j]("pointermove", m, x), s[j]("pointerup", h, P);
|
|
2335
2335
|
}
|
|
2336
|
-
function
|
|
2336
|
+
function L() {
|
|
2337
2337
|
!e.params.scrollbar.el || !e.scrollbar.el || E("on");
|
|
2338
2338
|
}
|
|
2339
2339
|
function B() {
|
|
@@ -2342,7 +2342,7 @@ function _a({
|
|
|
2342
2342
|
function A() {
|
|
2343
2343
|
const {
|
|
2344
2344
|
scrollbar: w,
|
|
2345
|
-
el:
|
|
2345
|
+
el: k
|
|
2346
2346
|
} = e;
|
|
2347
2347
|
e.params.scrollbar = Qe(e, e.originalParams.scrollbar, e.params.scrollbar, {
|
|
2348
2348
|
el: "swiper-scrollbar"
|
|
@@ -2353,24 +2353,24 @@ function _a({
|
|
|
2353
2353
|
if (typeof M.el == "string" && e.isElement && (I = e.el.querySelector(M.el)), !I && typeof M.el == "string") {
|
|
2354
2354
|
if (I = s.querySelectorAll(M.el), !I.length) return;
|
|
2355
2355
|
} else I || (I = M.el);
|
|
2356
|
-
e.params.uniqueNavElements && typeof M.el == "string" && I.length > 1 &&
|
|
2356
|
+
e.params.uniqueNavElements && typeof M.el == "string" && I.length > 1 && k.querySelectorAll(M.el).length === 1 && (I = k.querySelector(M.el)), I.length > 0 && (I = I[0]), I.classList.add(e.isHorizontal() ? M.horizontalClass : M.verticalClass);
|
|
2357
2357
|
let V;
|
|
2358
2358
|
I && (V = I.querySelector(ce(e.params.scrollbar.dragClass)), V || (V = Se("div", e.params.scrollbar.dragClass), I.append(V))), Object.assign(w, {
|
|
2359
2359
|
el: I,
|
|
2360
2360
|
dragEl: V
|
|
2361
|
-
}), M.draggable &&
|
|
2361
|
+
}), M.draggable && L(), I && I.classList[e.enabled ? "remove" : "add"](...fe(e.params.scrollbar.lockClass));
|
|
2362
2362
|
}
|
|
2363
2363
|
function b() {
|
|
2364
|
-
const w = e.params.scrollbar,
|
|
2365
|
-
|
|
2364
|
+
const w = e.params.scrollbar, k = e.scrollbar.el;
|
|
2365
|
+
k && k.classList.remove(...fe(e.isHorizontal() ? w.horizontalClass : w.verticalClass)), B();
|
|
2366
2366
|
}
|
|
2367
2367
|
t("changeDirection", () => {
|
|
2368
2368
|
if (!e.scrollbar || !e.scrollbar.el) return;
|
|
2369
2369
|
const w = e.params.scrollbar;
|
|
2370
2370
|
let {
|
|
2371
|
-
el:
|
|
2371
|
+
el: k
|
|
2372
2372
|
} = e.scrollbar;
|
|
2373
|
-
|
|
2373
|
+
k = N(k), k.forEach((M) => {
|
|
2374
2374
|
M.classList.remove(w.horizontalClass, w.verticalClass), M.classList.add(e.isHorizontal() ? w.horizontalClass : w.verticalClass);
|
|
2375
2375
|
});
|
|
2376
2376
|
}), t("init", () => {
|
|
@@ -2379,8 +2379,8 @@ function _a({
|
|
|
2379
2379
|
v();
|
|
2380
2380
|
}), t("setTranslate", () => {
|
|
2381
2381
|
g();
|
|
2382
|
-
}), t("setTransition", (w,
|
|
2383
|
-
p(
|
|
2382
|
+
}), t("setTransition", (w, k) => {
|
|
2383
|
+
p(k);
|
|
2384
2384
|
}), t("enable disable", () => {
|
|
2385
2385
|
const {
|
|
2386
2386
|
el: w
|
|
@@ -2389,13 +2389,13 @@ function _a({
|
|
|
2389
2389
|
}), t("destroy", () => {
|
|
2390
2390
|
b();
|
|
2391
2391
|
});
|
|
2392
|
-
const
|
|
2392
|
+
const O = () => {
|
|
2393
2393
|
e.el.classList.remove(...fe(e.params.scrollbar.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.remove(...fe(e.params.scrollbar.scrollbarDisabledClass)), A(), v(), g();
|
|
2394
2394
|
}, $ = () => {
|
|
2395
2395
|
e.el.classList.add(...fe(e.params.scrollbar.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.add(...fe(e.params.scrollbar.scrollbarDisabledClass)), b();
|
|
2396
2396
|
};
|
|
2397
2397
|
Object.assign(e.scrollbar, {
|
|
2398
|
-
enable:
|
|
2398
|
+
enable: O,
|
|
2399
2399
|
disable: $,
|
|
2400
2400
|
updateSize: v,
|
|
2401
2401
|
setTranslate: g,
|
|
@@ -2508,21 +2508,21 @@ function Ea({
|
|
|
2508
2508
|
} = e.navigation;
|
|
2509
2509
|
P && (e.isBeginning ? (c(P), u(P)) : (m(P), d(P))), x && (e.isEnd ? (c(x), u(x)) : (m(x), d(x)));
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function L() {
|
|
2512
2512
|
return e.pagination && e.pagination.bullets && e.pagination.bullets.length;
|
|
2513
2513
|
}
|
|
2514
2514
|
function B() {
|
|
2515
|
-
return
|
|
2515
|
+
return L() && e.params.pagination.clickable;
|
|
2516
2516
|
}
|
|
2517
2517
|
function A() {
|
|
2518
2518
|
const x = e.params.a11y;
|
|
2519
|
-
|
|
2519
|
+
L() && e.pagination.bullets.forEach((P) => {
|
|
2520
2520
|
e.params.pagination.clickable && (d(P), e.params.pagination.renderBullet || (f(P, "button"), v(P, x.paginationBulletMessage.replace(/\{\{index\}\}/, Te(P) + 1)))), P.matches(ce(e.params.pagination.bulletActiveClass)) ? P.setAttribute("aria-current", "true") : P.removeAttribute("aria-current");
|
|
2521
2521
|
});
|
|
2522
2522
|
}
|
|
2523
2523
|
const b = (x, P, j) => {
|
|
2524
2524
|
d(x), x.tagName !== "BUTTON" && (f(x, "button"), x.addEventListener("keydown", h)), v(x, j), p(x, P);
|
|
2525
|
-
},
|
|
2525
|
+
}, O = (x) => {
|
|
2526
2526
|
a && a !== x.target && !a.contains(x.target) && (s = !0), e.a11y.clicked = !0;
|
|
2527
2527
|
}, $ = () => {
|
|
2528
2528
|
s = !1, requestAnimationFrame(() => {
|
|
@@ -2532,7 +2532,7 @@ function Ea({
|
|
|
2532
2532
|
});
|
|
2533
2533
|
}, w = (x) => {
|
|
2534
2534
|
o = (/* @__PURE__ */ new Date()).getTime();
|
|
2535
|
-
},
|
|
2535
|
+
}, k = (x) => {
|
|
2536
2536
|
if (e.a11y.clicked || !e.params.a11y.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() - o < 100) return;
|
|
2537
2537
|
const P = x.target.closest(`.${e.params.slideClass}, swiper-slide`);
|
|
2538
2538
|
if (!P || !e.slides.includes(P)) return;
|
|
@@ -2564,9 +2564,9 @@ function Ea({
|
|
|
2564
2564
|
nextEl: U,
|
|
2565
2565
|
prevEl: J
|
|
2566
2566
|
} = e.navigation ? e.navigation : {};
|
|
2567
|
-
U = N(U), J = N(J), U && U.forEach((he) => b(he, W, x.nextSlideMessage)), J && J.forEach((he) => b(he, W, x.prevSlideMessage)), B() && N(e.pagination.el).forEach((
|
|
2568
|
-
|
|
2569
|
-
}), le().addEventListener("visibilitychange", w), e.el.addEventListener("focus",
|
|
2567
|
+
U = N(U), J = N(J), U && U.forEach((he) => b(he, W, x.nextSlideMessage)), J && J.forEach((he) => b(he, W, x.prevSlideMessage)), B() && N(e.pagination.el).forEach((kt) => {
|
|
2568
|
+
kt.addEventListener("keydown", h);
|
|
2569
|
+
}), le().addEventListener("visibilitychange", w), e.el.addEventListener("focus", k, !0), e.el.addEventListener("pointerdown", O, !0), e.el.addEventListener("pointerup", $, !0);
|
|
2570
2570
|
};
|
|
2571
2571
|
function V() {
|
|
2572
2572
|
n && n.remove();
|
|
@@ -2576,7 +2576,7 @@ function Ea({
|
|
|
2576
2576
|
} = e.navigation ? e.navigation : {};
|
|
2577
2577
|
x = N(x), P = N(P), x && x.forEach((W) => W.removeEventListener("keydown", h)), P && P.forEach((W) => W.removeEventListener("keydown", h)), B() && N(e.pagination.el).forEach((U) => {
|
|
2578
2578
|
U.removeEventListener("keydown", h);
|
|
2579
|
-
}), le().removeEventListener("visibilitychange", w), e.el && typeof e.el != "string" && (e.el.removeEventListener("focus",
|
|
2579
|
+
}), le().removeEventListener("visibilitychange", w), e.el && typeof e.el != "string" && (e.el.removeEventListener("focus", k, !0), e.el.removeEventListener("pointerdown", O, !0), e.el.removeEventListener("pointerup", $, !0));
|
|
2580
2580
|
}
|
|
2581
2581
|
t("beforeInit", () => {
|
|
2582
2582
|
n = Se("span", e.params.a11y.notificationClass), n.setAttribute("aria-live", "assertive"), n.setAttribute("aria-atomic", "true");
|
|
@@ -2593,7 +2593,7 @@ function Ea({
|
|
|
2593
2593
|
});
|
|
2594
2594
|
}
|
|
2595
2595
|
let Be;
|
|
2596
|
-
function
|
|
2596
|
+
function La() {
|
|
2597
2597
|
const e = Q(), i = le();
|
|
2598
2598
|
return {
|
|
2599
2599
|
smoothScroll: i.documentElement && i.documentElement.style && "scrollBehavior" in i.documentElement.style,
|
|
@@ -2601,10 +2601,10 @@ function ka() {
|
|
|
2601
2601
|
};
|
|
2602
2602
|
}
|
|
2603
2603
|
function bt() {
|
|
2604
|
-
return Be || (Be =
|
|
2604
|
+
return Be || (Be = La()), Be;
|
|
2605
2605
|
}
|
|
2606
2606
|
let Ve;
|
|
2607
|
-
function
|
|
2607
|
+
function ka({
|
|
2608
2608
|
userAgent: e
|
|
2609
2609
|
} = {}) {
|
|
2610
2610
|
const i = bt(), t = Q(), n = t.navigator.platform, s = e || t.navigator.userAgent, a = {
|
|
@@ -2618,9 +2618,9 @@ function La({
|
|
|
2618
2618
|
return !d && p && i.touch && v.indexOf(`${o}x${r}`) >= 0 && (d = s.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), p = !1), l && !g && (a.os = "android", a.android = !0), (d || f || u) && (a.os = "ios", a.ios = !0), a;
|
|
2619
2619
|
}
|
|
2620
2620
|
function yt(e = {}) {
|
|
2621
|
-
return Ve || (Ve =
|
|
2621
|
+
return Ve || (Ve = ka(e)), Ve;
|
|
2622
2622
|
}
|
|
2623
|
-
let
|
|
2623
|
+
let Oe;
|
|
2624
2624
|
function Ma() {
|
|
2625
2625
|
const e = Q(), i = yt();
|
|
2626
2626
|
let t = !1;
|
|
@@ -2644,7 +2644,7 @@ function Ma() {
|
|
|
2644
2644
|
};
|
|
2645
2645
|
}
|
|
2646
2646
|
function St() {
|
|
2647
|
-
return
|
|
2647
|
+
return Oe || (Oe = Ma()), Oe;
|
|
2648
2648
|
}
|
|
2649
2649
|
function ja({
|
|
2650
2650
|
swiper: e,
|
|
@@ -2812,7 +2812,7 @@ function Aa() {
|
|
|
2812
2812
|
let S = t.slidesOffsetAfter;
|
|
2813
2813
|
typeof S == "function" && (S = t.slidesOffsetAfter.call(e));
|
|
2814
2814
|
const y = e.snapGrid.length, c = e.slidesGrid.length, m = e.size - v - S;
|
|
2815
|
-
let h = t.spaceBetween, E = -v,
|
|
2815
|
+
let h = t.spaceBetween, E = -v, L = 0, B = 0;
|
|
2816
2816
|
if (typeof m > "u")
|
|
2817
2817
|
return;
|
|
2818
2818
|
typeof h == "string" && h.indexOf("%") >= 0 ? h = parseFloat(h.replace("%", "")) / 100 * m : typeof h == "string" && (h = parseFloat(h)), e.virtualSize = -h - v - S, d.forEach(($) => {
|
|
@@ -2821,7 +2821,7 @@ function Aa() {
|
|
|
2821
2821
|
const A = t.grid && t.grid.rows > 1 && e.grid;
|
|
2822
2822
|
A ? e.grid.initSlides(d) : e.grid && e.grid.unsetSlides();
|
|
2823
2823
|
let b;
|
|
2824
|
-
const
|
|
2824
|
+
const O = t.slidesPerView === "auto" && t.breakpoints && Object.keys(t.breakpoints).filter(($) => typeof t.breakpoints[$].slidesPerView < "u").length > 0;
|
|
2825
2825
|
for (let $ = 0; $ < u; $ += 1) {
|
|
2826
2826
|
b = 0;
|
|
2827
2827
|
const w = d[$];
|
|
@@ -2829,12 +2829,12 @@ function Aa() {
|
|
|
2829
2829
|
if (r && t.slidesPerView === "auto")
|
|
2830
2830
|
t.virtual.slidesPerViewAutoSlideSize && (b = t.virtual.slidesPerViewAutoSlideSize), b && w && (t.roundLengths && (b = Math.floor(b)), w.style[e.getDirectionLabel("width")] = `${b}px`);
|
|
2831
2831
|
else if (t.slidesPerView === "auto") {
|
|
2832
|
-
|
|
2833
|
-
const
|
|
2832
|
+
O && (w.style[e.getDirectionLabel("width")] = "");
|
|
2833
|
+
const k = getComputedStyle(w), M = w.style.transform, I = w.style.webkitTransform;
|
|
2834
2834
|
if (M && (w.style.transform = "none"), I && (w.style.webkitTransform = "none"), t.roundLengths)
|
|
2835
2835
|
b = e.isHorizontal() ? Re(w, "width") : Re(w, "height");
|
|
2836
2836
|
else {
|
|
2837
|
-
const V = i(
|
|
2837
|
+
const V = i(k, "width"), x = i(k, "padding-left"), P = i(k, "padding-right"), j = i(k, "margin-left"), W = i(k, "margin-right"), U = k.getPropertyValue("box-sizing");
|
|
2838
2838
|
if (U && U === "border-box")
|
|
2839
2839
|
b = V + j + W;
|
|
2840
2840
|
else {
|
|
@@ -2848,12 +2848,12 @@ function Aa() {
|
|
|
2848
2848
|
M && (w.style.transform = M), I && (w.style.webkitTransform = I), t.roundLengths && (b = Math.floor(b));
|
|
2849
2849
|
} else
|
|
2850
2850
|
b = (m - (t.slidesPerView - 1) * h) / t.slidesPerView, t.roundLengths && (b = Math.floor(b)), w && (w.style[e.getDirectionLabel("width")] = `${b}px`);
|
|
2851
|
-
w && (w.swiperSlideSize = b), p.push(b), t.centeredSlides ? (E = E + b / 2 +
|
|
2851
|
+
w && (w.swiperSlideSize = b), p.push(b), t.centeredSlides ? (E = E + b / 2 + L / 2 + h, L === 0 && $ !== 0 && (E = E - m / 2 - h), $ === 0 && (E = E - m / 2 - h), Math.abs(E) < 1 / 1e3 && (E = 0), t.roundLengths && (E = Math.floor(E)), B % t.slidesPerGroup === 0 && f.push(E), g.push(E)) : (t.roundLengths && (E = Math.floor(E)), (B - Math.min(e.params.slidesPerGroupSkip, B)) % e.params.slidesPerGroup === 0 && f.push(E), g.push(E), E = E + b + h), e.virtualSize += b + h, L = b, B += 1;
|
|
2852
2852
|
}
|
|
2853
2853
|
}
|
|
2854
2854
|
if (e.virtualSize = Math.max(e.virtualSize, m) + S, a && o && (t.effect === "slide" || t.effect === "coverflow") && (n.style.width = `${e.virtualSize + h}px`), t.setWrapperSize && (n.style[e.getDirectionLabel("width")] = `${e.virtualSize + h}px`), A && e.grid.updateWrapperSize(b, f), !t.centeredSlides) {
|
|
2855
2855
|
const $ = t.slidesPerView !== "auto" && t.slidesPerView % 1 !== 0, w = t.snapToSlideEdge && !t.loop && (t.slidesPerView === "auto" || $);
|
|
2856
|
-
let
|
|
2856
|
+
let k = f.length;
|
|
2857
2857
|
if (w) {
|
|
2858
2858
|
let I;
|
|
2859
2859
|
if (t.slidesPerView === "auto") {
|
|
@@ -2863,38 +2863,38 @@ function Aa() {
|
|
|
2863
2863
|
I = p.length - x;
|
|
2864
2864
|
} else
|
|
2865
2865
|
I = Math.floor(t.slidesPerView);
|
|
2866
|
-
|
|
2866
|
+
k = Math.max(u - I, 0);
|
|
2867
2867
|
}
|
|
2868
2868
|
const M = [];
|
|
2869
2869
|
for (let I = 0; I < f.length; I += 1) {
|
|
2870
2870
|
let V = f[I];
|
|
2871
|
-
t.roundLengths && (V = Math.floor(V)), w ? I <=
|
|
2871
|
+
t.roundLengths && (V = Math.floor(V)), w ? I <= k && M.push(V) : f[I] <= e.virtualSize - m && M.push(V);
|
|
2872
2872
|
}
|
|
2873
2873
|
f = M, Math.floor(e.virtualSize - m) - Math.floor(f[f.length - 1]) > 1 && (w || f.push(e.virtualSize - m));
|
|
2874
2874
|
}
|
|
2875
2875
|
if (r && t.loop) {
|
|
2876
2876
|
const $ = p[0] + h;
|
|
2877
2877
|
if (t.slidesPerGroup > 1) {
|
|
2878
|
-
const w = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / t.slidesPerGroup),
|
|
2878
|
+
const w = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / t.slidesPerGroup), k = $ * t.slidesPerGroup;
|
|
2879
2879
|
for (let M = 0; M < w; M += 1)
|
|
2880
|
-
f.push(f[f.length - 1] +
|
|
2880
|
+
f.push(f[f.length - 1] + k);
|
|
2881
2881
|
}
|
|
2882
2882
|
for (let w = 0; w < e.virtual.slidesBefore + e.virtual.slidesAfter; w += 1)
|
|
2883
2883
|
t.slidesPerGroup === 1 && f.push(f[f.length - 1] + $), g.push(g[g.length - 1] + $), e.virtualSize += $;
|
|
2884
2884
|
}
|
|
2885
2885
|
if (f.length === 0 && (f = [0]), h !== 0) {
|
|
2886
2886
|
const $ = e.isHorizontal() && a ? "marginLeft" : e.getDirectionLabel("marginRight");
|
|
2887
|
-
d.filter((w,
|
|
2887
|
+
d.filter((w, k) => !t.cssMode || t.loop ? !0 : k !== d.length - 1).forEach((w) => {
|
|
2888
2888
|
w.style[$] = `${h}px`;
|
|
2889
2889
|
});
|
|
2890
2890
|
}
|
|
2891
2891
|
if (t.centeredSlides && t.centeredSlidesBounds) {
|
|
2892
2892
|
let $ = 0;
|
|
2893
|
-
p.forEach((
|
|
2894
|
-
$ +=
|
|
2893
|
+
p.forEach((k) => {
|
|
2894
|
+
$ += k + (h || 0);
|
|
2895
2895
|
}), $ -= h;
|
|
2896
2896
|
const w = $ > m ? $ - m : 0;
|
|
2897
|
-
f = f.map((
|
|
2897
|
+
f = f.map((k) => k <= 0 ? -v : k > w ? w + S : k);
|
|
2898
2898
|
}
|
|
2899
2899
|
if (t.centerInsufficientSlides) {
|
|
2900
2900
|
let $ = 0;
|
|
@@ -2902,10 +2902,10 @@ function Aa() {
|
|
|
2902
2902
|
$ += w + (h || 0);
|
|
2903
2903
|
}), $ -= h, $ < m) {
|
|
2904
2904
|
const w = (m - $) / 2;
|
|
2905
|
-
f.forEach((
|
|
2906
|
-
f[M] =
|
|
2907
|
-
}), g.forEach((
|
|
2908
|
-
g[M] =
|
|
2905
|
+
f.forEach((k, M) => {
|
|
2906
|
+
f[M] = k - w;
|
|
2907
|
+
}), g.forEach((k, M) => {
|
|
2908
|
+
g[M] = k + w;
|
|
2909
2909
|
});
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
@@ -2917,7 +2917,7 @@ function Aa() {
|
|
|
2917
2917
|
}), t.centeredSlides && t.cssMode && !t.centeredSlidesBounds) {
|
|
2918
2918
|
ve(n, "--swiper-centered-offset-before", `${-f[0]}px`), ve(n, "--swiper-centered-offset-after", `${e.size / 2 - p[p.length - 1] / 2}px`);
|
|
2919
2919
|
const $ = -e.snapGrid[0], w = -e.slidesGrid[0];
|
|
2920
|
-
e.snapGrid = e.snapGrid.map((
|
|
2920
|
+
e.snapGrid = e.snapGrid.map((k) => k + $), e.slidesGrid = e.slidesGrid.map((k) => k + w);
|
|
2921
2921
|
}
|
|
2922
2922
|
if (u !== l && e.emit("slidesLengthChange"), f.length !== y && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), g.length !== c && e.emit("slidesGridLengthChange"), t.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !r && !t.cssMode && (t.effect === "slide" || t.effect === "fade")) {
|
|
2923
2923
|
const $ = `${t.containerModifierClass}backface-hidden`, w = e.el.classList.contains($);
|
|
@@ -2957,7 +2957,7 @@ function Va() {
|
|
|
2957
2957
|
const nt = (e, i, t) => {
|
|
2958
2958
|
i && !e.classList.contains(t) ? e.classList.add(t) : !i && e.classList.contains(t) && e.classList.remove(t);
|
|
2959
2959
|
};
|
|
2960
|
-
function
|
|
2960
|
+
function Oa(e = this && this.translate || 0) {
|
|
2961
2961
|
const i = this, t = i.params, {
|
|
2962
2962
|
slides: n,
|
|
2963
2963
|
rtlTranslate: s,
|
|
@@ -2977,7 +2977,7 @@ function za(e = this && this.translate || 0) {
|
|
|
2977
2977
|
y && (i.visibleSlides.push(d), i.visibleSlidesIndexes.push(l)), nt(d, y, t.slideVisibleClass), nt(d, S, t.slideFullyVisibleClass), d.progress = s ? -f : f, d.originalProgress = s ? -g : g;
|
|
2978
2978
|
}
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function za(e) {
|
|
2981
2981
|
const i = this;
|
|
2982
2982
|
if (typeof e > "u") {
|
|
2983
2983
|
const u = i.rtlTranslate ? -1 : 1;
|
|
@@ -3009,7 +3009,7 @@ function Oa(e) {
|
|
|
3009
3009
|
isEnd: o
|
|
3010
3010
|
}), (t.watchSlidesProgress || t.centeredSlides && t.autoHeight) && i.updateSlidesProgress(e), a && !l && i.emit("reachBeginning toEdge"), o && !d && i.emit("reachEnd toEdge"), (l && !a || d && !o) && i.emit("fromEdge"), i.emit("progress", s);
|
|
3011
3011
|
}
|
|
3012
|
-
const
|
|
3012
|
+
const ze = (e, i, t) => {
|
|
3013
3013
|
i && !e.classList.contains(t) ? e.classList.add(t) : !i && e.classList.contains(t) && e.classList.remove(t);
|
|
3014
3014
|
};
|
|
3015
3015
|
function Da() {
|
|
@@ -3029,7 +3029,7 @@ function Da() {
|
|
|
3029
3029
|
else
|
|
3030
3030
|
o ? (l = i.find((f) => f.column === s), u = i.find((f) => f.column === s + 1), d = i.find((f) => f.column === s - 1)) : l = i[s];
|
|
3031
3031
|
l && (o || (u = Ca(l, `.${t.slideClass}, swiper-slide`)[0], t.loop && !u && (u = i[0]), d = xa(l, `.${t.slideClass}, swiper-slide`)[0], t.loop && !d === 0 && (d = i[i.length - 1]))), i.forEach((f) => {
|
|
3032
|
-
|
|
3032
|
+
ze(f, f === l, t.slideActiveClass), ze(f, f === u, t.slideNextClass), ze(f, f === d, t.slidePrevClass);
|
|
3033
3033
|
}), e.emitSlidesClasses();
|
|
3034
3034
|
}
|
|
3035
3035
|
const je = (e, i) => {
|
|
@@ -3157,8 +3157,8 @@ var Ra = {
|
|
|
3157
3157
|
updateSlides: Aa,
|
|
3158
3158
|
updateAutoHeight: Ba,
|
|
3159
3159
|
updateSlidesOffset: Va,
|
|
3160
|
-
updateSlidesProgress:
|
|
3161
|
-
updateProgress:
|
|
3160
|
+
updateSlidesProgress: Oa,
|
|
3161
|
+
updateProgress: za,
|
|
3162
3162
|
updateSlidesClasses: Da,
|
|
3163
3163
|
updateActiveIndex: Na,
|
|
3164
3164
|
updateClickedSlide: Ha
|
|
@@ -3303,8 +3303,8 @@ function es(e = 0, i, t = !0, n, s) {
|
|
|
3303
3303
|
const c = -l[y];
|
|
3304
3304
|
if (r.normalizeSlideIndex)
|
|
3305
3305
|
for (let A = 0; A < d.length; A += 1) {
|
|
3306
|
-
const b = -Math.floor(c * 100),
|
|
3307
|
-
typeof d[A + 1] < "u" ? b >=
|
|
3306
|
+
const b = -Math.floor(c * 100), O = Math.floor(d[A] * 100), $ = Math.floor(d[A + 1] * 100);
|
|
3307
|
+
typeof d[A + 1] < "u" ? b >= O && b < $ - ($ - O) / 2 ? o = A : b >= O && b < $ && (o = A + 1) : b >= O && (o = A);
|
|
3308
3308
|
}
|
|
3309
3309
|
if (a.initialized && o !== f && (!a.allowSlideNext && (g ? c > a.translate && c > a.minTranslate() : c < a.translate && c < a.minTranslate()) || !a.allowSlidePrev && c > a.translate && c > a.maxTranslate() && (f || 0) !== o))
|
|
3310
3310
|
return !1;
|
|
@@ -3571,31 +3571,31 @@ function ds({
|
|
|
3571
3571
|
let h = p.slidesPerView;
|
|
3572
3572
|
h === "auto" ? h = l.slidesPerViewDynamic() : (h = Math.ceil(parseFloat(p.slidesPerView, 10)), m && h % 2 === 0 && (h = h + 1));
|
|
3573
3573
|
const E = p.slidesPerGroupAuto ? h : p.slidesPerGroup;
|
|
3574
|
-
let
|
|
3575
|
-
|
|
3574
|
+
let L = m ? Math.max(E, Math.ceil(h / 2)) : E;
|
|
3575
|
+
L % E !== 0 && (L += E - L % E), L += p.loopAdditionalSlides, l.loopedSlides = L;
|
|
3576
3576
|
const B = l.grid && p.grid && p.grid.rows > 1;
|
|
3577
|
-
d.length < h +
|
|
3578
|
-
const A = [], b = [],
|
|
3577
|
+
d.length < h + L || l.params.effect === "cards" && d.length < h + L * 2 ? $e("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : B && p.grid.fill === "row" && $e("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
3578
|
+
const A = [], b = [], O = B ? Math.ceil(d.length / p.grid.rows) : d.length, $ = a && O - c < h && !m;
|
|
3579
3579
|
let w = $ ? c : l.activeIndex;
|
|
3580
3580
|
typeof s > "u" ? s = l.getSlideIndex(d.find((j) => j.classList.contains(p.slideActiveClass))) : w = s;
|
|
3581
|
-
const
|
|
3581
|
+
const k = t === "next" || !t, M = t === "prev" || !t;
|
|
3582
3582
|
let I = 0, V = 0;
|
|
3583
3583
|
const P = (B ? d[s].column : s) + (m && typeof n > "u" ? -h / 2 + 0.5 : 0);
|
|
3584
|
-
if (P <
|
|
3585
|
-
I = Math.max(
|
|
3586
|
-
for (let j = 0; j <
|
|
3587
|
-
const W = j - Math.floor(j /
|
|
3584
|
+
if (P < L) {
|
|
3585
|
+
I = Math.max(L - P, E);
|
|
3586
|
+
for (let j = 0; j < L - P; j += 1) {
|
|
3587
|
+
const W = j - Math.floor(j / O) * O;
|
|
3588
3588
|
if (B) {
|
|
3589
|
-
const U =
|
|
3589
|
+
const U = O - W - 1;
|
|
3590
3590
|
for (let J = d.length - 1; J >= 0; J -= 1)
|
|
3591
3591
|
d[J].column === U && A.push(J);
|
|
3592
3592
|
} else
|
|
3593
|
-
A.push(
|
|
3593
|
+
A.push(O - W - 1);
|
|
3594
3594
|
}
|
|
3595
|
-
} else if (P + h >
|
|
3596
|
-
V = Math.max(P - (
|
|
3595
|
+
} else if (P + h > O - L) {
|
|
3596
|
+
V = Math.max(P - (O - L * 2), E), $ && (V = Math.max(V, h - O + c + 1));
|
|
3597
3597
|
for (let j = 0; j < V; j += 1) {
|
|
3598
|
-
const W = j - Math.floor(j /
|
|
3598
|
+
const W = j - Math.floor(j / O) * O;
|
|
3599
3599
|
B ? d.forEach((U, J) => {
|
|
3600
3600
|
U.column === W && b.push(J);
|
|
3601
3601
|
}) : b.push(W);
|
|
@@ -3603,11 +3603,11 @@ function ds({
|
|
|
3603
3603
|
}
|
|
3604
3604
|
if (l.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
3605
3605
|
l.__preventObserver__ = !1;
|
|
3606
|
-
}), l.params.effect === "cards" && d.length < h +
|
|
3606
|
+
}), l.params.effect === "cards" && d.length < h + L * 2 && (b.includes(s) && b.splice(b.indexOf(s), 1), A.includes(s) && A.splice(A.indexOf(s), 1)), M && A.forEach((j) => {
|
|
3607
3607
|
d[j].swiperLoopMoveDOM = !0, g.prepend(d[j]), d[j].swiperLoopMoveDOM = !1;
|
|
3608
|
-
}),
|
|
3608
|
+
}), k && b.forEach((j) => {
|
|
3609
3609
|
d[j].swiperLoopMoveDOM = !0, g.append(d[j]), d[j].swiperLoopMoveDOM = !1;
|
|
3610
|
-
}), l.recalcSlides(), p.slidesPerView === "auto" ? l.updateSlides() : B && (A.length > 0 && M || b.length > 0 &&
|
|
3610
|
+
}), l.recalcSlides(), p.slidesPerView === "auto" ? l.updateSlides() : B && (A.length > 0 && M || b.length > 0 && k) && l.slides.forEach((j, W) => {
|
|
3611
3611
|
l.grid.updateSlide(W, j, l.slides);
|
|
3612
3612
|
}), p.watchSlidesProgress && l.updateSlidesOffset(), i) {
|
|
3613
3613
|
if (A.length > 0 && M) {
|
|
@@ -3618,7 +3618,7 @@ function ds({
|
|
|
3618
3618
|
const j = B ? A.length / p.grid.rows : A.length;
|
|
3619
3619
|
l.slideTo(l.activeIndex + j, 0, !1, !0), l.touchEventsData.currentTranslate = l.translate;
|
|
3620
3620
|
}
|
|
3621
|
-
} else if (b.length > 0 &&
|
|
3621
|
+
} else if (b.length > 0 && k)
|
|
3622
3622
|
if (typeof e > "u") {
|
|
3623
3623
|
const j = l.slidesGrid[w], U = l.slidesGrid[w - V] - j;
|
|
3624
3624
|
r ? l.setTranslate(l.translate - U) : (l.slideTo(w - V, 0, !1, !0), n && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - U, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - U));
|
|
@@ -3764,7 +3764,7 @@ function gs(e) {
|
|
|
3764
3764
|
return;
|
|
3765
3765
|
let d;
|
|
3766
3766
|
if (l.type === "touchmove") {
|
|
3767
|
-
if (d = [...l.changedTouches].find((
|
|
3767
|
+
if (d = [...l.changedTouches].find((L) => L.identifier === n.touchId), !d || d.identifier !== n.touchId) return;
|
|
3768
3768
|
} else
|
|
3769
3769
|
d = l;
|
|
3770
3770
|
if (!n.isTouched) {
|
|
@@ -3805,8 +3805,8 @@ function gs(e) {
|
|
|
3805
3805
|
const g = a.currentX - a.startX, p = a.currentY - a.startY;
|
|
3806
3806
|
if (t.params.threshold && Math.sqrt(g ** 2 + p ** 2) < t.params.threshold) return;
|
|
3807
3807
|
if (typeof n.isScrolling > "u") {
|
|
3808
|
-
let
|
|
3809
|
-
t.isHorizontal() && a.currentY === a.startY || t.isVertical() && a.currentX === a.startX ? n.isScrolling = !1 : g * g + p * p >= 25 && (
|
|
3808
|
+
let L;
|
|
3809
|
+
t.isHorizontal() && a.currentY === a.startY || t.isVertical() && a.currentX === a.startX ? n.isScrolling = !1 : g * g + p * p >= 25 && (L = Math.atan2(Math.abs(p), Math.abs(g)) * 180 / Math.PI, n.isScrolling = t.isHorizontal() ? L > s.touchAngle : 90 - L > s.touchAngle);
|
|
3810
3810
|
}
|
|
3811
3811
|
if (n.isScrolling && t.emit("touchMoveOpposite", l), typeof n.startMoving > "u" && (a.currentX !== a.startX || a.currentY !== a.startY) && (n.startMoving = !0), n.isScrolling || l.type === "touchmove" && n.preventTouchMoveFromPointerMove) {
|
|
3812
3812
|
n.isTouched = !1;
|
|
@@ -3824,14 +3824,14 @@ function gs(e) {
|
|
|
3824
3824
|
if (c && m && t.loopFix({
|
|
3825
3825
|
direction: t.swipeDirection
|
|
3826
3826
|
}), n.startTranslate = t.getTranslate(), t.setTransition(0), t.animating) {
|
|
3827
|
-
const
|
|
3827
|
+
const L = new window.CustomEvent("transitionend", {
|
|
3828
3828
|
bubbles: !0,
|
|
3829
3829
|
cancelable: !0,
|
|
3830
3830
|
detail: {
|
|
3831
3831
|
bySwiperTouchMove: !0
|
|
3832
3832
|
}
|
|
3833
3833
|
});
|
|
3834
|
-
t.wrapperEl.dispatchEvent(
|
|
3834
|
+
t.wrapperEl.dispatchEvent(L);
|
|
3835
3835
|
}
|
|
3836
3836
|
n.allowMomentumBounce = !1, s.grabCursor && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!0), t.emit("sliderFirstMove", l);
|
|
3837
3837
|
}
|
|
@@ -3873,7 +3873,7 @@ function bs(e) {
|
|
|
3873
3873
|
n.originalEvent && (n = n.originalEvent);
|
|
3874
3874
|
let s;
|
|
3875
3875
|
if (n.type === "touchend" || n.type === "touchcancel") {
|
|
3876
|
-
if (s = [...n.changedTouches].find((
|
|
3876
|
+
if (s = [...n.changedTouches].find((L) => L.identifier === t.touchId), !s || s.identifier !== t.touchId) return;
|
|
3877
3877
|
} else {
|
|
3878
3878
|
if (t.touchId !== null || n.pointerId !== t.pointerId) return;
|
|
3879
3879
|
s = n;
|
|
@@ -3896,8 +3896,8 @@ function bs(e) {
|
|
|
3896
3896
|
o.grabCursor && t.isMoved && t.isTouched && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!1);
|
|
3897
3897
|
const f = Ie(), g = f - t.touchStartTime;
|
|
3898
3898
|
if (i.allowClick) {
|
|
3899
|
-
const
|
|
3900
|
-
i.updateClickedSlide(
|
|
3899
|
+
const L = n.path || n.composedPath && n.composedPath();
|
|
3900
|
+
i.updateClickedSlide(L && L[0] || n.target, L), i.emit("tap click", n), g < 300 && f - t.lastClickTime < 300 && i.emit("doubleTap doubleClick", n);
|
|
3901
3901
|
}
|
|
3902
3902
|
if (t.lastClickTime = Ie(), Ke(() => {
|
|
3903
3903
|
i.destroyed || (i.allowClick = !0);
|
|
@@ -3917,9 +3917,9 @@ function bs(e) {
|
|
|
3917
3917
|
}
|
|
3918
3918
|
const v = p >= -i.maxTranslate() && !i.params.loop;
|
|
3919
3919
|
let S = 0, y = i.slidesSizesGrid[0];
|
|
3920
|
-
for (let
|
|
3921
|
-
const B =
|
|
3922
|
-
typeof d[
|
|
3920
|
+
for (let L = 0; L < d.length; L += L < o.slidesPerGroupSkip ? 1 : o.slidesPerGroup) {
|
|
3921
|
+
const B = L < o.slidesPerGroupSkip - 1 ? 1 : o.slidesPerGroup;
|
|
3922
|
+
typeof d[L + B] < "u" ? (v || p >= d[L] && p < d[L + B]) && (S = L, y = d[L + B] - d[L]) : (v || p >= d[L]) && (S = L, y = d[d.length - 1] - d[d.length - 2]);
|
|
3923
3923
|
}
|
|
3924
3924
|
let c = null, m = null;
|
|
3925
3925
|
o.rewind && (i.isBeginning ? m = o.virtual && o.virtual.enabled && i.virtual ? i.virtual.slides.length - 1 : i.slides.length - 1 : i.isEnd && (c = 0));
|
|
@@ -4050,14 +4050,14 @@ function Es() {
|
|
|
4050
4050
|
});
|
|
4051
4051
|
const c = f.direction && f.direction !== n.direction, m = n.loop && (f.slidesPerView !== n.slidesPerView || c), h = n.loop;
|
|
4052
4052
|
c && t && e.changeDirection(), te(e.params, f);
|
|
4053
|
-
const E = e.params.enabled,
|
|
4053
|
+
const E = e.params.enabled, L = e.params.loop;
|
|
4054
4054
|
Object.assign(e, {
|
|
4055
4055
|
allowTouchMove: e.params.allowTouchMove,
|
|
4056
4056
|
allowSlideNext: e.params.allowSlideNext,
|
|
4057
4057
|
allowSlidePrev: e.params.allowSlidePrev
|
|
4058
|
-
}), y && !E ? e.disable() : !y && E && e.enable(), e.currentBreakpoint = d, e.emit("_beforeBreakpoint", f), t && (m ? (e.loopDestroy(), e.loopCreate(i), e.updateSlides()) : !h &&
|
|
4058
|
+
}), y && !E ? e.disable() : !y && E && e.enable(), e.currentBreakpoint = d, e.emit("_beforeBreakpoint", f), t && (m ? (e.loopDestroy(), e.loopCreate(i), e.updateSlides()) : !h && L ? (e.loopCreate(i), e.updateSlides()) : h && !L && e.loopDestroy()), e.emit("breakpoint", f);
|
|
4059
4059
|
}
|
|
4060
|
-
function
|
|
4060
|
+
function Ls(e, i = "window", t) {
|
|
4061
4061
|
if (!e || i === "container" && !t) return;
|
|
4062
4062
|
let n = !1;
|
|
4063
4063
|
const s = Q(), a = i === "window" ? s.innerHeight : t.clientHeight, o = Object.keys(e).map((r) => {
|
|
@@ -4083,9 +4083,9 @@ function ks(e, i = "window", t) {
|
|
|
4083
4083
|
}
|
|
4084
4084
|
return n || "max";
|
|
4085
4085
|
}
|
|
4086
|
-
var
|
|
4086
|
+
var ks = {
|
|
4087
4087
|
setBreakpoint: Es,
|
|
4088
|
-
getBreakpoint:
|
|
4088
|
+
getBreakpoint: Ls
|
|
4089
4089
|
};
|
|
4090
4090
|
function Ms(e, i) {
|
|
4091
4091
|
const t = [];
|
|
@@ -4301,7 +4301,7 @@ const Ge = {
|
|
|
4301
4301
|
loop: cs,
|
|
4302
4302
|
grabCursor: ms,
|
|
4303
4303
|
events: _s,
|
|
4304
|
-
breakpoints:
|
|
4304
|
+
breakpoints: ks,
|
|
4305
4305
|
checkOverflow: As,
|
|
4306
4306
|
classes: Is
|
|
4307
4307
|
}, Ne = {};
|
|
@@ -4752,7 +4752,7 @@ function _t(e = {}) {
|
|
|
4752
4752
|
function Et(e = {}) {
|
|
4753
4753
|
return e.scrollbar && typeof e.scrollbar.el > "u";
|
|
4754
4754
|
}
|
|
4755
|
-
function
|
|
4755
|
+
function Lt(e = "") {
|
|
4756
4756
|
const i = e.split(" ").map((n) => n.trim()).filter((n) => !!n), t = [];
|
|
4757
4757
|
return i.forEach((n) => {
|
|
4758
4758
|
t.indexOf(n) < 0 && t.push(n);
|
|
@@ -4761,7 +4761,7 @@ function kt(e = "") {
|
|
|
4761
4761
|
function Vs(e = "") {
|
|
4762
4762
|
return e ? e.includes("swiper-wrapper") ? e : `swiper-wrapper ${e}` : "swiper-wrapper";
|
|
4763
4763
|
}
|
|
4764
|
-
function
|
|
4764
|
+
function Os({
|
|
4765
4765
|
swiper: e,
|
|
4766
4766
|
slides: i,
|
|
4767
4767
|
passedParams: t,
|
|
@@ -4779,19 +4779,19 @@ function zs({
|
|
|
4779
4779
|
virtual: p,
|
|
4780
4780
|
thumbs: v
|
|
4781
4781
|
} = e;
|
|
4782
|
-
let S, y, c, m, h, E,
|
|
4782
|
+
let S, y, c, m, h, E, L, B;
|
|
4783
4783
|
n.includes("thumbs") && t.thumbs && t.thumbs.swiper && !t.thumbs.swiper.destroyed && d.thumbs && (!d.thumbs.swiper || d.thumbs.swiper.destroyed) && (S = !0), n.includes("controller") && t.controller && t.controller.control && d.controller && !d.controller.control && (y = !0), n.includes("pagination") && t.pagination && (t.pagination.el || r) && (d.pagination || d.pagination === !1) && u && !u.el && (c = !0), n.includes("scrollbar") && t.scrollbar && (t.scrollbar.el || o) && (d.scrollbar || d.scrollbar === !1) && g && !g.el && (m = !0), n.includes("navigation") && t.navigation && (t.navigation.prevEl || a) && (t.navigation.nextEl || s) && (d.navigation || d.navigation === !1) && f && !f.prevEl && !f.nextEl && (h = !0);
|
|
4784
4784
|
const A = (b) => {
|
|
4785
4785
|
e[b] && (e[b].destroy(), b === "navigation" ? (e.isElement && (e[b].prevEl.remove(), e[b].nextEl.remove()), d[b].prevEl = void 0, d[b].nextEl = void 0, e[b].prevEl = void 0, e[b].nextEl = void 0) : (e.isElement && e[b].el.remove(), d[b].el = void 0, e[b].el = void 0));
|
|
4786
4786
|
};
|
|
4787
|
-
n.includes("loop") && e.isElement && (d.loop && !t.loop ? E = !0 : !d.loop && t.loop ?
|
|
4787
|
+
n.includes("loop") && e.isElement && (d.loop && !t.loop ? E = !0 : !d.loop && t.loop ? L = !0 : B = !0), l.forEach((b) => {
|
|
4788
4788
|
if (me(d[b]) && me(t[b]))
|
|
4789
4789
|
Object.assign(d[b], t[b]), (b === "navigation" || b === "pagination" || b === "scrollbar") && "enabled" in t[b] && !t[b].enabled && A(b);
|
|
4790
4790
|
else {
|
|
4791
|
-
const
|
|
4792
|
-
(
|
|
4791
|
+
const O = t[b];
|
|
4792
|
+
(O === !0 || O === !1) && (b === "navigation" || b === "pagination" || b === "scrollbar") ? O === !1 && A(b) : d[b] = t[b];
|
|
4793
4793
|
}
|
|
4794
|
-
}), l.includes("controller") && !y && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && i && p && d.virtual.enabled ? (p.slides = i, p.update(!0)) : n.includes("virtual") && p && d.virtual.enabled && (i && (p.slides = i), p.update(!0)), n.includes("children") && i && d.loop && (B = !0), S && v.init() && v.update(!0), y && (e.controller.control = d.controller.control), c && (e.isElement && (!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-pagination"), r.part.add("pagination"), e.el.appendChild(r)), r && (d.pagination.el = r), u.init(), u.render(), u.update()), m && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (d.scrollbar.el = o), g.init(), g.updateSize(), g.setTranslate()), h && (e.isElement && ((!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-button-next"), xe(s, e.navigation.arrowSvg), s.part.add("button-next"), e.el.appendChild(s)), (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-prev"), xe(a, e.navigation.arrowSvg), a.part.add("button-prev"), e.el.appendChild(a))), s && (d.navigation.nextEl = s), a && (d.navigation.prevEl = a), f.init(), f.update()), n.includes("allowSlideNext") && (e.allowSlideNext = t.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = t.allowSlidePrev), n.includes("direction") && e.changeDirection(t.direction, !1), (E || B) && e.loopDestroy(), (
|
|
4794
|
+
}), l.includes("controller") && !y && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && i && p && d.virtual.enabled ? (p.slides = i, p.update(!0)) : n.includes("virtual") && p && d.virtual.enabled && (i && (p.slides = i), p.update(!0)), n.includes("children") && i && d.loop && (B = !0), S && v.init() && v.update(!0), y && (e.controller.control = d.controller.control), c && (e.isElement && (!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-pagination"), r.part.add("pagination"), e.el.appendChild(r)), r && (d.pagination.el = r), u.init(), u.render(), u.update()), m && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-scrollbar"), o.part.add("scrollbar"), e.el.appendChild(o)), o && (d.scrollbar.el = o), g.init(), g.updateSize(), g.setTranslate()), h && (e.isElement && ((!s || typeof s == "string") && (s = document.createElement("div"), s.classList.add("swiper-button-next"), xe(s, e.navigation.arrowSvg), s.part.add("button-next"), e.el.appendChild(s)), (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-button-prev"), xe(a, e.navigation.arrowSvg), a.part.add("button-prev"), e.el.appendChild(a))), s && (d.navigation.nextEl = s), a && (d.navigation.prevEl = a), f.init(), f.update()), n.includes("allowSlideNext") && (e.allowSlideNext = t.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = t.allowSlidePrev), n.includes("direction") && e.changeDirection(t.direction, !1), (E || B) && e.loopDestroy(), (L || B) && e.loopCreate(), e.update();
|
|
4795
4795
|
}
|
|
4796
4796
|
function ot(e = {}, i = !0) {
|
|
4797
4797
|
const t = {
|
|
@@ -4810,7 +4810,7 @@ function ot(e = {}, i = !0) {
|
|
|
4810
4810
|
events: n
|
|
4811
4811
|
};
|
|
4812
4812
|
}
|
|
4813
|
-
function
|
|
4813
|
+
function zs({
|
|
4814
4814
|
el: e,
|
|
4815
4815
|
nextEl: i,
|
|
4816
4816
|
prevEl: t,
|
|
@@ -5364,11 +5364,11 @@ const Hs = {
|
|
|
5364
5364
|
const {
|
|
5365
5365
|
tag: n,
|
|
5366
5366
|
wrapperTag: s
|
|
5367
|
-
} = e, a =
|
|
5367
|
+
} = e, a = z("swiper"), o = z(null), r = z(!1), l = z(!1), d = z(null), u = z(null), f = z(null), g = {
|
|
5368
5368
|
value: []
|
|
5369
5369
|
}, p = {
|
|
5370
5370
|
value: []
|
|
5371
|
-
}, v =
|
|
5371
|
+
}, v = z(null), S = z(null), y = z(null), c = z(null), {
|
|
5372
5372
|
params: m,
|
|
5373
5373
|
passedParams: h
|
|
5374
5374
|
} = ot(e, !1);
|
|
@@ -5384,10 +5384,10 @@ const Hs = {
|
|
|
5384
5384
|
a.value = b;
|
|
5385
5385
|
}
|
|
5386
5386
|
});
|
|
5387
|
-
const
|
|
5387
|
+
const L = {
|
|
5388
5388
|
...m
|
|
5389
5389
|
};
|
|
5390
|
-
if (delete
|
|
5390
|
+
if (delete L.wrapperClass, u.value = new Je(L), u.value.virtual && u.value.params.virtual.enabled) {
|
|
5391
5391
|
u.value.virtual.slides = g.value;
|
|
5392
5392
|
const A = {
|
|
5393
5393
|
cache: !1,
|
|
@@ -5403,8 +5403,8 @@ const Hs = {
|
|
|
5403
5403
|
!l.value && u.value && (u.value.emitSlidesClasses(), l.value = !0);
|
|
5404
5404
|
const {
|
|
5405
5405
|
passedParams: A
|
|
5406
|
-
} = ot(e, !1), b = Ds(A, f.value, g.value, p.value, (
|
|
5407
|
-
f.value = A, (b.length || r.value) && u.value && !u.value.destroyed &&
|
|
5406
|
+
} = ot(e, !1), b = Ds(A, f.value, g.value, p.value, (O) => O.props && O.props.key);
|
|
5407
|
+
f.value = A, (b.length || r.value) && u.value && !u.value.destroyed && Os({
|
|
5408
5408
|
swiper: u.value,
|
|
5409
5409
|
slides: g.value,
|
|
5410
5410
|
passedParams: A,
|
|
@@ -5419,7 +5419,7 @@ const Hs = {
|
|
|
5419
5419
|
Gs(u.value);
|
|
5420
5420
|
});
|
|
5421
5421
|
}), Ee(() => {
|
|
5422
|
-
d.value && (
|
|
5422
|
+
d.value && (zs({
|
|
5423
5423
|
el: d.value,
|
|
5424
5424
|
nextEl: v.value,
|
|
5425
5425
|
prevEl: S.value,
|
|
@@ -5431,8 +5431,8 @@ const Hs = {
|
|
|
5431
5431
|
u.value && !u.value.destroyed && u.value.destroy(!0, !1);
|
|
5432
5432
|
});
|
|
5433
5433
|
function B(A) {
|
|
5434
|
-
return m.virtual ? Ns(u, A, o.value) : (A.forEach((b,
|
|
5435
|
-
b.props || (b.props = {}), b.props.swiperRef = u, b.props.swiperSlideIndex =
|
|
5434
|
+
return m.virtual ? Ns(u, A, o.value) : (A.forEach((b, O) => {
|
|
5435
|
+
b.props || (b.props = {}), b.props.swiperRef = u, b.props.swiperSlideIndex = O;
|
|
5436
5436
|
}), A);
|
|
5437
5437
|
}
|
|
5438
5438
|
return () => {
|
|
@@ -5442,7 +5442,7 @@ const Hs = {
|
|
|
5442
5442
|
} = He(i, g, p);
|
|
5443
5443
|
return ie(n, {
|
|
5444
5444
|
ref: d,
|
|
5445
|
-
class:
|
|
5445
|
+
class: Lt(a.value)
|
|
5446
5446
|
}, [b["container-start"], ie(s, {
|
|
5447
5447
|
class: Vs(m.wrapperClass)
|
|
5448
5448
|
}, [b["wrapper-start"], B(A), b["wrapper-end"]]), Tt(e) && [ie("div", {
|
|
@@ -5497,7 +5497,7 @@ const Hs = {
|
|
|
5497
5497
|
let t = !1;
|
|
5498
5498
|
const {
|
|
5499
5499
|
swiperRef: n
|
|
5500
|
-
} = e, s =
|
|
5500
|
+
} = e, s = z(null), a = z("swiper-slide"), o = z(!1);
|
|
5501
5501
|
function r(u, f, g) {
|
|
5502
5502
|
f === s.value && (a.value = g);
|
|
5503
5503
|
}
|
|
@@ -5521,7 +5521,7 @@ const Hs = {
|
|
|
5521
5521
|
o.value = !0;
|
|
5522
5522
|
};
|
|
5523
5523
|
return () => ie(e.tag, {
|
|
5524
|
-
class:
|
|
5524
|
+
class: Lt(`${a.value}`),
|
|
5525
5525
|
ref: s,
|
|
5526
5526
|
"data-swiper-slide-index": typeof e.virtualIndex > "u" && n && n.value && n.value.params.loop ? e.swiperSlideIndex : e.virtualIndex,
|
|
5527
5527
|
onLoadCapture: d
|
|
@@ -5548,7 +5548,7 @@ const Hs = {
|
|
|
5548
5548
|
},
|
|
5549
5549
|
emits: ["update:show"],
|
|
5550
5550
|
setup(e) {
|
|
5551
|
-
const i =
|
|
5551
|
+
const i = z(null), { width: t } = qe(), n = (o) => {
|
|
5552
5552
|
i.value = o;
|
|
5553
5553
|
}, s = [wa, Ta, _a, Ea], a = K(() => {
|
|
5554
5554
|
let o = "100%";
|
|
@@ -5590,7 +5590,7 @@ const Hs = {
|
|
|
5590
5590
|
}, 8, ["show", "width"])
|
|
5591
5591
|
]));
|
|
5592
5592
|
}
|
|
5593
|
-
}),
|
|
5593
|
+
}), Ol = /* @__PURE__ */ G(Us, [["__scopeId", "data-v-3409f691"]]), Ys = {
|
|
5594
5594
|
class: /* @__PURE__ */ D(["adj-tabs"])
|
|
5595
5595
|
}, Xs = { class: "adj-tabs-wrapper" }, Zs = ["onClick"], Ks = { class: "adj-item__name" }, Qs = {
|
|
5596
5596
|
key: 1,
|
|
@@ -5636,7 +5636,7 @@ const Hs = {
|
|
|
5636
5636
|
])
|
|
5637
5637
|
]));
|
|
5638
5638
|
}
|
|
5639
|
-
}),
|
|
5639
|
+
}), zl = /* @__PURE__ */ G(el, [["__scopeId", "data-v-00a26ac4"]]), tl = { class: "adj-tabs-material" }, il = {
|
|
5640
5640
|
key: 0,
|
|
5641
5641
|
class: "underline"
|
|
5642
5642
|
}, nl = { class: "adj-tabs-material-wrapper" }, al = ["onClick"], sl = ["src"], ll = { class: "adj-tabs-material__item-names" }, ol = { class: "adj-tabs-material__item-name" }, rl = { class: "adj-tabs-material__item-subname" }, dl = /* @__PURE__ */ H({
|
|
@@ -5689,7 +5689,7 @@ const Hs = {
|
|
|
5689
5689
|
},
|
|
5690
5690
|
emits: ["update:modelValue"],
|
|
5691
5691
|
setup(e, { emit: i }) {
|
|
5692
|
-
const t = e, n = i, s = ne("refFileInput"), a =
|
|
5692
|
+
const t = e, n = i, s = ne("refFileInput"), a = z(!1);
|
|
5693
5693
|
function o() {
|
|
5694
5694
|
a.value || s.value?.click();
|
|
5695
5695
|
}
|
|
@@ -5700,24 +5700,21 @@ const Hs = {
|
|
|
5700
5700
|
});
|
|
5701
5701
|
}
|
|
5702
5702
|
async function l(u, f) {
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
params: f
|
|
5716
|
-
})
|
|
5717
|
-
})).json();
|
|
5718
|
-
return console.log(1111, `https://api.adjutant.ru/tmp/upload/constructorzakaz/${p?.result}`), {
|
|
5719
|
-
url: `${p?.result}`
|
|
5703
|
+
return f ? {
|
|
5704
|
+
url: `${(await (await fetch(u, {
|
|
5705
|
+
method: "POST",
|
|
5706
|
+
headers: { "Content-Type": "application/json;charset=utf-8" },
|
|
5707
|
+
body: JSON.stringify({
|
|
5708
|
+
id: Date.now(),
|
|
5709
|
+
key: "fvk34lkjf03fd93j9dfsaf0d",
|
|
5710
|
+
lang: "ru",
|
|
5711
|
+
testMode: !0,
|
|
5712
|
+
params: f
|
|
5713
|
+
})
|
|
5714
|
+
})).json())?.result}`
|
|
5720
5715
|
// urlFull: `https://api.adjutant.ru/tmp/upload/constructorzakaz/${responseJson?.result}`,
|
|
5716
|
+
} : {
|
|
5717
|
+
url: ""
|
|
5721
5718
|
};
|
|
5722
5719
|
}
|
|
5723
5720
|
async function d(u) {
|
|
@@ -5774,7 +5771,7 @@ const Hs = {
|
|
|
5774
5771
|
}, null, 544)
|
|
5775
5772
|
]));
|
|
5776
5773
|
}
|
|
5777
|
-
}), Gl = /* @__PURE__ */ G(fl, [["__scopeId", "data-v-
|
|
5774
|
+
}), Gl = /* @__PURE__ */ G(fl, [["__scopeId", "data-v-1c08552c"]]);
|
|
5778
5775
|
export {
|
|
5779
5776
|
ft as AdjButton,
|
|
5780
5777
|
hl as AdjButtonCheckbox,
|
|
@@ -5797,22 +5794,22 @@ export {
|
|
|
5797
5794
|
_l as AdjInputModern,
|
|
5798
5795
|
El as AdjInputNumber,
|
|
5799
5796
|
pt as AdjModal,
|
|
5800
|
-
|
|
5801
|
-
|
|
5797
|
+
Ll as AdjPreloader,
|
|
5798
|
+
kl as AdjRadio,
|
|
5802
5799
|
we as AdjScroll,
|
|
5803
5800
|
Ml as AdjSelect,
|
|
5804
5801
|
jl as AdjSelectButton,
|
|
5805
5802
|
Pl as AdjSelectImage,
|
|
5806
5803
|
Il as AdjSelectModern,
|
|
5807
5804
|
Pn as AdjSkeleton,
|
|
5808
|
-
|
|
5805
|
+
kn as AdjSkeletonItem,
|
|
5809
5806
|
$l as AdjSliderButton,
|
|
5810
5807
|
Bn as AdjSvgActive,
|
|
5811
5808
|
Al as AdjSvgEdit,
|
|
5812
5809
|
Bl as AdjSvgFly,
|
|
5813
5810
|
Vl as AdjSvgYoutube,
|
|
5814
|
-
|
|
5815
|
-
|
|
5811
|
+
Ol as AdjSwiper,
|
|
5812
|
+
zl as AdjTabs,
|
|
5816
5813
|
Dl as AdjTabsMaterial,
|
|
5817
5814
|
Gl as AdjUploadFile
|
|
5818
5815
|
};
|