@okam/stack-ui 1.32.1 → 1.32.2
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/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +53 -55
- package/index101.js +1 -1
- package/index101.mjs +1 -1
- package/index102.js +1 -1
- package/index102.mjs +3 -3
- package/index103.js +1 -1
- package/index103.mjs +1 -1
- package/index110.js +1 -1
- package/index110.mjs +5 -5
- package/index111.js +1 -1
- package/index111.mjs +2 -2
- package/index112.js +1 -1
- package/index112.mjs +1 -1
- package/index113.js +1 -1
- package/index113.mjs +2 -2
- package/index115.js +1 -1
- package/index115.mjs +4 -4
- package/index116.js +1 -1
- package/index116.mjs +2 -2
- package/index120.js +1 -1
- package/index120.mjs +4 -4
- package/index121.js +1 -1
- package/index121.mjs +2 -2
- package/index124.js +1 -1
- package/index124.mjs +1 -1
- package/index125.js +1 -1
- package/index125.mjs +3 -3
- package/index126.js +1 -1
- package/index126.mjs +3 -3
- package/index130.js +1 -1
- package/index130.mjs +2 -2
- package/index133.js +1 -1
- package/index133.mjs +1 -1
- package/index138.js +1 -1
- package/index138.mjs +12 -46
- package/index139.js +1 -1
- package/index139.mjs +46 -241
- package/index140.js +1 -2
- package/index140.mjs +241 -13
- package/index141.js +2 -1
- package/index141.mjs +12 -29
- package/index142.js +1 -1
- package/index142.mjs +30 -52
- package/index143.js +1 -1
- package/index143.mjs +52 -12
- package/index145.js +1 -1
- package/index145.mjs +1 -1
- package/index147.js +1 -1
- package/index147.mjs +2 -2
- package/index148.js +1 -1
- package/index148.mjs +3 -3
- package/index149.js +1 -1
- package/index149.mjs +3 -3
- package/index150.js +1 -1
- package/index150.mjs +1 -1
- package/index151.js +1 -1
- package/index151.mjs +3 -3
- package/index152.js +1 -1
- package/index152.mjs +20 -106
- package/index153.js +1 -1
- package/index153.mjs +107 -83
- package/index154.js +1 -1
- package/index154.mjs +83 -26
- package/index155.js +1 -1
- package/index155.mjs +25 -20
- package/index156.js +1 -1
- package/index156.mjs +123 -17
- package/index157.js +1 -1
- package/index157.mjs +24 -122
- package/index158.js +1 -1
- package/index158.mjs +17 -71
- package/index159.js +1 -1
- package/index159.mjs +62 -338
- package/index160.js +1 -1
- package/index160.mjs +346 -42
- package/index161.js +1 -1
- package/index161.mjs +43 -29
- package/index162.js +1 -1
- package/index162.mjs +28 -24
- package/index164.js +1 -1
- package/index164.mjs +2 -2
- package/index167.js +1 -1
- package/index167.mjs +3 -3
- package/index169.js +1 -1
- package/index169.mjs +1 -1
- package/index170.js +1 -1
- package/index170.mjs +1 -1
- package/index171.js +1 -1
- package/index171.mjs +1 -1
- package/index178.js +1 -1
- package/index178.mjs +1 -1
- package/index180.js +1 -1
- package/index180.mjs +2 -2
- package/index182.js +1 -1
- package/index182.mjs +1 -1
- package/index198.js +1 -1
- package/index198.mjs +70 -201
- package/index199.js +1 -1
- package/index199.mjs +91 -60
- package/index200.js +1 -1
- package/index200.mjs +151 -139
- package/index201.js +1 -1
- package/index201.mjs +72 -125
- package/index202.js +1 -1
- package/index202.mjs +38 -220
- package/index203.js +1 -1
- package/index203.mjs +5 -190
- package/index204.js +1 -1
- package/index204.mjs +60 -68
- package/index205.js +1 -1
- package/index205.mjs +53 -273
- package/index206.js +1 -1
- package/index206.mjs +191 -86
- package/index207.js +1 -1
- package/index207.mjs +56 -180
- package/index208.js +1 -1
- package/index208.mjs +134 -75
- package/index209.js +1 -1
- package/index209.mjs +118 -52
- package/index210.js +1 -1
- package/index210.mjs +214 -116
- package/index211.js +1 -1
- package/index211.mjs +181 -107
- package/index212.js +1 -1
- package/index212.mjs +61 -114
- package/index213.js +1 -1
- package/index213.mjs +272 -65
- package/index214.js +1 -1
- package/index214.mjs +93 -105
- package/index215.js +1 -1
- package/index215.mjs +183 -47
- package/index216.js +1 -1
- package/index216.mjs +77 -86
- package/index217.js +1 -1
- package/index217.mjs +53 -65
- package/index218.js +1 -1
- package/index218.mjs +122 -52
- package/index219.js +1 -1
- package/index219.mjs +111 -94
- package/index220.js +1 -5
- package/index220.mjs +117 -75
- package/index221.js +1 -1
- package/index221.mjs +63 -2016
- package/index222.js +1 -1
- package/index222.mjs +105 -54
- package/index223.js +1 -1
- package/index223.mjs +50 -186
- package/index224.js +1 -1
- package/index224.mjs +89 -68
- package/index225.js +1 -1
- package/index225.mjs +68 -93
- package/index226.js +1 -1
- package/index226.mjs +52 -151
- package/index227.js +1 -1
- package/index227.mjs +100 -72
- package/index228.js +5 -1
- package/index228.mjs +78 -40
- package/index229.js +1 -1
- package/index229.mjs +2025 -5
- package/index230.js +1 -1
- package/index230.mjs +59 -61
- package/index231.js +1 -1
- package/index231.mjs +187 -58
- package/index270.js +1 -1
- package/index270.mjs +44 -126
- package/index271.js +1 -1
- package/index271.mjs +9 -190
- package/index272.js +1 -1
- package/index272.mjs +16 -10
- package/index273.js +1 -1
- package/index273.mjs +16 -4
- package/index274.js +1 -1
- package/index274.mjs +16 -37
- package/index275.js +1 -1
- package/index275.mjs +16 -6
- package/index276.js +1 -1
- package/index276.mjs +16 -30
- package/index277.js +1 -1
- package/index277.mjs +16 -7
- package/index278.js +1 -1
- package/index278.mjs +16 -49
- package/index279.js +1 -1
- package/index279.mjs +16 -10
- package/index280.js +1 -1
- package/index280.mjs +15 -15
- package/index281.js +1 -1
- package/index281.mjs +15 -15
- package/index282.js +1 -1
- package/index282.mjs +12 -12
- package/index283.js +1 -1
- package/index283.mjs +15 -15
- package/index284.js +1 -1
- package/index284.mjs +15 -15
- package/index285.js +1 -1
- package/index285.mjs +15 -15
- package/index286.js +1 -1
- package/index286.mjs +15 -15
- package/index287.js +1 -1
- package/index287.mjs +15 -15
- package/index288.js +1 -1
- package/index288.mjs +15 -15
- package/index289.js +1 -1
- package/index289.mjs +15 -15
- package/index290.js +1 -1
- package/index290.mjs +12 -12
- package/index291.js +1 -1
- package/index291.mjs +15 -15
- package/index292.js +1 -1
- package/index292.mjs +15 -15
- package/index293.js +1 -1
- package/index293.mjs +15 -15
- package/index294.js +1 -1
- package/index294.mjs +12 -12
- package/index295.js +1 -1
- package/index295.mjs +15 -15
- package/index296.js +1 -1
- package/index296.mjs +15 -15
- package/index297.js +1 -1
- package/index297.mjs +15 -15
- package/index298.js +1 -1
- package/index298.mjs +12 -12
- package/index299.js +1 -1
- package/index299.mjs +15 -15
- package/index300.js +1 -1
- package/index300.mjs +15 -15
- package/index301.js +1 -1
- package/index301.mjs +15 -15
- package/index302.js +1 -1
- package/index302.mjs +12 -12
- package/index303.js +1 -1
- package/index303.mjs +15 -15
- package/index304.js +1 -1
- package/index304.mjs +15 -15
- package/index305.js +1 -1
- package/index305.mjs +12 -12
- package/index306.js +1 -1
- package/index306.mjs +130 -15
- package/index307.js +1 -1
- package/index307.mjs +191 -16
- package/index308.js +1 -1
- package/index308.mjs +10 -16
- package/index309.js +1 -1
- package/index309.mjs +4 -16
- package/index310.js +1 -1
- package/index310.mjs +37 -16
- package/index311.js +1 -1
- package/index311.mjs +6 -16
- package/index312.js +1 -1
- package/index312.mjs +30 -16
- package/index313.js +1 -1
- package/index313.mjs +7 -16
- package/index315.js +1 -1
- package/index315.mjs +1 -1
- package/index318.js +1 -1
- package/index318.mjs +1 -1
- package/index325.js +1 -1
- package/index325.mjs +1 -1
- package/index330.js +1 -1
- package/index330.mjs +1 -1
- package/index338.js +1 -1
- package/index338.mjs +4 -7
- package/index339.js +1 -1
- package/index339.mjs +6 -68
- package/index340.js +1 -1
- package/index340.mjs +65 -27
- package/index341.js +1 -1
- package/index341.mjs +30 -6
- package/index342.js +1 -1
- package/index342.mjs +6 -6
- package/index343.js +1 -1
- package/index343.mjs +6 -20
- package/index344.js +1 -1
- package/index344.mjs +20 -3
- package/index99.js +1 -1
- package/index99.mjs +1 -1
- package/package.json +1 -1
package/index202.mjs
CHANGED
|
@@ -1,227 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
on: g,
|
|
9
|
-
emit: v
|
|
10
|
-
} = I;
|
|
11
|
-
const d = "swiper-pagination";
|
|
12
|
-
H({
|
|
13
|
-
pagination: {
|
|
14
|
-
el: null,
|
|
15
|
-
bulletElement: "span",
|
|
16
|
-
clickable: !1,
|
|
17
|
-
hideOnClick: !1,
|
|
18
|
-
renderBullet: null,
|
|
19
|
-
renderProgressbar: null,
|
|
20
|
-
renderFraction: null,
|
|
21
|
-
renderCustom: null,
|
|
22
|
-
progressbarOpposite: !1,
|
|
23
|
-
type: "bullets",
|
|
24
|
-
// 'bullets' or 'progressbar' or 'fraction' or 'custom'
|
|
25
|
-
dynamicBullets: !1,
|
|
26
|
-
dynamicMainBullets: 1,
|
|
27
|
-
formatFractionCurrent: (a) => a,
|
|
28
|
-
formatFractionTotal: (a) => a,
|
|
29
|
-
bulletClass: `${d}-bullet`,
|
|
30
|
-
bulletActiveClass: `${d}-bullet-active`,
|
|
31
|
-
modifierClass: `${d}-`,
|
|
32
|
-
currentClass: `${d}-current`,
|
|
33
|
-
totalClass: `${d}-total`,
|
|
34
|
-
hiddenClass: `${d}-hidden`,
|
|
35
|
-
progressbarFillClass: `${d}-progressbar-fill`,
|
|
36
|
-
progressbarOppositeClass: `${d}-progressbar-opposite`,
|
|
37
|
-
clickableClass: `${d}-clickable`,
|
|
38
|
-
lockClass: `${d}-lock`,
|
|
39
|
-
horizontalClass: `${d}-horizontal`,
|
|
40
|
-
verticalClass: `${d}-vertical`,
|
|
41
|
-
paginationDisabledClass: `${d}-disabled`
|
|
42
|
-
}
|
|
43
|
-
}), e.pagination = {
|
|
44
|
-
el: null,
|
|
45
|
-
bullets: []
|
|
46
|
-
};
|
|
47
|
-
let b, u = 0;
|
|
48
|
-
function k() {
|
|
49
|
-
return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
|
|
50
|
-
}
|
|
51
|
-
function x(a, s) {
|
|
52
|
-
const {
|
|
53
|
-
bulletActiveClass: i
|
|
54
|
-
} = e.params.pagination;
|
|
55
|
-
a && (a = a[`${s === "prev" ? "previous" : "next"}ElementSibling`], a && (a.classList.add(`${i}-${s}`), a = a[`${s === "prev" ? "previous" : "next"}ElementSibling`], a && a.classList.add(`${i}-${s}-${s}`)));
|
|
56
|
-
}
|
|
57
|
-
function O(a, s, i) {
|
|
58
|
-
if (a = a % i, s = s % i, s === a + 1)
|
|
59
|
-
return "next";
|
|
60
|
-
if (s === a - 1)
|
|
61
|
-
return "previous";
|
|
62
|
-
}
|
|
63
|
-
function D(a) {
|
|
64
|
-
const s = a.target.closest($(e.params.pagination.bulletClass));
|
|
65
|
-
if (!s)
|
|
66
|
-
return;
|
|
67
|
-
a.preventDefault();
|
|
68
|
-
const i = S(s) * e.params.slidesPerGroup;
|
|
69
|
-
if (e.params.loop) {
|
|
70
|
-
if (e.realIndex === i) return;
|
|
71
|
-
const t = O(e.realIndex, i, e.slides.length);
|
|
72
|
-
t === "next" ? e.slideNext() : t === "previous" ? e.slidePrev() : e.slideToLoop(i);
|
|
73
|
-
} else
|
|
74
|
-
e.slideTo(i);
|
|
1
|
+
function f(l) {
|
|
2
|
+
if (c()) l.focus({
|
|
3
|
+
preventScroll: !0
|
|
4
|
+
});
|
|
5
|
+
else {
|
|
6
|
+
let e = n(l);
|
|
7
|
+
l.focus(), s(e);
|
|
75
8
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
let f, c, L;
|
|
86
|
-
if (s.dynamicBullets && (b = E(l[0], e.isHorizontal() ? "width" : "height"), i.forEach((n) => {
|
|
87
|
-
n.style[e.isHorizontal() ? "width" : "height"] = `${b * (s.dynamicMainBullets + 4)}px`;
|
|
88
|
-
}), s.dynamicMainBullets > 1 && p !== void 0 && (u += t - (p || 0), u > s.dynamicMainBullets - 1 ? u = s.dynamicMainBullets - 1 : u < 0 && (u = 0)), f = Math.max(t - u, 0), c = f + (Math.min(l.length, s.dynamicMainBullets) - 1), L = (c + f) / 2), l.forEach((n) => {
|
|
89
|
-
const r = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((o) => `${s.bulletActiveClass}${o}`)].map((o) => typeof o == "string" && o.includes(" ") ? o.split(" ") : o).flat();
|
|
90
|
-
n.classList.remove(...r);
|
|
91
|
-
}), i.length > 1)
|
|
92
|
-
l.forEach((n) => {
|
|
93
|
-
const r = S(n);
|
|
94
|
-
r === t ? n.classList.add(...s.bulletActiveClass.split(" ")) : e.isElement && n.setAttribute("part", "bullet"), s.dynamicBullets && (r >= f && r <= c && n.classList.add(...`${s.bulletActiveClass}-main`.split(" ")), r === f && x(n, "prev"), r === c && x(n, "next"));
|
|
95
|
-
});
|
|
96
|
-
else {
|
|
97
|
-
const n = l[t];
|
|
98
|
-
if (n && n.classList.add(...s.bulletActiveClass.split(" ")), e.isElement && l.forEach((r, o) => {
|
|
99
|
-
r.setAttribute("part", o === t ? "bullet-active" : "bullet");
|
|
100
|
-
}), s.dynamicBullets) {
|
|
101
|
-
const r = l[f], o = l[c];
|
|
102
|
-
for (let y = f; y <= c; y += 1)
|
|
103
|
-
l[y] && l[y].classList.add(...`${s.bulletActiveClass}-main`.split(" "));
|
|
104
|
-
x(r, "prev"), x(o, "next");
|
|
9
|
+
}
|
|
10
|
+
let r = null;
|
|
11
|
+
function c() {
|
|
12
|
+
if (r == null) {
|
|
13
|
+
r = !1;
|
|
14
|
+
try {
|
|
15
|
+
document.createElement("div").focus({
|
|
16
|
+
get preventScroll() {
|
|
17
|
+
return r = !0, !0;
|
|
105
18
|
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const n = Math.min(l.length, s.dynamicMainBullets + 4), r = (b * n - b) / 2 - L * b, o = a ? "right" : "left";
|
|
109
|
-
l.forEach((y) => {
|
|
110
|
-
y.style[e.isHorizontal() ? o : "top"] = `${r}px`;
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
i.forEach((l, f) => {
|
|
115
|
-
if (s.type === "fraction" && (l.querySelectorAll($(s.currentClass)).forEach((c) => {
|
|
116
|
-
c.textContent = s.formatFractionCurrent(t + 1);
|
|
117
|
-
}), l.querySelectorAll($(s.totalClass)).forEach((c) => {
|
|
118
|
-
c.textContent = s.formatFractionTotal(z);
|
|
119
|
-
})), s.type === "progressbar") {
|
|
120
|
-
let c;
|
|
121
|
-
s.progressbarOpposite ? c = e.isHorizontal() ? "vertical" : "horizontal" : c = e.isHorizontal() ? "horizontal" : "vertical";
|
|
122
|
-
const L = (t + 1) / z;
|
|
123
|
-
let n = 1, r = 1;
|
|
124
|
-
c === "horizontal" ? n = L : r = L, l.querySelectorAll($(s.progressbarFillClass)).forEach((o) => {
|
|
125
|
-
o.style.transform = `translate3d(0,0,0) scaleX(${n}) scaleY(${r})`, o.style.transitionDuration = `${e.params.speed}ms`;
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
s.type === "custom" && s.renderCustom ? (l.innerHTML = s.renderCustom(e, t + 1, z), f === 0 && v("paginationRender", l)) : (f === 0 && v("paginationRender", l), v("paginationUpdate", l)), e.params.watchOverflow && e.enabled && l.classList[e.isLocked ? "add" : "remove"](s.lockClass);
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
function B() {
|
|
132
|
-
const a = e.params.pagination;
|
|
133
|
-
if (k()) return;
|
|
134
|
-
const s = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
|
|
135
|
-
let i = e.pagination.el;
|
|
136
|
-
i = m(i);
|
|
137
|
-
let t = "";
|
|
138
|
-
if (a.type === "bullets") {
|
|
139
|
-
let p = e.params.loop ? Math.ceil(s / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
140
|
-
e.params.freeMode && e.params.freeMode.enabled && p > s && (p = s);
|
|
141
|
-
for (let C = 0; C < p; C += 1)
|
|
142
|
-
a.renderBullet ? t += a.renderBullet.call(e, C, a.bulletClass) : t += `<${a.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${a.bulletClass}"></${a.bulletElement}>`;
|
|
19
|
+
});
|
|
20
|
+
} catch {
|
|
143
21
|
}
|
|
144
|
-
a.type === "fraction" && (a.renderFraction ? t = a.renderFraction.call(e, a.currentClass, a.totalClass) : t = `<span class="${a.currentClass}"></span> / <span class="${a.totalClass}"></span>`), a.type === "progressbar" && (a.renderProgressbar ? t = a.renderProgressbar.call(e, a.progressbarFillClass) : t = `<span class="${a.progressbarFillClass}"></span>`), e.pagination.bullets = [], i.forEach((p) => {
|
|
145
|
-
a.type !== "custom" && (p.innerHTML = t || ""), a.type === "bullets" && e.pagination.bullets.push(...p.querySelectorAll($(a.bulletClass)));
|
|
146
|
-
}), a.type !== "custom" && v("paginationRender", i[0]);
|
|
147
22
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}),
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
})), e.pagination.bullets && e.pagination.bullets.forEach((i) => i.classList.remove(...a.bulletActiveClass.split(" ")));
|
|
168
|
-
}
|
|
169
|
-
g("changeDirection", () => {
|
|
170
|
-
if (!e.pagination || !e.pagination.el) return;
|
|
171
|
-
const a = e.params.pagination;
|
|
172
|
-
let {
|
|
173
|
-
el: s
|
|
174
|
-
} = e.pagination;
|
|
175
|
-
s = m(s), s.forEach((i) => {
|
|
176
|
-
i.classList.remove(a.horizontalClass, a.verticalClass), i.classList.add(e.isHorizontal() ? a.horizontalClass : a.verticalClass);
|
|
177
|
-
});
|
|
178
|
-
}), g("init", () => {
|
|
179
|
-
e.params.pagination.enabled === !1 ? P() : (A(), B(), h());
|
|
180
|
-
}), g("activeIndexChange", () => {
|
|
181
|
-
typeof e.snapIndex > "u" && h();
|
|
182
|
-
}), g("snapIndexChange", () => {
|
|
183
|
-
h();
|
|
184
|
-
}), g("snapGridLengthChange", () => {
|
|
185
|
-
B(), h();
|
|
186
|
-
}), g("destroy", () => {
|
|
187
|
-
M();
|
|
188
|
-
}), g("enable disable", () => {
|
|
189
|
-
let {
|
|
190
|
-
el: a
|
|
191
|
-
} = e.pagination;
|
|
192
|
-
a && (a = m(a), a.forEach((s) => s.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
|
|
193
|
-
}), g("lock unlock", () => {
|
|
194
|
-
h();
|
|
195
|
-
}), g("click", (a, s) => {
|
|
196
|
-
const i = s.target, t = m(e.pagination.el);
|
|
197
|
-
if (e.params.pagination.el && e.params.pagination.hideOnClick && t && t.length > 0 && !i.classList.contains(e.params.pagination.bulletClass)) {
|
|
198
|
-
if (e.navigation && (e.navigation.nextEl && i === e.navigation.nextEl || e.navigation.prevEl && i === e.navigation.prevEl)) return;
|
|
199
|
-
const p = t[0].classList.contains(e.params.pagination.hiddenClass);
|
|
200
|
-
v(p === !0 ? "paginationShow" : "paginationHide"), t.forEach((C) => C.classList.toggle(e.params.pagination.hiddenClass));
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
const w = () => {
|
|
204
|
-
e.el.classList.remove(e.params.pagination.paginationDisabledClass);
|
|
205
|
-
let {
|
|
206
|
-
el: a
|
|
207
|
-
} = e.pagination;
|
|
208
|
-
a && (a = m(a), a.forEach((s) => s.classList.remove(e.params.pagination.paginationDisabledClass))), A(), B(), h();
|
|
209
|
-
}, P = () => {
|
|
210
|
-
e.el.classList.add(e.params.pagination.paginationDisabledClass);
|
|
211
|
-
let {
|
|
212
|
-
el: a
|
|
213
|
-
} = e.pagination;
|
|
214
|
-
a && (a = m(a), a.forEach((s) => s.classList.add(e.params.pagination.paginationDisabledClass))), M();
|
|
215
|
-
};
|
|
216
|
-
Object.assign(e.pagination, {
|
|
217
|
-
enable: w,
|
|
218
|
-
disable: P,
|
|
219
|
-
render: B,
|
|
220
|
-
update: h,
|
|
221
|
-
init: A,
|
|
222
|
-
destroy: M
|
|
223
|
-
});
|
|
23
|
+
return r;
|
|
24
|
+
}
|
|
25
|
+
function n(l) {
|
|
26
|
+
let e = l.parentNode, o = [], t = document.scrollingElement || document.documentElement;
|
|
27
|
+
for (; e instanceof HTMLElement && e !== t; )
|
|
28
|
+
(e.offsetHeight < e.scrollHeight || e.offsetWidth < e.scrollWidth) && o.push({
|
|
29
|
+
element: e,
|
|
30
|
+
scrollTop: e.scrollTop,
|
|
31
|
+
scrollLeft: e.scrollLeft
|
|
32
|
+
}), e = e.parentNode;
|
|
33
|
+
return t instanceof HTMLElement && o.push({
|
|
34
|
+
element: t,
|
|
35
|
+
scrollTop: t.scrollTop,
|
|
36
|
+
scrollLeft: t.scrollLeft
|
|
37
|
+
}), o;
|
|
38
|
+
}
|
|
39
|
+
function s(l) {
|
|
40
|
+
for (let { element: e, scrollTop: o, scrollLeft: t } of l)
|
|
41
|
+
e.scrollTop = o, e.scrollLeft = t;
|
|
224
42
|
}
|
|
225
43
|
export {
|
|
226
|
-
|
|
44
|
+
f as focusWithoutScrolling
|
|
227
45
|
};
|
package/index203.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function n(e,t){let r=c.useRef(null);return e&&r.current&&t(e,r.current)&&(e=r.current),r.current=e,e}exports.useDeepMemo=n;
|
package/index203.mjs
CHANGED
|
@@ -1,193 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function _(x) {
|
|
6
|
-
let {
|
|
7
|
-
swiper: s,
|
|
8
|
-
extendParams: k,
|
|
9
|
-
on: f,
|
|
10
|
-
emit: g
|
|
11
|
-
} = x;
|
|
12
|
-
const y = R();
|
|
13
|
-
let b = !1, E = null, v = null, h, i, c, D;
|
|
14
|
-
k({
|
|
15
|
-
scrollbar: {
|
|
16
|
-
el: null,
|
|
17
|
-
dragSize: "auto",
|
|
18
|
-
hide: !1,
|
|
19
|
-
draggable: !1,
|
|
20
|
-
snapOnRelease: !0,
|
|
21
|
-
lockClass: "swiper-scrollbar-lock",
|
|
22
|
-
dragClass: "swiper-scrollbar-drag",
|
|
23
|
-
scrollbarDisabledClass: "swiper-scrollbar-disabled",
|
|
24
|
-
horizontalClass: "swiper-scrollbar-horizontal",
|
|
25
|
-
verticalClass: "swiper-scrollbar-vertical"
|
|
26
|
-
}
|
|
27
|
-
}), s.scrollbar = {
|
|
28
|
-
el: null,
|
|
29
|
-
dragEl: null
|
|
30
|
-
};
|
|
31
|
-
function m() {
|
|
32
|
-
if (!s.params.scrollbar.el || !s.scrollbar.el) return;
|
|
33
|
-
const {
|
|
34
|
-
scrollbar: l,
|
|
35
|
-
rtlTranslate: e
|
|
36
|
-
} = s, {
|
|
37
|
-
dragEl: a,
|
|
38
|
-
el: r
|
|
39
|
-
} = l, t = s.params.scrollbar, n = s.params.loop ? s.progressLoop : s.progress;
|
|
40
|
-
let p = i, o = (c - i) * n;
|
|
41
|
-
e ? (o = -o, o > 0 ? (p = i - o, o = 0) : -o + i > c && (p = c + o)) : o < 0 ? (p = i + o, o = 0) : o + i > c && (p = c - o), s.isHorizontal() ? (a.style.transform = `translate3d(${o}px, 0, 0)`, a.style.width = `${p}px`) : (a.style.transform = `translate3d(0px, ${o}px, 0)`, a.style.height = `${p}px`), t.hide && (clearTimeout(E), r.style.opacity = 1, E = setTimeout(() => {
|
|
42
|
-
r.style.opacity = 0, r.style.transitionDuration = "400ms";
|
|
43
|
-
}, 1e3));
|
|
44
|
-
}
|
|
45
|
-
function H(l) {
|
|
46
|
-
!s.params.scrollbar.el || !s.scrollbar.el || (s.scrollbar.dragEl.style.transitionDuration = `${l}ms`);
|
|
47
|
-
}
|
|
48
|
-
function u() {
|
|
49
|
-
if (!s.params.scrollbar.el || !s.scrollbar.el) return;
|
|
50
|
-
const {
|
|
51
|
-
scrollbar: l
|
|
52
|
-
} = s, {
|
|
53
|
-
dragEl: e,
|
|
54
|
-
el: a
|
|
55
|
-
} = l;
|
|
56
|
-
e.style.width = "", e.style.height = "", c = s.isHorizontal() ? a.offsetWidth : a.offsetHeight, D = s.size / (s.virtualSize + s.params.slidesOffsetBefore - (s.params.centeredSlides ? s.snapGrid[0] : 0)), s.params.scrollbar.dragSize === "auto" ? i = c * D : i = parseInt(s.params.scrollbar.dragSize, 10), s.isHorizontal() ? e.style.width = `${i}px` : e.style.height = `${i}px`, D >= 1 ? a.style.display = "none" : a.style.display = "", s.params.scrollbar.hide && (a.style.opacity = 0), s.params.watchOverflow && s.enabled && l.el.classList[s.isLocked ? "add" : "remove"](s.params.scrollbar.lockClass);
|
|
57
|
-
}
|
|
58
|
-
function w(l) {
|
|
59
|
-
return s.isHorizontal() ? l.clientX : l.clientY;
|
|
60
|
-
}
|
|
61
|
-
function T(l) {
|
|
62
|
-
const {
|
|
63
|
-
scrollbar: e,
|
|
64
|
-
rtlTranslate: a
|
|
65
|
-
} = s, {
|
|
66
|
-
el: r
|
|
67
|
-
} = e;
|
|
68
|
-
let t;
|
|
69
|
-
t = (w(l) - N(r)[s.isHorizontal() ? "left" : "top"] - (h !== null ? h : i / 2)) / (c - i), t = Math.max(Math.min(t, 1), 0), a && (t = 1 - t);
|
|
70
|
-
const n = s.minTranslate() + (s.maxTranslate() - s.minTranslate()) * t;
|
|
71
|
-
s.updateProgress(n), s.setTranslate(n), s.updateActiveIndex(), s.updateSlidesClasses();
|
|
72
|
-
}
|
|
73
|
-
function P(l) {
|
|
74
|
-
const e = s.params.scrollbar, {
|
|
75
|
-
scrollbar: a,
|
|
76
|
-
wrapperEl: r
|
|
77
|
-
} = s, {
|
|
78
|
-
el: t,
|
|
79
|
-
dragEl: n
|
|
80
|
-
} = a;
|
|
81
|
-
b = !0, h = l.target === n ? w(l) - l.target.getBoundingClientRect()[s.isHorizontal() ? "left" : "top"] : null, l.preventDefault(), l.stopPropagation(), r.style.transitionDuration = "100ms", n.style.transitionDuration = "100ms", T(l), clearTimeout(v), t.style.transitionDuration = "0ms", e.hide && (t.style.opacity = 1), s.params.cssMode && (s.wrapperEl.style["scroll-snap-type"] = "none"), g("scrollbarDragStart", l);
|
|
82
|
-
}
|
|
83
|
-
function M(l) {
|
|
84
|
-
const {
|
|
85
|
-
scrollbar: e,
|
|
86
|
-
wrapperEl: a
|
|
87
|
-
} = s, {
|
|
88
|
-
el: r,
|
|
89
|
-
dragEl: t
|
|
90
|
-
} = e;
|
|
91
|
-
b && (l.preventDefault && l.cancelable ? l.preventDefault() : l.returnValue = !1, T(l), a.style.transitionDuration = "0ms", r.style.transitionDuration = "0ms", t.style.transitionDuration = "0ms", g("scrollbarDragMove", l));
|
|
92
|
-
}
|
|
93
|
-
function O(l) {
|
|
94
|
-
const e = s.params.scrollbar, {
|
|
95
|
-
scrollbar: a,
|
|
96
|
-
wrapperEl: r
|
|
97
|
-
} = s, {
|
|
98
|
-
el: t
|
|
99
|
-
} = a;
|
|
100
|
-
b && (b = !1, s.params.cssMode && (s.wrapperEl.style["scroll-snap-type"] = "", r.style.transitionDuration = ""), e.hide && (clearTimeout(v), v = B(() => {
|
|
101
|
-
t.style.opacity = 0, t.style.transitionDuration = "400ms";
|
|
102
|
-
}, 1e3)), g("scrollbarDragEnd", l), e.snapOnRelease && s.slideToClosest());
|
|
103
|
-
}
|
|
104
|
-
function S(l) {
|
|
105
|
-
const {
|
|
106
|
-
scrollbar: e,
|
|
107
|
-
params: a
|
|
108
|
-
} = s, r = e.el;
|
|
109
|
-
if (!r) return;
|
|
110
|
-
const t = r, n = a.passiveListeners ? {
|
|
111
|
-
passive: !1,
|
|
112
|
-
capture: !1
|
|
113
|
-
} : !1, p = a.passiveListeners ? {
|
|
114
|
-
passive: !0,
|
|
115
|
-
capture: !1
|
|
116
|
-
} : !1;
|
|
117
|
-
if (!t) return;
|
|
118
|
-
const o = l === "on" ? "addEventListener" : "removeEventListener";
|
|
119
|
-
t[o]("pointerdown", P, n), y[o]("pointermove", M, n), y[o]("pointerup", O, p);
|
|
120
|
-
}
|
|
121
|
-
function $() {
|
|
122
|
-
!s.params.scrollbar.el || !s.scrollbar.el || S("on");
|
|
123
|
-
}
|
|
124
|
-
function q() {
|
|
125
|
-
!s.params.scrollbar.el || !s.scrollbar.el || S("off");
|
|
126
|
-
}
|
|
127
|
-
function z() {
|
|
128
|
-
const {
|
|
129
|
-
scrollbar: l,
|
|
130
|
-
el: e
|
|
131
|
-
} = s;
|
|
132
|
-
s.params.scrollbar = G(s, s.originalParams.scrollbar, s.params.scrollbar, {
|
|
133
|
-
el: "swiper-scrollbar"
|
|
134
|
-
});
|
|
135
|
-
const a = s.params.scrollbar;
|
|
136
|
-
if (!a.el) return;
|
|
137
|
-
let r;
|
|
138
|
-
if (typeof a.el == "string" && s.isElement && (r = s.el.querySelector(a.el)), !r && typeof a.el == "string") {
|
|
139
|
-
if (r = y.querySelectorAll(a.el), !r.length) return;
|
|
140
|
-
} else r || (r = a.el);
|
|
141
|
-
s.params.uniqueNavElements && typeof a.el == "string" && r.length > 1 && e.querySelectorAll(a.el).length === 1 && (r = e.querySelector(a.el)), r.length > 0 && (r = r[0]), r.classList.add(s.isHorizontal() ? a.horizontalClass : a.verticalClass);
|
|
142
|
-
let t;
|
|
143
|
-
r && (t = r.querySelector(U(s.params.scrollbar.dragClass)), t || (t = j("div", s.params.scrollbar.dragClass), r.append(t))), Object.assign(l, {
|
|
144
|
-
el: r,
|
|
145
|
-
dragEl: t
|
|
146
|
-
}), a.draggable && $(), r && r.classList[s.enabled ? "remove" : "add"](...d(s.params.scrollbar.lockClass));
|
|
147
|
-
}
|
|
148
|
-
function C() {
|
|
149
|
-
const l = s.params.scrollbar, e = s.scrollbar.el;
|
|
150
|
-
e && e.classList.remove(...d(s.isHorizontal() ? l.horizontalClass : l.verticalClass)), q();
|
|
151
|
-
}
|
|
152
|
-
f("changeDirection", () => {
|
|
153
|
-
if (!s.scrollbar || !s.scrollbar.el) return;
|
|
154
|
-
const l = s.params.scrollbar;
|
|
155
|
-
let {
|
|
156
|
-
el: e
|
|
157
|
-
} = s.scrollbar;
|
|
158
|
-
e = I(e), e.forEach((a) => {
|
|
159
|
-
a.classList.remove(l.horizontalClass, l.verticalClass), a.classList.add(s.isHorizontal() ? l.horizontalClass : l.verticalClass);
|
|
160
|
-
});
|
|
161
|
-
}), f("init", () => {
|
|
162
|
-
s.params.scrollbar.enabled === !1 ? L() : (z(), u(), m());
|
|
163
|
-
}), f("update resize observerUpdate lock unlock changeDirection", () => {
|
|
164
|
-
u();
|
|
165
|
-
}), f("setTranslate", () => {
|
|
166
|
-
m();
|
|
167
|
-
}), f("setTransition", (l, e) => {
|
|
168
|
-
H(e);
|
|
169
|
-
}), f("enable disable", () => {
|
|
170
|
-
const {
|
|
171
|
-
el: l
|
|
172
|
-
} = s.scrollbar;
|
|
173
|
-
l && l.classList[s.enabled ? "remove" : "add"](...d(s.params.scrollbar.lockClass));
|
|
174
|
-
}), f("destroy", () => {
|
|
175
|
-
C();
|
|
176
|
-
});
|
|
177
|
-
const A = () => {
|
|
178
|
-
s.el.classList.remove(...d(s.params.scrollbar.scrollbarDisabledClass)), s.scrollbar.el && s.scrollbar.el.classList.remove(...d(s.params.scrollbar.scrollbarDisabledClass)), z(), u(), m();
|
|
179
|
-
}, L = () => {
|
|
180
|
-
s.el.classList.add(...d(s.params.scrollbar.scrollbarDisabledClass)), s.scrollbar.el && s.scrollbar.el.classList.add(...d(s.params.scrollbar.scrollbarDisabledClass)), C();
|
|
181
|
-
};
|
|
182
|
-
Object.assign(s.scrollbar, {
|
|
183
|
-
enable: A,
|
|
184
|
-
disable: L,
|
|
185
|
-
updateSize: u,
|
|
186
|
-
setTranslate: m,
|
|
187
|
-
init: z,
|
|
188
|
-
destroy: C
|
|
189
|
-
});
|
|
1
|
+
import { useRef as c } from "react";
|
|
2
|
+
function o(e, t) {
|
|
3
|
+
let r = c(null);
|
|
4
|
+
return e && r.current && t(e, r.current) && (e = r.current), r.current = e, e;
|
|
190
5
|
}
|
|
191
6
|
export {
|
|
192
|
-
|
|
7
|
+
o as useDeepMemo
|
|
193
8
|
};
|
package/index204.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index328.js"),w=require("./index174.js"),m=require("./index337.js");require("react");let d=null,L=new Set,u=new Map,a=!1,s=!1;function c(e,n){for(let t of L)t(e,n)}function y(e){return!(e.metaKey||!w.isMac()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function f(e){a=!0,y(e)&&(d="keyboard",c("keyboard",e))}function o(e){d="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(a=!0,c("pointer",e))}function l(e){m.isVirtualClick(e)&&(a=!0,d="virtual")}function b(e){e.target===window||e.target===document||(!a&&!s&&(d="virtual",c("virtual",e)),a=!1,s=!1)}function $(){a=!1,s=!0}function v(e){if(typeof window>"u"||u.get(i.getOwnerWindow(e)))return;const n=i.getOwnerWindow(e),t=i.getOwnerDocument(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){a=!0,r.apply(this,arguments)},t.addEventListener("keydown",f,!0),t.addEventListener("keyup",f,!0),t.addEventListener("click",l,!0),n.addEventListener("focus",b,!0),n.addEventListener("blur",$,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",o,!0),t.addEventListener("pointermove",o,!0),t.addEventListener("pointerup",o,!0)):(t.addEventListener("mousedown",o,!0),t.addEventListener("mousemove",o,!0),t.addEventListener("mouseup",o,!0)),n.addEventListener("beforeunload",()=>{p(e)},{once:!0}),u.set(n,{focus:r})}const p=(e,n)=>{const t=i.getOwnerWindow(e),r=i.getOwnerDocument(e);n&&r.removeEventListener("DOMContentLoaded",n),u.has(t)&&(t.HTMLElement.prototype.focus=u.get(t).focus,r.removeEventListener("keydown",f,!0),r.removeEventListener("keyup",f,!0),r.removeEventListener("click",l,!0),t.removeEventListener("focus",b,!0),t.removeEventListener("blur",$,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",o,!0),r.removeEventListener("pointermove",o,!0),r.removeEventListener("pointerup",o,!0)):(r.removeEventListener("mousedown",o,!0),r.removeEventListener("mousemove",o,!0),r.removeEventListener("mouseup",o,!0)),u.delete(t))};function E(e){const n=i.getOwnerDocument(e);let t;return n.readyState!=="loading"?v(e):(t=()=>{v(e)},n.addEventListener("DOMContentLoaded",t)),()=>p(e,t)}typeof document<"u"&&E();function g(){return d}function k(e){d=e,c(e,null)}exports.addWindowFocusTracking=E;exports.getInteractionModality=g;exports.hasSetupGlobalListeners=u;exports.setInteractionModality=k;
|
package/index204.mjs
CHANGED
|
@@ -1,72 +1,64 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
isElement: p
|
|
40
|
-
} = t, a = h(e, d);
|
|
41
|
-
t.isElement && a.push(...h(t.hostEl, d)), a.forEach((r) => {
|
|
42
|
-
m(r, n);
|
|
43
|
-
}), l.forEach((r, o) => {
|
|
44
|
-
let s = r.progress;
|
|
45
|
-
t.params.slidesPerGroup > 1 && t.params.slidesPerView !== "auto" && (s += Math.ceil(o / 2) - n * (i.length - 1)), s = Math.min(Math.max(s, -1), 1), r.querySelectorAll(`${d}, [data-swiper-parallax-rotate]`).forEach((c) => {
|
|
46
|
-
m(c, s);
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
}, A = function(e) {
|
|
50
|
-
e === void 0 && (e = t.params.speed);
|
|
51
|
-
const {
|
|
52
|
-
el: l,
|
|
53
|
-
hostEl: n
|
|
54
|
-
} = t, i = [...l.querySelectorAll(d)];
|
|
55
|
-
t.isElement && i.push(...n.querySelectorAll(d)), i.forEach((p) => {
|
|
56
|
-
let a = parseInt(p.getAttribute("data-swiper-parallax-duration"), 10) || e;
|
|
57
|
-
e === 0 && (a = 0), p.style.transitionDuration = `${a}ms`;
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
u("beforeInit", () => {
|
|
61
|
-
t.params.parallax.enabled && (t.params.watchSlidesProgress = !0, t.originalParams.watchSlidesProgress = !0);
|
|
62
|
-
}), u("init", () => {
|
|
63
|
-
t.params.parallax.enabled && w();
|
|
64
|
-
}), u("setTranslate", () => {
|
|
65
|
-
t.params.parallax.enabled && w();
|
|
66
|
-
}), u("setTransition", (e, l) => {
|
|
67
|
-
t.params.parallax.enabled && A(l);
|
|
1
|
+
import { getOwnerDocument as v, getOwnerWindow as s } from "./index328.mjs";
|
|
2
|
+
import { isMac as m } from "./index174.mjs";
|
|
3
|
+
import { isVirtualClick as L } from "./index337.mjs";
|
|
4
|
+
import "react";
|
|
5
|
+
let f = null, y = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = !1, c = !1;
|
|
6
|
+
function u(e, n) {
|
|
7
|
+
for (let t of y) t(e, n);
|
|
8
|
+
}
|
|
9
|
+
function w(e) {
|
|
10
|
+
return !(e.metaKey || !m() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
11
|
+
}
|
|
12
|
+
function d(e) {
|
|
13
|
+
a = !0, w(e) && (f = "keyboard", u("keyboard", e));
|
|
14
|
+
}
|
|
15
|
+
function o(e) {
|
|
16
|
+
f = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (a = !0, u("pointer", e));
|
|
17
|
+
}
|
|
18
|
+
function b(e) {
|
|
19
|
+
L(e) && (a = !0, f = "virtual");
|
|
20
|
+
}
|
|
21
|
+
function l(e) {
|
|
22
|
+
e.target === window || e.target === document || (!a && !c && (f = "virtual", u("virtual", e)), a = !1, c = !1);
|
|
23
|
+
}
|
|
24
|
+
function p() {
|
|
25
|
+
a = !1, c = !0;
|
|
26
|
+
}
|
|
27
|
+
function $(e) {
|
|
28
|
+
if (typeof window > "u" || i.get(s(e))) return;
|
|
29
|
+
const n = s(e), t = v(e);
|
|
30
|
+
let r = n.HTMLElement.prototype.focus;
|
|
31
|
+
n.HTMLElement.prototype.focus = function() {
|
|
32
|
+
a = !0, r.apply(this, arguments);
|
|
33
|
+
}, t.addEventListener("keydown", d, !0), t.addEventListener("keyup", d, !0), t.addEventListener("click", b, !0), n.addEventListener("focus", l, !0), n.addEventListener("blur", p, !1), typeof PointerEvent < "u" ? (t.addEventListener("pointerdown", o, !0), t.addEventListener("pointermove", o, !0), t.addEventListener("pointerup", o, !0)) : (t.addEventListener("mousedown", o, !0), t.addEventListener("mousemove", o, !0), t.addEventListener("mouseup", o, !0)), n.addEventListener("beforeunload", () => {
|
|
34
|
+
E(e);
|
|
35
|
+
}, {
|
|
36
|
+
once: !0
|
|
37
|
+
}), i.set(n, {
|
|
38
|
+
focus: r
|
|
68
39
|
});
|
|
69
40
|
}
|
|
41
|
+
const E = (e, n) => {
|
|
42
|
+
const t = s(e), r = v(e);
|
|
43
|
+
n && r.removeEventListener("DOMContentLoaded", n), i.has(t) && (t.HTMLElement.prototype.focus = i.get(t).focus, r.removeEventListener("keydown", d, !0), r.removeEventListener("keyup", d, !0), r.removeEventListener("click", b, !0), t.removeEventListener("focus", l, !0), t.removeEventListener("blur", p, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", o, !0), r.removeEventListener("pointermove", o, !0), r.removeEventListener("pointerup", o, !0)) : (r.removeEventListener("mousedown", o, !0), r.removeEventListener("mousemove", o, !0), r.removeEventListener("mouseup", o, !0)), i.delete(t));
|
|
44
|
+
};
|
|
45
|
+
function g(e) {
|
|
46
|
+
const n = v(e);
|
|
47
|
+
let t;
|
|
48
|
+
return n.readyState !== "loading" ? $(e) : (t = () => {
|
|
49
|
+
$(e);
|
|
50
|
+
}, n.addEventListener("DOMContentLoaded", t)), () => E(e, t);
|
|
51
|
+
}
|
|
52
|
+
typeof document < "u" && g();
|
|
53
|
+
function O() {
|
|
54
|
+
return f;
|
|
55
|
+
}
|
|
56
|
+
function C(e) {
|
|
57
|
+
f = e, u(e, null);
|
|
58
|
+
}
|
|
70
59
|
export {
|
|
71
|
-
g as
|
|
60
|
+
g as addWindowFocusTracking,
|
|
61
|
+
O as getInteractionModality,
|
|
62
|
+
i as hasSetupGlobalListeners,
|
|
63
|
+
C as setInteractionModality
|
|
72
64
|
};
|