@ilo-org/react 0.26.0 → 0.27.0
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/README.md +0 -1
- package/lib/cjs/_store/AudioPlayer-chunk-BgWE3wR1.js +1 -0
- package/lib/cjs/_store/AudioPlayer-entry-DUimYc-F.js +1 -0
- package/lib/cjs/_store/{Button-chunk-C95z7yOh.js → Button-chunk-i7Mx1CWw.js} +1 -1
- package/lib/cjs/_store/{Button-entry-DGNgY--m.js → Button-entry-B6i_56pN.js} +1 -1
- package/lib/cjs/_store/{Callout-chunk-CQ5xMM1i.js → Callout-chunk-D0qGb3NA.js} +1 -1
- package/lib/cjs/_store/{Callout-entry-CgI45lFQ.js → Callout-entry-B9JKkfjT.js} +1 -1
- package/lib/cjs/_store/CardGroup-chunk-CRgPaqdt.js +1 -0
- package/lib/cjs/_store/{Cards-entry-BMWtv2f-.js → Cards-entry-C6nZgRnw.js} +1 -1
- package/lib/cjs/_store/{Footer-chunk-DhwHRSuP.js → Footer-chunk-F6FWK20F.js} +1 -1
- package/lib/cjs/_store/{Footer-entry-BiwzSfZm.js → Footer-entry-B0EMXAZe.js} +1 -1
- package/lib/cjs/_store/{Icon-chunk-DHrneVoo.js → Icon-chunk-BzII57By.js} +1 -1
- package/lib/cjs/_store/{Icon-entry-DyS-xIbf.js → Icon-entry-Cqw6gQ6f.js} +1 -1
- package/lib/cjs/_store/{MainNav-chunk-uiXSehRt.js → MainNav-chunk-7kTe_YZl.js} +1 -1
- package/lib/cjs/_store/{Nav-entry-CQ65AlBh.js → Nav-entry-DExtgUq0.js} +1 -1
- package/lib/cjs/_store/{Notification-chunk-CAX-6JsZ.js → Notification-chunk-CWlncrg0.js} +1 -1
- package/lib/cjs/_store/{Notification-entry-SYTjGRZ_.js → Notification-entry-AczbFeuC.js} +1 -1
- package/lib/cjs/_store/PhotoGallery-entry-oG4Az7b5.js +1 -0
- package/lib/cjs/_store/{Profile-chunk-Bd8UJQPz.js → Profile-chunk-DGzYI2Ij.js} +1 -1
- package/lib/cjs/_store/{Profile-entry-CLUsTNmL.js → Profile-entry-CyGRHY4H.js} +1 -1
- package/lib/cjs/_store/{SearchField-chunk-Bc-WiEPz.js → SearchField-chunk-C8dCtv7o.js} +1 -1
- package/lib/cjs/_store/{SearchField-entry-ClyaljSb.js → SearchField-entry-iFWSYkgV.js} +1 -1
- package/lib/cjs/_store/{Tabs-chunk-Bk_Z-Qlz.js → Tabs-chunk-_l0V0Dy0.js} +1 -1
- package/lib/cjs/_store/{Tabs-entry-KnBadJ9n.js → Tabs-entry-Cf1mUwmV.js} +1 -1
- package/lib/cjs/_store/Tag-chunk-DesRph1K.js +1 -0
- package/lib/cjs/_store/{Tag-entry-7jDcXl9v.js → Tag-entry-ubHQAH--.js} +1 -1
- package/lib/cjs/_store/components-entry-ChGq9Mfa.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/esm/_store/AudioPlayer-chunk-C1ILnjha.js +194 -0
- package/lib/esm/_store/AudioPlayer-entry-DihoEAxT.js +4 -0
- package/lib/esm/_store/{Button-chunk-Ccbxfwbf.js → Button-chunk-8dLLhQX7.js} +1 -1
- package/lib/esm/_store/Button-entry--gNnIOMu.js +4 -0
- package/lib/esm/_store/{Callout-chunk-lXbe2cTI.js → Callout-chunk-DwVsxKc9.js} +1 -1
- package/lib/esm/_store/Callout-entry-Be1qqjRK.js +4 -0
- package/lib/esm/_store/CardGroup-chunk-BtxfvFrZ.js +825 -0
- package/lib/esm/_store/{Cards-entry-BzkuEjVm.js → Cards-entry-B87QD-XE.js} +1 -1
- package/lib/esm/_store/{Footer-chunk-Cs4S0fL1.js → Footer-chunk-DIcYIPfY.js} +1 -1
- package/lib/esm/_store/Footer-entry-7mEwDfWZ.js +4 -0
- package/lib/esm/_store/{Icon-chunk-B3pcCi1Q.js → Icon-chunk-vcBEV-Wk.js} +702 -701
- package/lib/esm/_store/Icon-entry-DdsYgI2S.js +4 -0
- package/lib/esm/_store/{MainNav-chunk-DrgCIgDB.js → MainNav-chunk-Be68xvpH.js} +1 -1
- package/lib/esm/_store/Nav-entry-Cvh13_5P.js +5 -0
- package/lib/esm/_store/{Notification-chunk-B_ca8Swd.js → Notification-chunk-ChtPyASj.js} +1 -1
- package/lib/esm/_store/Notification-entry-BWJ8Jj_L.js +4 -0
- package/lib/esm/_store/PhotoGallery-entry-DzssiE2H.js +1685 -0
- package/lib/esm/_store/{Profile-chunk-BTvSWyom.js → Profile-chunk-S7Qd4zNr.js} +1 -1
- package/lib/esm/_store/Profile-entry-BaZd_1MC.js +4 -0
- package/lib/esm/_store/{SearchField-chunk-CZ2F5vv2.js → SearchField-chunk-662yU8Z7.js} +1 -1
- package/lib/esm/_store/SearchField-entry-Dbp8Z4ak.js +4 -0
- package/lib/esm/_store/{Tabs-chunk-CiBKN1wK.js → Tabs-chunk-rSUtyafl.js} +1 -1
- package/lib/esm/_store/Tabs-entry-Dus4wyx1.js +4 -0
- package/lib/esm/_store/Tag-chunk-BgilM5Hj.js +59 -0
- package/lib/esm/_store/{Tag-entry-CnUfb7ow.js → Tag-entry-CzbjOVIK.js} +2 -2
- package/lib/esm/_store/{components-entry-DlfoU4Sn.js → components-entry-BtxPnvKg.js} +37 -35
- package/lib/esm/index.js +44 -42
- package/lib/styles/components/accordion.css +1 -1
- package/lib/styles/components/audioplayer.css +1 -0
- package/lib/styles/components/blockquote.css +1 -1
- package/lib/styles/components/breadcrumb.css +1 -1
- package/lib/styles/components/button.css +1 -1
- package/lib/styles/components/callout.css +1 -1
- package/lib/styles/components/card.css +1 -1
- package/lib/styles/components/cardgroup.css +1 -1
- package/lib/styles/components/checkbox.css +1 -1
- package/lib/styles/components/container.css +1 -1
- package/lib/styles/components/contextmenu.css +1 -1
- package/lib/styles/components/datacard.css +1 -1
- package/lib/styles/components/datepicker.css +1 -1
- package/lib/styles/components/detailcard.css +1 -1
- package/lib/styles/components/dropdown.css +1 -1
- package/lib/styles/components/empty.css +1 -1
- package/lib/styles/components/factlistcard.css +1 -1
- package/lib/styles/components/featurecard.css +1 -1
- package/lib/styles/components/fieldset.css +1 -1
- package/lib/styles/components/file-upload.css +1 -1
- package/lib/styles/components/footer.css +1 -1
- package/lib/styles/components/form.css +1 -1
- package/lib/styles/components/formcontrol.css +1 -1
- package/lib/styles/components/hero.css +1 -1
- package/lib/styles/components/herocard.css +1 -1
- package/lib/styles/components/image.css +1 -1
- package/lib/styles/components/input.css +1 -1
- package/lib/styles/components/languagetoggle.css +1 -1
- package/lib/styles/components/link.css +1 -1
- package/lib/styles/components/linklist.css +1 -1
- package/lib/styles/components/list.css +1 -1
- package/lib/styles/components/loading.css +1 -1
- package/lib/styles/components/logogrid.css +1 -1
- package/lib/styles/components/modal.css +1 -1
- package/lib/styles/components/multilinkcard.css +1 -1
- package/lib/styles/components/navigation.css +1 -1
- package/lib/styles/components/notification.css +1 -1
- package/lib/styles/components/pagination.css +1 -1
- package/lib/styles/components/profile.css +1 -1
- package/lib/styles/components/promocard.css +1 -1
- package/lib/styles/components/radio.css +1 -1
- package/lib/styles/components/readmore.css +1 -1
- package/lib/styles/components/richtext.css +1 -1
- package/lib/styles/components/scorecard.css +1 -1
- package/lib/styles/components/searchfield.css +1 -1
- package/lib/styles/components/socialmedia.css +1 -1
- package/lib/styles/components/statcard.css +1 -1
- package/lib/styles/components/status.css +1 -1
- package/lib/styles/components/table.css +1 -1
- package/lib/styles/components/tableofcontents.css +1 -1
- package/lib/styles/components/tabs.css +1 -1
- package/lib/styles/components/tag.css +1 -1
- package/lib/styles/components/textarea.css +1 -1
- package/lib/styles/components/textcard.css +1 -1
- package/lib/styles/components/textinput.css +1 -1
- package/lib/styles/components/toggle.css +1 -1
- package/lib/styles/components/tooltip.css +1 -1
- package/lib/styles/components/video.css +1 -1
- package/lib/styles/global.css +1 -1
- package/lib/styles/global.css.map +1 -1
- package/lib/styles/index.css +3 -3
- package/lib/styles/index.css.map +1 -1
- package/lib/styles/monorepo.css +3 -3
- package/lib/styles/monorepo.css.map +1 -1
- package/lib/types/components/AudioPlayer/AudioPlayer.d.ts +27 -0
- package/lib/types/components/AudioPlayer/index.d.ts +1 -0
- package/lib/types/components/PhotoGallery/ExpandableCaption.d.ts +9 -0
- package/lib/types/components/PhotoGallery/LightBox.d.ts +9 -0
- package/lib/types/components/PhotoGallery/LightBoxGallery.d.ts +10 -0
- package/lib/types/components/PhotoGallery/PhotoGallery.d.ts +21 -0
- package/lib/types/components/PhotoGallery/PhotoGalleryControls.d.ts +25 -0
- package/lib/types/components/PhotoGallery/PhotoGalleryThumbnails.d.ts +11 -0
- package/lib/types/components/PhotoGallery/index.d.ts +1 -0
- package/lib/types/components/index.d.ts +1 -0
- package/package.json +6 -6
- package/lib/cjs/_store/CardGroup-chunk-CWotQqws.js +0 -1
- package/lib/cjs/_store/Tag-chunk-BlwQ9fNn.js +0 -1
- package/lib/cjs/_store/components-entry-XOyyQZvk.js +0 -1
- package/lib/esm/_store/Button-entry-a2836eCG.js +0 -4
- package/lib/esm/_store/Callout-entry-CqbJtAcP.js +0 -4
- package/lib/esm/_store/CardGroup-chunk-CDiL5eWl.js +0 -798
- package/lib/esm/_store/Footer-entry-DSntq8ti.js +0 -4
- package/lib/esm/_store/Icon-entry-CrclgMhq.js +0 -4
- package/lib/esm/_store/Nav-entry-CIRUo3IY.js +0 -5
- package/lib/esm/_store/Notification-entry-DLSFiH_T.js +0 -4
- package/lib/esm/_store/Profile-entry-CfUKvpwQ.js +0 -4
- package/lib/esm/_store/SearchField-entry-BjJ0zp2R.js +0 -4
- package/lib/esm/_store/Tabs-entry-DViSSd6j.js +0 -4
- package/lib/esm/_store/Tag-chunk-Dl2zXTQ8.js +0 -68
|
@@ -0,0 +1,1685 @@
|
|
|
1
|
+
import { jsx as v, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as Nt, useState as ot, useCallback as ut, useEffect as K, useId as mn } from "react";
|
|
3
|
+
import { u as ft } from "./useGlobalSettings-chunk-BhfWlTcd.js";
|
|
4
|
+
import { c as q } from "./index-chunk-CY3PQDr4.js";
|
|
5
|
+
import { I as hn } from "./Image-chunk-Dls4dbsF.js";
|
|
6
|
+
import { createPortal as gn } from "react-dom";
|
|
7
|
+
import { u as bn } from "./useFocusTrap-chunk-YNgJEwcj.js";
|
|
8
|
+
import { I as Ot } from "./Icon-chunk-vcBEV-Wk.js";
|
|
9
|
+
function yn(t) {
|
|
10
|
+
return Object.prototype.toString.call(t) === "[object Object]";
|
|
11
|
+
}
|
|
12
|
+
function Qt(t) {
|
|
13
|
+
return yn(t) || Array.isArray(t);
|
|
14
|
+
}
|
|
15
|
+
function xn() {
|
|
16
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
17
|
+
}
|
|
18
|
+
function Ft(t, n) {
|
|
19
|
+
const i = Object.keys(t), r = Object.keys(n);
|
|
20
|
+
if (i.length !== r.length) return !1;
|
|
21
|
+
const c = JSON.stringify(Object.keys(t.breakpoints || {})), s = JSON.stringify(Object.keys(n.breakpoints || {}));
|
|
22
|
+
return c !== s ? !1 : i.every((e) => {
|
|
23
|
+
const a = t[e], o = n[e];
|
|
24
|
+
return typeof a == "function" ? `${a}` == `${o}` : !Qt(a) || !Qt(o) ? a === o : Ft(a, o);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function Jt(t) {
|
|
28
|
+
return t.concat().sort((n, i) => n.name > i.name ? 1 : -1).map((n) => n.options);
|
|
29
|
+
}
|
|
30
|
+
function _n(t, n) {
|
|
31
|
+
if (t.length !== n.length) return !1;
|
|
32
|
+
const i = Jt(t), r = Jt(n);
|
|
33
|
+
return i.every((c, s) => {
|
|
34
|
+
const e = r[s];
|
|
35
|
+
return Ft(c, e);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function Bt(t) {
|
|
39
|
+
return typeof t == "number";
|
|
40
|
+
}
|
|
41
|
+
function Pt(t) {
|
|
42
|
+
return typeof t == "string";
|
|
43
|
+
}
|
|
44
|
+
function Lt(t) {
|
|
45
|
+
return typeof t == "boolean";
|
|
46
|
+
}
|
|
47
|
+
function Xt(t) {
|
|
48
|
+
return Object.prototype.toString.call(t) === "[object Object]";
|
|
49
|
+
}
|
|
50
|
+
function P(t) {
|
|
51
|
+
return Math.abs(t);
|
|
52
|
+
}
|
|
53
|
+
function Mt(t) {
|
|
54
|
+
return Math.sign(t);
|
|
55
|
+
}
|
|
56
|
+
function bt(t, n) {
|
|
57
|
+
return P(t - n);
|
|
58
|
+
}
|
|
59
|
+
function vn(t, n) {
|
|
60
|
+
if (t === 0 || n === 0 || P(t) <= P(n)) return 0;
|
|
61
|
+
const i = bt(P(t), P(n));
|
|
62
|
+
return P(i / t);
|
|
63
|
+
}
|
|
64
|
+
function Sn(t) {
|
|
65
|
+
return Math.round(t * 100) / 100;
|
|
66
|
+
}
|
|
67
|
+
function yt(t) {
|
|
68
|
+
return xt(t).map(Number);
|
|
69
|
+
}
|
|
70
|
+
function j(t) {
|
|
71
|
+
return t[vt(t)];
|
|
72
|
+
}
|
|
73
|
+
function vt(t) {
|
|
74
|
+
return Math.max(0, t.length - 1);
|
|
75
|
+
}
|
|
76
|
+
function At(t, n) {
|
|
77
|
+
return n === vt(t);
|
|
78
|
+
}
|
|
79
|
+
function Yt(t, n = 0) {
|
|
80
|
+
return Array.from(Array(t), (i, r) => n + r);
|
|
81
|
+
}
|
|
82
|
+
function xt(t) {
|
|
83
|
+
return Object.keys(t);
|
|
84
|
+
}
|
|
85
|
+
function Zt(t, n) {
|
|
86
|
+
return [t, n].reduce((i, r) => (xt(r).forEach((c) => {
|
|
87
|
+
const s = i[c], e = r[c], a = Xt(s) && Xt(e);
|
|
88
|
+
i[c] = a ? Zt(s, e) : e;
|
|
89
|
+
}), i), {});
|
|
90
|
+
}
|
|
91
|
+
function wt(t, n) {
|
|
92
|
+
return typeof n.MouseEvent < "u" && t instanceof n.MouseEvent;
|
|
93
|
+
}
|
|
94
|
+
function Nn(t, n) {
|
|
95
|
+
const i = {
|
|
96
|
+
start: r,
|
|
97
|
+
center: c,
|
|
98
|
+
end: s
|
|
99
|
+
};
|
|
100
|
+
function r() {
|
|
101
|
+
return 0;
|
|
102
|
+
}
|
|
103
|
+
function c(o) {
|
|
104
|
+
return s(o) / 2;
|
|
105
|
+
}
|
|
106
|
+
function s(o) {
|
|
107
|
+
return n - o;
|
|
108
|
+
}
|
|
109
|
+
function e(o, u) {
|
|
110
|
+
return Pt(t) ? i[t](o) : t(n, o, u);
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
measure: e
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
function _t() {
|
|
117
|
+
let t = [];
|
|
118
|
+
function n(c, s, e, a = {
|
|
119
|
+
passive: !0
|
|
120
|
+
}) {
|
|
121
|
+
let o;
|
|
122
|
+
if ("addEventListener" in c)
|
|
123
|
+
c.addEventListener(s, e, a), o = () => c.removeEventListener(s, e, a);
|
|
124
|
+
else {
|
|
125
|
+
const u = c;
|
|
126
|
+
u.addListener(e), o = () => u.removeListener(e);
|
|
127
|
+
}
|
|
128
|
+
return t.push(o), r;
|
|
129
|
+
}
|
|
130
|
+
function i() {
|
|
131
|
+
t = t.filter((c) => c());
|
|
132
|
+
}
|
|
133
|
+
const r = {
|
|
134
|
+
add: n,
|
|
135
|
+
clear: i
|
|
136
|
+
};
|
|
137
|
+
return r;
|
|
138
|
+
}
|
|
139
|
+
function Cn(t, n, i, r) {
|
|
140
|
+
const c = _t(), s = 1e3 / 60;
|
|
141
|
+
let e = null, a = 0, o = 0;
|
|
142
|
+
function u() {
|
|
143
|
+
c.add(t, "visibilitychange", () => {
|
|
144
|
+
t.hidden && d();
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
function h() {
|
|
148
|
+
g(), c.clear();
|
|
149
|
+
}
|
|
150
|
+
function l(y) {
|
|
151
|
+
if (!o) return;
|
|
152
|
+
e || (e = y, i(), i());
|
|
153
|
+
const p = y - e;
|
|
154
|
+
for (e = y, a += p; a >= s; )
|
|
155
|
+
i(), a -= s;
|
|
156
|
+
const x = a / s;
|
|
157
|
+
r(x), o && (o = n.requestAnimationFrame(l));
|
|
158
|
+
}
|
|
159
|
+
function f() {
|
|
160
|
+
o || (o = n.requestAnimationFrame(l));
|
|
161
|
+
}
|
|
162
|
+
function g() {
|
|
163
|
+
n.cancelAnimationFrame(o), e = null, a = 0, o = 0;
|
|
164
|
+
}
|
|
165
|
+
function d() {
|
|
166
|
+
e = null, a = 0;
|
|
167
|
+
}
|
|
168
|
+
return {
|
|
169
|
+
init: u,
|
|
170
|
+
destroy: h,
|
|
171
|
+
start: f,
|
|
172
|
+
stop: g,
|
|
173
|
+
update: i,
|
|
174
|
+
render: r
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
function Ln(t, n) {
|
|
178
|
+
const i = n === "rtl", r = t === "y", c = r ? "y" : "x", s = r ? "x" : "y", e = !r && i ? -1 : 1, a = h(), o = l();
|
|
179
|
+
function u(d) {
|
|
180
|
+
const {
|
|
181
|
+
height: m,
|
|
182
|
+
width: y
|
|
183
|
+
} = d;
|
|
184
|
+
return r ? m : y;
|
|
185
|
+
}
|
|
186
|
+
function h() {
|
|
187
|
+
return r ? "top" : i ? "right" : "left";
|
|
188
|
+
}
|
|
189
|
+
function l() {
|
|
190
|
+
return r ? "bottom" : i ? "left" : "right";
|
|
191
|
+
}
|
|
192
|
+
function f(d) {
|
|
193
|
+
return d * e;
|
|
194
|
+
}
|
|
195
|
+
return {
|
|
196
|
+
scroll: c,
|
|
197
|
+
cross: s,
|
|
198
|
+
startEdge: a,
|
|
199
|
+
endEdge: o,
|
|
200
|
+
measureSize: u,
|
|
201
|
+
direction: f
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
function st(t = 0, n = 0) {
|
|
205
|
+
const i = P(t - n);
|
|
206
|
+
function r(u) {
|
|
207
|
+
return u < t;
|
|
208
|
+
}
|
|
209
|
+
function c(u) {
|
|
210
|
+
return u > n;
|
|
211
|
+
}
|
|
212
|
+
function s(u) {
|
|
213
|
+
return r(u) || c(u);
|
|
214
|
+
}
|
|
215
|
+
function e(u) {
|
|
216
|
+
return s(u) ? r(u) ? t : n : u;
|
|
217
|
+
}
|
|
218
|
+
function a(u) {
|
|
219
|
+
return i ? u - i * Math.ceil((u - n) / i) : u;
|
|
220
|
+
}
|
|
221
|
+
return {
|
|
222
|
+
length: i,
|
|
223
|
+
max: n,
|
|
224
|
+
min: t,
|
|
225
|
+
constrain: e,
|
|
226
|
+
reachedAny: s,
|
|
227
|
+
reachedMax: c,
|
|
228
|
+
reachedMin: r,
|
|
229
|
+
removeOffset: a
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
function Wt(t, n, i) {
|
|
233
|
+
const {
|
|
234
|
+
constrain: r
|
|
235
|
+
} = st(0, t), c = t + 1;
|
|
236
|
+
let s = e(n);
|
|
237
|
+
function e(f) {
|
|
238
|
+
return i ? P((c + f) % c) : r(f);
|
|
239
|
+
}
|
|
240
|
+
function a() {
|
|
241
|
+
return s;
|
|
242
|
+
}
|
|
243
|
+
function o(f) {
|
|
244
|
+
return s = e(f), l;
|
|
245
|
+
}
|
|
246
|
+
function u(f) {
|
|
247
|
+
return h().set(a() + f);
|
|
248
|
+
}
|
|
249
|
+
function h() {
|
|
250
|
+
return Wt(t, a(), i);
|
|
251
|
+
}
|
|
252
|
+
const l = {
|
|
253
|
+
get: a,
|
|
254
|
+
set: o,
|
|
255
|
+
add: u,
|
|
256
|
+
clone: h
|
|
257
|
+
};
|
|
258
|
+
return l;
|
|
259
|
+
}
|
|
260
|
+
function $n(t, n, i, r, c, s, e, a, o, u, h, l, f, g, d, m, y, p, x) {
|
|
261
|
+
const {
|
|
262
|
+
cross: b,
|
|
263
|
+
direction: S
|
|
264
|
+
} = t, I = ["INPUT", "SELECT", "TEXTAREA"], L = {
|
|
265
|
+
passive: !1
|
|
266
|
+
}, N = _t(), C = _t(), $ = st(50, 225).constrain(g.measure(20)), w = {
|
|
267
|
+
mouse: 300,
|
|
268
|
+
touch: 400
|
|
269
|
+
}, E = {
|
|
270
|
+
mouse: 500,
|
|
271
|
+
touch: 600
|
|
272
|
+
}, M = d ? 43 : 25;
|
|
273
|
+
let V = !1, G = 0, R = 0, nt = !1, W = !1, Q = !1, J = !1;
|
|
274
|
+
function dt(_) {
|
|
275
|
+
if (!x) return;
|
|
276
|
+
function k(F) {
|
|
277
|
+
(Lt(x) || x(_, F)) && mt(F);
|
|
278
|
+
}
|
|
279
|
+
const D = n;
|
|
280
|
+
N.add(D, "dragstart", (F) => F.preventDefault(), L).add(D, "touchmove", () => {
|
|
281
|
+
}, L).add(D, "touchend", () => {
|
|
282
|
+
}).add(D, "touchstart", k).add(D, "mousedown", k).add(D, "touchcancel", O).add(D, "contextmenu", O).add(D, "click", Y, !0);
|
|
283
|
+
}
|
|
284
|
+
function H() {
|
|
285
|
+
N.clear(), C.clear();
|
|
286
|
+
}
|
|
287
|
+
function it() {
|
|
288
|
+
const _ = J ? i : n;
|
|
289
|
+
C.add(_, "touchmove", A, L).add(_, "touchend", O).add(_, "mousemove", A, L).add(_, "mouseup", O);
|
|
290
|
+
}
|
|
291
|
+
function ct(_) {
|
|
292
|
+
const k = _.nodeName || "";
|
|
293
|
+
return I.includes(k);
|
|
294
|
+
}
|
|
295
|
+
function X() {
|
|
296
|
+
return (d ? E : w)[J ? "mouse" : "touch"];
|
|
297
|
+
}
|
|
298
|
+
function pt(_, k) {
|
|
299
|
+
const D = l.add(Mt(_) * -1), F = h.byDistance(_, !d).distance;
|
|
300
|
+
return d || P(_) < $ ? F : y && k ? F * 0.5 : h.byIndex(D.get(), 0).distance;
|
|
301
|
+
}
|
|
302
|
+
function mt(_) {
|
|
303
|
+
const k = wt(_, r);
|
|
304
|
+
J = k, Q = d && k && !_.buttons && V, V = bt(c.get(), e.get()) >= 2, !(k && _.button !== 0) && (ct(_.target) || (nt = !0, s.pointerDown(_), u.useFriction(0).useDuration(0), c.set(e), it(), G = s.readPoint(_), R = s.readPoint(_, b), f.emit("pointerDown")));
|
|
305
|
+
}
|
|
306
|
+
function A(_) {
|
|
307
|
+
if (!wt(_, r) && _.touches.length >= 2) return O(_);
|
|
308
|
+
const D = s.readPoint(_), F = s.readPoint(_, b), U = bt(D, G), Z = bt(F, R);
|
|
309
|
+
if (!W && !J && (!_.cancelable || (W = U > Z, !W)))
|
|
310
|
+
return O(_);
|
|
311
|
+
const et = s.pointerMove(_);
|
|
312
|
+
U > m && (Q = !0), u.useFriction(0.3).useDuration(0.75), a.start(), c.add(S(et)), _.preventDefault();
|
|
313
|
+
}
|
|
314
|
+
function O(_) {
|
|
315
|
+
const D = h.byDistance(0, !1).index !== l.get(), F = s.pointerUp(_) * X(), U = pt(S(F), D), Z = vn(F, U), et = M - 10 * Z, tt = p + Z / 50;
|
|
316
|
+
W = !1, nt = !1, C.clear(), u.useDuration(et).useFriction(tt), o.distance(U, !d), J = !1, f.emit("pointerUp");
|
|
317
|
+
}
|
|
318
|
+
function Y(_) {
|
|
319
|
+
Q && (_.stopPropagation(), _.preventDefault(), Q = !1);
|
|
320
|
+
}
|
|
321
|
+
function z() {
|
|
322
|
+
return nt;
|
|
323
|
+
}
|
|
324
|
+
return {
|
|
325
|
+
init: dt,
|
|
326
|
+
destroy: H,
|
|
327
|
+
pointerDown: z
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
function En(t, n) {
|
|
331
|
+
let r, c;
|
|
332
|
+
function s(l) {
|
|
333
|
+
return l.timeStamp;
|
|
334
|
+
}
|
|
335
|
+
function e(l, f) {
|
|
336
|
+
const d = `client${(f || t.scroll) === "x" ? "X" : "Y"}`;
|
|
337
|
+
return (wt(l, n) ? l : l.touches[0])[d];
|
|
338
|
+
}
|
|
339
|
+
function a(l) {
|
|
340
|
+
return r = l, c = l, e(l);
|
|
341
|
+
}
|
|
342
|
+
function o(l) {
|
|
343
|
+
const f = e(l) - e(c), g = s(l) - s(r) > 170;
|
|
344
|
+
return c = l, g && (r = l), f;
|
|
345
|
+
}
|
|
346
|
+
function u(l) {
|
|
347
|
+
if (!r || !c) return 0;
|
|
348
|
+
const f = e(c) - e(r), g = s(l) - s(r), d = s(l) - s(c) > 170, m = f / g;
|
|
349
|
+
return g && !d && P(m) > 0.1 ? m : 0;
|
|
350
|
+
}
|
|
351
|
+
return {
|
|
352
|
+
pointerDown: a,
|
|
353
|
+
pointerMove: o,
|
|
354
|
+
pointerUp: u,
|
|
355
|
+
readPoint: e
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
function kn() {
|
|
359
|
+
function t(i) {
|
|
360
|
+
const {
|
|
361
|
+
offsetTop: r,
|
|
362
|
+
offsetLeft: c,
|
|
363
|
+
offsetWidth: s,
|
|
364
|
+
offsetHeight: e
|
|
365
|
+
} = i;
|
|
366
|
+
return {
|
|
367
|
+
top: r,
|
|
368
|
+
right: c + s,
|
|
369
|
+
bottom: r + e,
|
|
370
|
+
left: c,
|
|
371
|
+
width: s,
|
|
372
|
+
height: e
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
return {
|
|
376
|
+
measure: t
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
function In(t) {
|
|
380
|
+
function n(r) {
|
|
381
|
+
return t * (r / 100);
|
|
382
|
+
}
|
|
383
|
+
return {
|
|
384
|
+
measure: n
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
function Tn(t, n, i, r, c, s, e) {
|
|
388
|
+
const a = [t].concat(r);
|
|
389
|
+
let o, u, h = [], l = !1;
|
|
390
|
+
function f(y) {
|
|
391
|
+
return c.measureSize(e.measure(y));
|
|
392
|
+
}
|
|
393
|
+
function g(y) {
|
|
394
|
+
if (!s) return;
|
|
395
|
+
u = f(t), h = r.map(f);
|
|
396
|
+
function p(x) {
|
|
397
|
+
for (const b of x) {
|
|
398
|
+
if (l) return;
|
|
399
|
+
const S = b.target === t, I = r.indexOf(b.target), L = S ? u : h[I], N = f(S ? t : r[I]);
|
|
400
|
+
if (P(N - L) >= 0.5) {
|
|
401
|
+
y.reInit(), n.emit("resize");
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
o = new ResizeObserver((x) => {
|
|
407
|
+
(Lt(s) || s(y, x)) && p(x);
|
|
408
|
+
}), i.requestAnimationFrame(() => {
|
|
409
|
+
a.forEach((x) => o.observe(x));
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
function d() {
|
|
413
|
+
l = !0, o && o.disconnect();
|
|
414
|
+
}
|
|
415
|
+
return {
|
|
416
|
+
init: g,
|
|
417
|
+
destroy: d
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
function Pn(t, n, i, r, c, s) {
|
|
421
|
+
let e = 0, a = 0, o = c, u = s, h = t.get(), l = 0;
|
|
422
|
+
function f() {
|
|
423
|
+
const L = r.get() - t.get(), N = !o;
|
|
424
|
+
let C = 0;
|
|
425
|
+
return N ? (e = 0, i.set(r), t.set(r), C = L) : (i.set(t), e += L / o, e *= u, h += e, t.add(e), C = h - l), a = Mt(C), l = h, I;
|
|
426
|
+
}
|
|
427
|
+
function g() {
|
|
428
|
+
const L = r.get() - n.get();
|
|
429
|
+
return P(L) < 1e-3;
|
|
430
|
+
}
|
|
431
|
+
function d() {
|
|
432
|
+
return o;
|
|
433
|
+
}
|
|
434
|
+
function m() {
|
|
435
|
+
return a;
|
|
436
|
+
}
|
|
437
|
+
function y() {
|
|
438
|
+
return e;
|
|
439
|
+
}
|
|
440
|
+
function p() {
|
|
441
|
+
return b(c);
|
|
442
|
+
}
|
|
443
|
+
function x() {
|
|
444
|
+
return S(s);
|
|
445
|
+
}
|
|
446
|
+
function b(L) {
|
|
447
|
+
return o = L, I;
|
|
448
|
+
}
|
|
449
|
+
function S(L) {
|
|
450
|
+
return u = L, I;
|
|
451
|
+
}
|
|
452
|
+
const I = {
|
|
453
|
+
direction: m,
|
|
454
|
+
duration: d,
|
|
455
|
+
velocity: y,
|
|
456
|
+
seek: f,
|
|
457
|
+
settled: g,
|
|
458
|
+
useBaseFriction: x,
|
|
459
|
+
useBaseDuration: p,
|
|
460
|
+
useFriction: S,
|
|
461
|
+
useDuration: b
|
|
462
|
+
};
|
|
463
|
+
return I;
|
|
464
|
+
}
|
|
465
|
+
function wn(t, n, i, r, c) {
|
|
466
|
+
const s = c.measure(10), e = c.measure(50), a = st(0.1, 0.99);
|
|
467
|
+
let o = !1;
|
|
468
|
+
function u() {
|
|
469
|
+
return !(o || !t.reachedAny(i.get()) || !t.reachedAny(n.get()));
|
|
470
|
+
}
|
|
471
|
+
function h(g) {
|
|
472
|
+
if (!u()) return;
|
|
473
|
+
const d = t.reachedMin(n.get()) ? "min" : "max", m = P(t[d] - n.get()), y = i.get() - n.get(), p = a.constrain(m / e);
|
|
474
|
+
i.subtract(y * p), !g && P(y) < s && (i.set(t.constrain(i.get())), r.useDuration(25).useBaseFriction());
|
|
475
|
+
}
|
|
476
|
+
function l(g) {
|
|
477
|
+
o = !g;
|
|
478
|
+
}
|
|
479
|
+
return {
|
|
480
|
+
shouldConstrain: u,
|
|
481
|
+
constrain: h,
|
|
482
|
+
toggleActive: l
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
function Dn(t, n, i, r, c) {
|
|
486
|
+
const s = st(-n + t, 0), e = l(), a = h(), o = f();
|
|
487
|
+
function u(d, m) {
|
|
488
|
+
return bt(d, m) <= 1;
|
|
489
|
+
}
|
|
490
|
+
function h() {
|
|
491
|
+
const d = e[0], m = j(e), y = e.lastIndexOf(d), p = e.indexOf(m) + 1;
|
|
492
|
+
return st(y, p);
|
|
493
|
+
}
|
|
494
|
+
function l() {
|
|
495
|
+
return i.map((d, m) => {
|
|
496
|
+
const {
|
|
497
|
+
min: y,
|
|
498
|
+
max: p
|
|
499
|
+
} = s, x = s.constrain(d), b = !m, S = At(i, m);
|
|
500
|
+
return b ? p : S || u(y, x) ? y : u(p, x) ? p : x;
|
|
501
|
+
}).map((d) => parseFloat(d.toFixed(3)));
|
|
502
|
+
}
|
|
503
|
+
function f() {
|
|
504
|
+
if (n <= t + c) return [s.max];
|
|
505
|
+
if (r === "keepSnaps") return e;
|
|
506
|
+
const {
|
|
507
|
+
min: d,
|
|
508
|
+
max: m
|
|
509
|
+
} = a;
|
|
510
|
+
return e.slice(d, m);
|
|
511
|
+
}
|
|
512
|
+
return {
|
|
513
|
+
snapsContained: o,
|
|
514
|
+
scrollContainLimit: a
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
function On(t, n, i) {
|
|
518
|
+
const r = n[0], c = i ? r - t : j(n);
|
|
519
|
+
return {
|
|
520
|
+
limit: st(c, r)
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
function Fn(t, n, i, r) {
|
|
524
|
+
const s = n.min + 0.1, e = n.max + 0.1, {
|
|
525
|
+
reachedMin: a,
|
|
526
|
+
reachedMax: o
|
|
527
|
+
} = st(s, e);
|
|
528
|
+
function u(f) {
|
|
529
|
+
return f === 1 ? o(i.get()) : f === -1 ? a(i.get()) : !1;
|
|
530
|
+
}
|
|
531
|
+
function h(f) {
|
|
532
|
+
if (!u(f)) return;
|
|
533
|
+
const g = t * (f * -1);
|
|
534
|
+
r.forEach((d) => d.add(g));
|
|
535
|
+
}
|
|
536
|
+
return {
|
|
537
|
+
loop: h
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
function Bn(t) {
|
|
541
|
+
const {
|
|
542
|
+
max: n,
|
|
543
|
+
length: i
|
|
544
|
+
} = t;
|
|
545
|
+
function r(s) {
|
|
546
|
+
const e = s - n;
|
|
547
|
+
return i ? e / -i : 0;
|
|
548
|
+
}
|
|
549
|
+
return {
|
|
550
|
+
get: r
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
function Mn(t, n, i, r, c) {
|
|
554
|
+
const {
|
|
555
|
+
startEdge: s,
|
|
556
|
+
endEdge: e
|
|
557
|
+
} = t, {
|
|
558
|
+
groupSlides: a
|
|
559
|
+
} = c, o = l().map(n.measure), u = f(), h = g();
|
|
560
|
+
function l() {
|
|
561
|
+
return a(r).map((m) => j(m)[e] - m[0][s]).map(P);
|
|
562
|
+
}
|
|
563
|
+
function f() {
|
|
564
|
+
return r.map((m) => i[s] - m[s]).map((m) => -P(m));
|
|
565
|
+
}
|
|
566
|
+
function g() {
|
|
567
|
+
return a(u).map((m) => m[0]).map((m, y) => m + o[y]);
|
|
568
|
+
}
|
|
569
|
+
return {
|
|
570
|
+
snaps: u,
|
|
571
|
+
snapsAligned: h
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
function An(t, n, i, r, c, s) {
|
|
575
|
+
const {
|
|
576
|
+
groupSlides: e
|
|
577
|
+
} = c, {
|
|
578
|
+
min: a,
|
|
579
|
+
max: o
|
|
580
|
+
} = r, u = h();
|
|
581
|
+
function h() {
|
|
582
|
+
const f = e(s), g = !t || n === "keepSnaps";
|
|
583
|
+
return i.length === 1 ? [s] : g ? f : f.slice(a, o).map((d, m, y) => {
|
|
584
|
+
const p = !m, x = At(y, m);
|
|
585
|
+
if (p) {
|
|
586
|
+
const b = j(y[0]) + 1;
|
|
587
|
+
return Yt(b);
|
|
588
|
+
}
|
|
589
|
+
if (x) {
|
|
590
|
+
const b = vt(s) - j(y)[0] + 1;
|
|
591
|
+
return Yt(b, j(y)[0]);
|
|
592
|
+
}
|
|
593
|
+
return d;
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
return {
|
|
597
|
+
slideRegistry: u
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
function zn(t, n, i, r, c) {
|
|
601
|
+
const {
|
|
602
|
+
reachedAny: s,
|
|
603
|
+
removeOffset: e,
|
|
604
|
+
constrain: a
|
|
605
|
+
} = r;
|
|
606
|
+
function o(d) {
|
|
607
|
+
return d.concat().sort((m, y) => P(m) - P(y))[0];
|
|
608
|
+
}
|
|
609
|
+
function u(d) {
|
|
610
|
+
const m = t ? e(d) : a(d), y = n.map((x, b) => ({
|
|
611
|
+
diff: h(x - m, 0),
|
|
612
|
+
index: b
|
|
613
|
+
})).sort((x, b) => P(x.diff) - P(b.diff)), {
|
|
614
|
+
index: p
|
|
615
|
+
} = y[0];
|
|
616
|
+
return {
|
|
617
|
+
index: p,
|
|
618
|
+
distance: m
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
function h(d, m) {
|
|
622
|
+
const y = [d, d + i, d - i];
|
|
623
|
+
if (!t) return d;
|
|
624
|
+
if (!m) return o(y);
|
|
625
|
+
const p = y.filter((x) => Mt(x) === m);
|
|
626
|
+
return p.length ? o(p) : j(y) - i;
|
|
627
|
+
}
|
|
628
|
+
function l(d, m) {
|
|
629
|
+
const y = n[d] - c.get(), p = h(y, m);
|
|
630
|
+
return {
|
|
631
|
+
index: d,
|
|
632
|
+
distance: p
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
function f(d, m) {
|
|
636
|
+
const y = c.get() + d, {
|
|
637
|
+
index: p,
|
|
638
|
+
distance: x
|
|
639
|
+
} = u(y), b = !t && s(y);
|
|
640
|
+
if (!m || b) return {
|
|
641
|
+
index: p,
|
|
642
|
+
distance: d
|
|
643
|
+
};
|
|
644
|
+
const S = n[p] - x, I = d + h(S, 0);
|
|
645
|
+
return {
|
|
646
|
+
index: p,
|
|
647
|
+
distance: I
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
return {
|
|
651
|
+
byDistance: f,
|
|
652
|
+
byIndex: l,
|
|
653
|
+
shortcut: h
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
function jn(t, n, i, r, c, s, e) {
|
|
657
|
+
function a(l) {
|
|
658
|
+
const f = l.distance, g = l.index !== n.get();
|
|
659
|
+
s.add(f), f && (r.duration() ? t.start() : (t.update(), t.render(1), t.update())), g && (i.set(n.get()), n.set(l.index), e.emit("select"));
|
|
660
|
+
}
|
|
661
|
+
function o(l, f) {
|
|
662
|
+
const g = c.byDistance(l, f);
|
|
663
|
+
a(g);
|
|
664
|
+
}
|
|
665
|
+
function u(l, f) {
|
|
666
|
+
const g = n.clone().set(l), d = c.byIndex(g.get(), f);
|
|
667
|
+
a(d);
|
|
668
|
+
}
|
|
669
|
+
return {
|
|
670
|
+
distance: o,
|
|
671
|
+
index: u
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
function Vn(t, n, i, r, c, s, e, a) {
|
|
675
|
+
const o = {
|
|
676
|
+
passive: !0,
|
|
677
|
+
capture: !0
|
|
678
|
+
};
|
|
679
|
+
let u = 0;
|
|
680
|
+
function h(g) {
|
|
681
|
+
if (!a) return;
|
|
682
|
+
function d(m) {
|
|
683
|
+
if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
|
|
684
|
+
e.emit("slideFocusStart"), t.scrollLeft = 0;
|
|
685
|
+
const x = i.findIndex((b) => b.includes(m));
|
|
686
|
+
Bt(x) && (c.useDuration(0), r.index(x, 0), e.emit("slideFocus"));
|
|
687
|
+
}
|
|
688
|
+
s.add(document, "keydown", l, !1), n.forEach((m, y) => {
|
|
689
|
+
s.add(m, "focus", (p) => {
|
|
690
|
+
(Lt(a) || a(g, p)) && d(y);
|
|
691
|
+
}, o);
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
function l(g) {
|
|
695
|
+
g.code === "Tab" && (u = (/* @__PURE__ */ new Date()).getTime());
|
|
696
|
+
}
|
|
697
|
+
return {
|
|
698
|
+
init: h
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
function gt(t) {
|
|
702
|
+
let n = t;
|
|
703
|
+
function i() {
|
|
704
|
+
return n;
|
|
705
|
+
}
|
|
706
|
+
function r(o) {
|
|
707
|
+
n = e(o);
|
|
708
|
+
}
|
|
709
|
+
function c(o) {
|
|
710
|
+
n += e(o);
|
|
711
|
+
}
|
|
712
|
+
function s(o) {
|
|
713
|
+
n -= e(o);
|
|
714
|
+
}
|
|
715
|
+
function e(o) {
|
|
716
|
+
return Bt(o) ? o : o.get();
|
|
717
|
+
}
|
|
718
|
+
return {
|
|
719
|
+
get: i,
|
|
720
|
+
set: r,
|
|
721
|
+
add: c,
|
|
722
|
+
subtract: s
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
function tn(t, n) {
|
|
726
|
+
const i = t.scroll === "x" ? e : a, r = n.style;
|
|
727
|
+
let c = null, s = !1;
|
|
728
|
+
function e(f) {
|
|
729
|
+
return `translate3d(${f}px,0px,0px)`;
|
|
730
|
+
}
|
|
731
|
+
function a(f) {
|
|
732
|
+
return `translate3d(0px,${f}px,0px)`;
|
|
733
|
+
}
|
|
734
|
+
function o(f) {
|
|
735
|
+
if (s) return;
|
|
736
|
+
const g = Sn(t.direction(f));
|
|
737
|
+
g !== c && (r.transform = i(g), c = g);
|
|
738
|
+
}
|
|
739
|
+
function u(f) {
|
|
740
|
+
s = !f;
|
|
741
|
+
}
|
|
742
|
+
function h() {
|
|
743
|
+
s || (r.transform = "", n.getAttribute("style") || n.removeAttribute("style"));
|
|
744
|
+
}
|
|
745
|
+
return {
|
|
746
|
+
clear: h,
|
|
747
|
+
to: o,
|
|
748
|
+
toggleActive: u
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
function Gn(t, n, i, r, c, s, e, a, o) {
|
|
752
|
+
const h = yt(c), l = yt(c).reverse(), f = p().concat(x());
|
|
753
|
+
function g(N, C) {
|
|
754
|
+
return N.reduce(($, w) => $ - c[w], C);
|
|
755
|
+
}
|
|
756
|
+
function d(N, C) {
|
|
757
|
+
return N.reduce(($, w) => g($, C) > 0 ? $.concat([w]) : $, []);
|
|
758
|
+
}
|
|
759
|
+
function m(N) {
|
|
760
|
+
return s.map((C, $) => ({
|
|
761
|
+
start: C - r[$] + 0.5 + N,
|
|
762
|
+
end: C + n - 0.5 + N
|
|
763
|
+
}));
|
|
764
|
+
}
|
|
765
|
+
function y(N, C, $) {
|
|
766
|
+
const w = m(C);
|
|
767
|
+
return N.map((E) => {
|
|
768
|
+
const M = $ ? 0 : -i, V = $ ? i : 0, G = $ ? "end" : "start", R = w[E][G];
|
|
769
|
+
return {
|
|
770
|
+
index: E,
|
|
771
|
+
loopPoint: R,
|
|
772
|
+
slideLocation: gt(-1),
|
|
773
|
+
translate: tn(t, o[E]),
|
|
774
|
+
target: () => a.get() > R ? M : V
|
|
775
|
+
};
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
function p() {
|
|
779
|
+
const N = e[0], C = d(l, N);
|
|
780
|
+
return y(C, i, !1);
|
|
781
|
+
}
|
|
782
|
+
function x() {
|
|
783
|
+
const N = n - e[0] - 1, C = d(h, N);
|
|
784
|
+
return y(C, -i, !0);
|
|
785
|
+
}
|
|
786
|
+
function b() {
|
|
787
|
+
return f.every(({
|
|
788
|
+
index: N
|
|
789
|
+
}) => {
|
|
790
|
+
const C = h.filter(($) => $ !== N);
|
|
791
|
+
return g(C, n) <= 0.1;
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
function S() {
|
|
795
|
+
f.forEach((N) => {
|
|
796
|
+
const {
|
|
797
|
+
target: C,
|
|
798
|
+
translate: $,
|
|
799
|
+
slideLocation: w
|
|
800
|
+
} = N, E = C();
|
|
801
|
+
E !== w.get() && ($.to(E), w.set(E));
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
function I() {
|
|
805
|
+
f.forEach((N) => N.translate.clear());
|
|
806
|
+
}
|
|
807
|
+
return {
|
|
808
|
+
canLoop: b,
|
|
809
|
+
clear: I,
|
|
810
|
+
loop: S,
|
|
811
|
+
loopPoints: f
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
function Rn(t, n, i) {
|
|
815
|
+
let r, c = !1;
|
|
816
|
+
function s(o) {
|
|
817
|
+
if (!i) return;
|
|
818
|
+
function u(h) {
|
|
819
|
+
for (const l of h)
|
|
820
|
+
if (l.type === "childList") {
|
|
821
|
+
o.reInit(), n.emit("slidesChanged");
|
|
822
|
+
break;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
r = new MutationObserver((h) => {
|
|
826
|
+
c || (Lt(i) || i(o, h)) && u(h);
|
|
827
|
+
}), r.observe(t, {
|
|
828
|
+
childList: !0
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
function e() {
|
|
832
|
+
r && r.disconnect(), c = !0;
|
|
833
|
+
}
|
|
834
|
+
return {
|
|
835
|
+
init: s,
|
|
836
|
+
destroy: e
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
function Hn(t, n, i, r) {
|
|
840
|
+
const c = {};
|
|
841
|
+
let s = null, e = null, a, o = !1;
|
|
842
|
+
function u() {
|
|
843
|
+
a = new IntersectionObserver((d) => {
|
|
844
|
+
o || (d.forEach((m) => {
|
|
845
|
+
const y = n.indexOf(m.target);
|
|
846
|
+
c[y] = m;
|
|
847
|
+
}), s = null, e = null, i.emit("slidesInView"));
|
|
848
|
+
}, {
|
|
849
|
+
root: t.parentElement,
|
|
850
|
+
threshold: r
|
|
851
|
+
}), n.forEach((d) => a.observe(d));
|
|
852
|
+
}
|
|
853
|
+
function h() {
|
|
854
|
+
a && a.disconnect(), o = !0;
|
|
855
|
+
}
|
|
856
|
+
function l(d) {
|
|
857
|
+
return xt(c).reduce((m, y) => {
|
|
858
|
+
const p = parseInt(y), {
|
|
859
|
+
isIntersecting: x
|
|
860
|
+
} = c[p];
|
|
861
|
+
return (d && x || !d && !x) && m.push(p), m;
|
|
862
|
+
}, []);
|
|
863
|
+
}
|
|
864
|
+
function f(d = !0) {
|
|
865
|
+
if (d && s) return s;
|
|
866
|
+
if (!d && e) return e;
|
|
867
|
+
const m = l(d);
|
|
868
|
+
return d && (s = m), d || (e = m), m;
|
|
869
|
+
}
|
|
870
|
+
return {
|
|
871
|
+
init: u,
|
|
872
|
+
destroy: h,
|
|
873
|
+
get: f
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
function Un(t, n, i, r, c, s) {
|
|
877
|
+
const {
|
|
878
|
+
measureSize: e,
|
|
879
|
+
startEdge: a,
|
|
880
|
+
endEdge: o
|
|
881
|
+
} = t, u = i[0] && c, h = d(), l = m(), f = i.map(e), g = y();
|
|
882
|
+
function d() {
|
|
883
|
+
if (!u) return 0;
|
|
884
|
+
const x = i[0];
|
|
885
|
+
return P(n[a] - x[a]);
|
|
886
|
+
}
|
|
887
|
+
function m() {
|
|
888
|
+
if (!u) return 0;
|
|
889
|
+
const x = s.getComputedStyle(j(r));
|
|
890
|
+
return parseFloat(x.getPropertyValue(`margin-${o}`));
|
|
891
|
+
}
|
|
892
|
+
function y() {
|
|
893
|
+
return i.map((x, b, S) => {
|
|
894
|
+
const I = !b, L = At(S, b);
|
|
895
|
+
return I ? f[b] + h : L ? f[b] + l : S[b + 1][a] - x[a];
|
|
896
|
+
}).map(P);
|
|
897
|
+
}
|
|
898
|
+
return {
|
|
899
|
+
slideSizes: f,
|
|
900
|
+
slideSizesWithGaps: g,
|
|
901
|
+
startGap: h,
|
|
902
|
+
endGap: l
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
function qn(t, n, i, r, c, s, e, a, o) {
|
|
906
|
+
const {
|
|
907
|
+
startEdge: u,
|
|
908
|
+
endEdge: h,
|
|
909
|
+
direction: l
|
|
910
|
+
} = t, f = Bt(i);
|
|
911
|
+
function g(p, x) {
|
|
912
|
+
return yt(p).filter((b) => b % x === 0).map((b) => p.slice(b, b + x));
|
|
913
|
+
}
|
|
914
|
+
function d(p) {
|
|
915
|
+
return p.length ? yt(p).reduce((x, b, S) => {
|
|
916
|
+
const I = j(x) || 0, L = I === 0, N = b === vt(p), C = c[u] - s[I][u], $ = c[u] - s[b][h], w = !r && L ? l(e) : 0, E = !r && N ? l(a) : 0, M = P($ - E - (C + w));
|
|
917
|
+
return S && M > n + o && x.push(b), N && x.push(p.length), x;
|
|
918
|
+
}, []).map((x, b, S) => {
|
|
919
|
+
const I = Math.max(S[b - 1] || 0);
|
|
920
|
+
return p.slice(I, x);
|
|
921
|
+
}) : [];
|
|
922
|
+
}
|
|
923
|
+
function m(p) {
|
|
924
|
+
return f ? g(p, i) : d(p);
|
|
925
|
+
}
|
|
926
|
+
return {
|
|
927
|
+
groupSlides: m
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
function Kn(t, n, i, r, c, s, e) {
|
|
931
|
+
const {
|
|
932
|
+
align: a,
|
|
933
|
+
axis: o,
|
|
934
|
+
direction: u,
|
|
935
|
+
startIndex: h,
|
|
936
|
+
loop: l,
|
|
937
|
+
duration: f,
|
|
938
|
+
dragFree: g,
|
|
939
|
+
dragThreshold: d,
|
|
940
|
+
inViewThreshold: m,
|
|
941
|
+
slidesToScroll: y,
|
|
942
|
+
skipSnaps: p,
|
|
943
|
+
containScroll: x,
|
|
944
|
+
watchResize: b,
|
|
945
|
+
watchSlides: S,
|
|
946
|
+
watchDrag: I,
|
|
947
|
+
watchFocus: L
|
|
948
|
+
} = s, N = 2, C = kn(), $ = C.measure(n), w = i.map(C.measure), E = Ln(o, u), M = E.measureSize($), V = In(M), G = Nn(a, M), R = !l && !!x, nt = l || !!x, {
|
|
949
|
+
slideSizes: W,
|
|
950
|
+
slideSizesWithGaps: Q,
|
|
951
|
+
startGap: J,
|
|
952
|
+
endGap: dt
|
|
953
|
+
} = Un(E, $, w, i, nt, c), H = qn(E, M, y, l, $, w, J, dt, N), {
|
|
954
|
+
snaps: it,
|
|
955
|
+
snapsAligned: ct
|
|
956
|
+
} = Mn(E, G, $, w, H), X = -j(it) + j(Q), {
|
|
957
|
+
snapsContained: pt,
|
|
958
|
+
scrollContainLimit: mt
|
|
959
|
+
} = Dn(M, X, ct, x, N), A = R ? pt : ct, {
|
|
960
|
+
limit: O
|
|
961
|
+
} = On(X, A, l), Y = Wt(vt(A), h, l), z = Y.clone(), T = yt(i), _ = ({
|
|
962
|
+
dragHandler: at,
|
|
963
|
+
scrollBody: It,
|
|
964
|
+
scrollBounds: Tt,
|
|
965
|
+
options: {
|
|
966
|
+
loop: St
|
|
967
|
+
}
|
|
968
|
+
}) => {
|
|
969
|
+
St || Tt.constrain(at.pointerDown()), It.seek();
|
|
970
|
+
}, k = ({
|
|
971
|
+
scrollBody: at,
|
|
972
|
+
translate: It,
|
|
973
|
+
location: Tt,
|
|
974
|
+
offsetLocation: St,
|
|
975
|
+
previousLocation: sn,
|
|
976
|
+
scrollLooper: cn,
|
|
977
|
+
slideLooper: an,
|
|
978
|
+
dragHandler: un,
|
|
979
|
+
animation: ln,
|
|
980
|
+
eventHandler: Gt,
|
|
981
|
+
scrollBounds: fn,
|
|
982
|
+
options: {
|
|
983
|
+
loop: Rt
|
|
984
|
+
}
|
|
985
|
+
}, Ht) => {
|
|
986
|
+
const Ut = at.settled(), dn = !fn.shouldConstrain(), qt = Rt ? Ut : Ut && dn, Kt = qt && !un.pointerDown();
|
|
987
|
+
Kt && ln.stop();
|
|
988
|
+
const pn = Tt.get() * Ht + sn.get() * (1 - Ht);
|
|
989
|
+
St.set(pn), Rt && (cn.loop(at.direction()), an.loop()), It.to(St.get()), Kt && Gt.emit("settle"), qt || Gt.emit("scroll");
|
|
990
|
+
}, D = Cn(r, c, () => _(kt), (at) => k(kt, at)), F = 0.68, U = A[Y.get()], Z = gt(U), et = gt(U), tt = gt(U), rt = gt(U), ht = Pn(Z, tt, et, rt, f, F), $t = zn(l, A, X, O, rt), Et = jn(D, Y, z, ht, $t, rt, e), zt = Bn(O), jt = _t(), rn = Hn(n, i, e, m), {
|
|
991
|
+
slideRegistry: Vt
|
|
992
|
+
} = An(R, x, A, mt, H, T), on = Vn(t, i, Vt, Et, ht, jt, e, L), kt = {
|
|
993
|
+
ownerDocument: r,
|
|
994
|
+
ownerWindow: c,
|
|
995
|
+
eventHandler: e,
|
|
996
|
+
containerRect: $,
|
|
997
|
+
slideRects: w,
|
|
998
|
+
animation: D,
|
|
999
|
+
axis: E,
|
|
1000
|
+
dragHandler: $n(E, t, r, c, rt, En(E, c), Z, D, Et, ht, $t, Y, e, V, g, d, p, F, I),
|
|
1001
|
+
eventStore: jt,
|
|
1002
|
+
percentOfView: V,
|
|
1003
|
+
index: Y,
|
|
1004
|
+
indexPrevious: z,
|
|
1005
|
+
limit: O,
|
|
1006
|
+
location: Z,
|
|
1007
|
+
offsetLocation: tt,
|
|
1008
|
+
previousLocation: et,
|
|
1009
|
+
options: s,
|
|
1010
|
+
resizeHandler: Tn(n, e, c, i, E, b, C),
|
|
1011
|
+
scrollBody: ht,
|
|
1012
|
+
scrollBounds: wn(O, tt, rt, ht, V),
|
|
1013
|
+
scrollLooper: Fn(X, O, tt, [Z, tt, et, rt]),
|
|
1014
|
+
scrollProgress: zt,
|
|
1015
|
+
scrollSnapList: A.map(zt.get),
|
|
1016
|
+
scrollSnaps: A,
|
|
1017
|
+
scrollTarget: $t,
|
|
1018
|
+
scrollTo: Et,
|
|
1019
|
+
slideLooper: Gn(E, M, X, W, Q, it, A, tt, i),
|
|
1020
|
+
slideFocus: on,
|
|
1021
|
+
slidesHandler: Rn(n, e, S),
|
|
1022
|
+
slidesInView: rn,
|
|
1023
|
+
slideIndexes: T,
|
|
1024
|
+
slideRegistry: Vt,
|
|
1025
|
+
slidesToScroll: H,
|
|
1026
|
+
target: rt,
|
|
1027
|
+
translate: tn(E, n)
|
|
1028
|
+
};
|
|
1029
|
+
return kt;
|
|
1030
|
+
}
|
|
1031
|
+
function Qn() {
|
|
1032
|
+
let t = {}, n;
|
|
1033
|
+
function i(u) {
|
|
1034
|
+
n = u;
|
|
1035
|
+
}
|
|
1036
|
+
function r(u) {
|
|
1037
|
+
return t[u] || [];
|
|
1038
|
+
}
|
|
1039
|
+
function c(u) {
|
|
1040
|
+
return r(u).forEach((h) => h(n, u)), o;
|
|
1041
|
+
}
|
|
1042
|
+
function s(u, h) {
|
|
1043
|
+
return t[u] = r(u).concat([h]), o;
|
|
1044
|
+
}
|
|
1045
|
+
function e(u, h) {
|
|
1046
|
+
return t[u] = r(u).filter((l) => l !== h), o;
|
|
1047
|
+
}
|
|
1048
|
+
function a() {
|
|
1049
|
+
t = {};
|
|
1050
|
+
}
|
|
1051
|
+
const o = {
|
|
1052
|
+
init: i,
|
|
1053
|
+
emit: c,
|
|
1054
|
+
off: e,
|
|
1055
|
+
on: s,
|
|
1056
|
+
clear: a
|
|
1057
|
+
};
|
|
1058
|
+
return o;
|
|
1059
|
+
}
|
|
1060
|
+
const Jn = {
|
|
1061
|
+
align: "center",
|
|
1062
|
+
axis: "x",
|
|
1063
|
+
container: null,
|
|
1064
|
+
slides: null,
|
|
1065
|
+
containScroll: "trimSnaps",
|
|
1066
|
+
direction: "ltr",
|
|
1067
|
+
slidesToScroll: 1,
|
|
1068
|
+
inViewThreshold: 0,
|
|
1069
|
+
breakpoints: {},
|
|
1070
|
+
dragFree: !1,
|
|
1071
|
+
dragThreshold: 10,
|
|
1072
|
+
loop: !1,
|
|
1073
|
+
skipSnaps: !1,
|
|
1074
|
+
duration: 25,
|
|
1075
|
+
startIndex: 0,
|
|
1076
|
+
active: !0,
|
|
1077
|
+
watchDrag: !0,
|
|
1078
|
+
watchResize: !0,
|
|
1079
|
+
watchSlides: !0,
|
|
1080
|
+
watchFocus: !0
|
|
1081
|
+
};
|
|
1082
|
+
function Xn(t) {
|
|
1083
|
+
function n(s, e) {
|
|
1084
|
+
return Zt(s, e || {});
|
|
1085
|
+
}
|
|
1086
|
+
function i(s) {
|
|
1087
|
+
const e = s.breakpoints || {}, a = xt(e).filter((o) => t.matchMedia(o).matches).map((o) => e[o]).reduce((o, u) => n(o, u), {});
|
|
1088
|
+
return n(s, a);
|
|
1089
|
+
}
|
|
1090
|
+
function r(s) {
|
|
1091
|
+
return s.map((e) => xt(e.breakpoints || {})).reduce((e, a) => e.concat(a), []).map(t.matchMedia);
|
|
1092
|
+
}
|
|
1093
|
+
return {
|
|
1094
|
+
mergeOptions: n,
|
|
1095
|
+
optionsAtMedia: i,
|
|
1096
|
+
optionsMediaQueries: r
|
|
1097
|
+
};
|
|
1098
|
+
}
|
|
1099
|
+
function Yn(t) {
|
|
1100
|
+
let n = [];
|
|
1101
|
+
function i(s, e) {
|
|
1102
|
+
return n = e.filter(({
|
|
1103
|
+
options: a
|
|
1104
|
+
}) => t.optionsAtMedia(a).active !== !1), n.forEach((a) => a.init(s, t)), e.reduce((a, o) => Object.assign(a, {
|
|
1105
|
+
[o.name]: o
|
|
1106
|
+
}), {});
|
|
1107
|
+
}
|
|
1108
|
+
function r() {
|
|
1109
|
+
n = n.filter((s) => s.destroy());
|
|
1110
|
+
}
|
|
1111
|
+
return {
|
|
1112
|
+
init: i,
|
|
1113
|
+
destroy: r
|
|
1114
|
+
};
|
|
1115
|
+
}
|
|
1116
|
+
function Ct(t, n, i) {
|
|
1117
|
+
const r = t.ownerDocument, c = r.defaultView, s = Xn(c), e = Yn(s), a = _t(), o = Qn(), {
|
|
1118
|
+
mergeOptions: u,
|
|
1119
|
+
optionsAtMedia: h,
|
|
1120
|
+
optionsMediaQueries: l
|
|
1121
|
+
} = s, {
|
|
1122
|
+
on: f,
|
|
1123
|
+
off: g,
|
|
1124
|
+
emit: d
|
|
1125
|
+
} = o, m = E;
|
|
1126
|
+
let y = !1, p, x = u(Jn, Ct.globalOptions), b = u(x), S = [], I, L, N;
|
|
1127
|
+
function C() {
|
|
1128
|
+
const {
|
|
1129
|
+
container: T,
|
|
1130
|
+
slides: _
|
|
1131
|
+
} = b;
|
|
1132
|
+
L = (Pt(T) ? t.querySelector(T) : T) || t.children[0];
|
|
1133
|
+
const D = Pt(_) ? L.querySelectorAll(_) : _;
|
|
1134
|
+
N = [].slice.call(D || L.children);
|
|
1135
|
+
}
|
|
1136
|
+
function $(T) {
|
|
1137
|
+
const _ = Kn(t, L, N, r, c, T, o);
|
|
1138
|
+
if (T.loop && !_.slideLooper.canLoop()) {
|
|
1139
|
+
const k = Object.assign({}, T, {
|
|
1140
|
+
loop: !1
|
|
1141
|
+
});
|
|
1142
|
+
return $(k);
|
|
1143
|
+
}
|
|
1144
|
+
return _;
|
|
1145
|
+
}
|
|
1146
|
+
function w(T, _) {
|
|
1147
|
+
y || (x = u(x, T), b = h(x), S = _ || S, C(), p = $(b), l([x, ...S.map(({
|
|
1148
|
+
options: k
|
|
1149
|
+
}) => k)]).forEach((k) => a.add(k, "change", E)), b.active && (p.translate.to(p.location.get()), p.animation.init(), p.slidesInView.init(), p.slideFocus.init(z), p.eventHandler.init(z), p.resizeHandler.init(z), p.slidesHandler.init(z), p.options.loop && p.slideLooper.loop(), L.offsetParent && N.length && p.dragHandler.init(z), I = e.init(z, S)));
|
|
1150
|
+
}
|
|
1151
|
+
function E(T, _) {
|
|
1152
|
+
const k = H();
|
|
1153
|
+
M(), w(u({
|
|
1154
|
+
startIndex: k
|
|
1155
|
+
}, T), _), o.emit("reInit");
|
|
1156
|
+
}
|
|
1157
|
+
function M() {
|
|
1158
|
+
p.dragHandler.destroy(), p.eventStore.clear(), p.translate.clear(), p.slideLooper.clear(), p.resizeHandler.destroy(), p.slidesHandler.destroy(), p.slidesInView.destroy(), p.animation.destroy(), e.destroy(), a.clear();
|
|
1159
|
+
}
|
|
1160
|
+
function V() {
|
|
1161
|
+
y || (y = !0, a.clear(), M(), o.emit("destroy"), o.clear());
|
|
1162
|
+
}
|
|
1163
|
+
function G(T, _, k) {
|
|
1164
|
+
!b.active || y || (p.scrollBody.useBaseFriction().useDuration(_ === !0 ? 0 : b.duration), p.scrollTo.index(T, k || 0));
|
|
1165
|
+
}
|
|
1166
|
+
function R(T) {
|
|
1167
|
+
const _ = p.index.add(1).get();
|
|
1168
|
+
G(_, T, -1);
|
|
1169
|
+
}
|
|
1170
|
+
function nt(T) {
|
|
1171
|
+
const _ = p.index.add(-1).get();
|
|
1172
|
+
G(_, T, 1);
|
|
1173
|
+
}
|
|
1174
|
+
function W() {
|
|
1175
|
+
return p.index.add(1).get() !== H();
|
|
1176
|
+
}
|
|
1177
|
+
function Q() {
|
|
1178
|
+
return p.index.add(-1).get() !== H();
|
|
1179
|
+
}
|
|
1180
|
+
function J() {
|
|
1181
|
+
return p.scrollSnapList;
|
|
1182
|
+
}
|
|
1183
|
+
function dt() {
|
|
1184
|
+
return p.scrollProgress.get(p.offsetLocation.get());
|
|
1185
|
+
}
|
|
1186
|
+
function H() {
|
|
1187
|
+
return p.index.get();
|
|
1188
|
+
}
|
|
1189
|
+
function it() {
|
|
1190
|
+
return p.indexPrevious.get();
|
|
1191
|
+
}
|
|
1192
|
+
function ct() {
|
|
1193
|
+
return p.slidesInView.get();
|
|
1194
|
+
}
|
|
1195
|
+
function X() {
|
|
1196
|
+
return p.slidesInView.get(!1);
|
|
1197
|
+
}
|
|
1198
|
+
function pt() {
|
|
1199
|
+
return I;
|
|
1200
|
+
}
|
|
1201
|
+
function mt() {
|
|
1202
|
+
return p;
|
|
1203
|
+
}
|
|
1204
|
+
function A() {
|
|
1205
|
+
return t;
|
|
1206
|
+
}
|
|
1207
|
+
function O() {
|
|
1208
|
+
return L;
|
|
1209
|
+
}
|
|
1210
|
+
function Y() {
|
|
1211
|
+
return N;
|
|
1212
|
+
}
|
|
1213
|
+
const z = {
|
|
1214
|
+
canScrollNext: W,
|
|
1215
|
+
canScrollPrev: Q,
|
|
1216
|
+
containerNode: O,
|
|
1217
|
+
internalEngine: mt,
|
|
1218
|
+
destroy: V,
|
|
1219
|
+
off: g,
|
|
1220
|
+
on: f,
|
|
1221
|
+
emit: d,
|
|
1222
|
+
plugins: pt,
|
|
1223
|
+
previousScrollSnap: it,
|
|
1224
|
+
reInit: m,
|
|
1225
|
+
rootNode: A,
|
|
1226
|
+
scrollNext: R,
|
|
1227
|
+
scrollPrev: nt,
|
|
1228
|
+
scrollProgress: dt,
|
|
1229
|
+
scrollSnapList: J,
|
|
1230
|
+
scrollTo: G,
|
|
1231
|
+
selectedScrollSnap: H,
|
|
1232
|
+
slideNodes: Y,
|
|
1233
|
+
slidesInView: ct,
|
|
1234
|
+
slidesNotInView: X
|
|
1235
|
+
};
|
|
1236
|
+
return w(n, i), setTimeout(() => o.emit("init"), 0), z;
|
|
1237
|
+
}
|
|
1238
|
+
Ct.globalOptions = void 0;
|
|
1239
|
+
function lt(t = {}, n = []) {
|
|
1240
|
+
const i = Nt(t), r = Nt(n), [c, s] = ot(), [e, a] = ot(), o = ut(() => {
|
|
1241
|
+
c && c.reInit(i.current, r.current);
|
|
1242
|
+
}, [c]);
|
|
1243
|
+
return K(() => {
|
|
1244
|
+
Ft(i.current, t) || (i.current = t, o());
|
|
1245
|
+
}, [t, o]), K(() => {
|
|
1246
|
+
_n(r.current, n) || (r.current = n, o());
|
|
1247
|
+
}, [n, o]), K(() => {
|
|
1248
|
+
if (xn() && e) {
|
|
1249
|
+
Ct.globalOptions = lt.globalOptions;
|
|
1250
|
+
const u = Ct(e, i.current, r.current);
|
|
1251
|
+
return s(u), () => u.destroy();
|
|
1252
|
+
} else
|
|
1253
|
+
s(void 0);
|
|
1254
|
+
}, [e, s]), [a, c];
|
|
1255
|
+
}
|
|
1256
|
+
lt.globalOptions = void 0;
|
|
1257
|
+
function nn(t) {
|
|
1258
|
+
const n = ut(() => {
|
|
1259
|
+
t && t.scrollPrev();
|
|
1260
|
+
}, [t]), i = ut(() => {
|
|
1261
|
+
t && t.scrollNext();
|
|
1262
|
+
}, [t]), r = ut(() => {
|
|
1263
|
+
t && t.scrollTo(0);
|
|
1264
|
+
}, [t]), c = ut(() => {
|
|
1265
|
+
t && t.scrollTo(t.scrollSnapList().length - 1);
|
|
1266
|
+
}, [t]);
|
|
1267
|
+
return {
|
|
1268
|
+
onFirstButtonClick: r,
|
|
1269
|
+
onLastButtonClick: c,
|
|
1270
|
+
onPrevButtonClick: n,
|
|
1271
|
+
onNextButtonClick: i
|
|
1272
|
+
};
|
|
1273
|
+
}
|
|
1274
|
+
function en(t, n = !0) {
|
|
1275
|
+
const i = ut(
|
|
1276
|
+
(r) => {
|
|
1277
|
+
if (t && n)
|
|
1278
|
+
switch (r.key) {
|
|
1279
|
+
case "ArrowLeft":
|
|
1280
|
+
t.scrollPrev(), r.preventDefault();
|
|
1281
|
+
break;
|
|
1282
|
+
case "ArrowRight":
|
|
1283
|
+
t.scrollNext(), r.preventDefault();
|
|
1284
|
+
break;
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
[t, n]
|
|
1288
|
+
);
|
|
1289
|
+
return K(() => (document.addEventListener("keydown", i), () => {
|
|
1290
|
+
document.removeEventListener("keydown", i);
|
|
1291
|
+
}), [i]), { onKeyDown: i };
|
|
1292
|
+
}
|
|
1293
|
+
function Dt({
|
|
1294
|
+
onNext: t,
|
|
1295
|
+
onPrev: n,
|
|
1296
|
+
onFirst: i,
|
|
1297
|
+
onLast: r,
|
|
1298
|
+
indicator: c,
|
|
1299
|
+
...s
|
|
1300
|
+
}) {
|
|
1301
|
+
const { prefix: e } = ft(), a = `${e}--photo-gallery-controls`;
|
|
1302
|
+
return /* @__PURE__ */ v("div", { ...s, children: /* @__PURE__ */ B("div", { className: q(a, s.className), children: [
|
|
1303
|
+
/* @__PURE__ */ B("div", { className: `${a}__previous-set`, children: [
|
|
1304
|
+
/* @__PURE__ */ v(
|
|
1305
|
+
"button",
|
|
1306
|
+
{
|
|
1307
|
+
"aria-label": "First Photo",
|
|
1308
|
+
onClick: i,
|
|
1309
|
+
className: q(`${a}__first`, `${a}__item`)
|
|
1310
|
+
}
|
|
1311
|
+
),
|
|
1312
|
+
/* @__PURE__ */ v(
|
|
1313
|
+
"button",
|
|
1314
|
+
{
|
|
1315
|
+
"aria-label": "Previous Photo",
|
|
1316
|
+
onClick: n,
|
|
1317
|
+
className: q(`${a}__prev`, `${a}__item`)
|
|
1318
|
+
}
|
|
1319
|
+
)
|
|
1320
|
+
] }),
|
|
1321
|
+
/* @__PURE__ */ B("p", { "aria-label": "Current Photo", className: `${a}__page`, children: [
|
|
1322
|
+
/* @__PURE__ */ v("span", { children: c.current }),
|
|
1323
|
+
/* @__PURE__ */ v("span", { children: " of " }),
|
|
1324
|
+
/* @__PURE__ */ v("span", { children: c.total })
|
|
1325
|
+
] }),
|
|
1326
|
+
/* @__PURE__ */ B("div", { className: `${a}__next-set`, children: [
|
|
1327
|
+
/* @__PURE__ */ v(
|
|
1328
|
+
"button",
|
|
1329
|
+
{
|
|
1330
|
+
"aria-label": "Next Photo",
|
|
1331
|
+
onClick: t,
|
|
1332
|
+
className: q(`${a}__next`, `${a}__item`)
|
|
1333
|
+
}
|
|
1334
|
+
),
|
|
1335
|
+
/* @__PURE__ */ v(
|
|
1336
|
+
"button",
|
|
1337
|
+
{
|
|
1338
|
+
"aria-label": "Last Photo",
|
|
1339
|
+
onClick: r,
|
|
1340
|
+
className: q(`${a}__last`, `${a}__item`)
|
|
1341
|
+
}
|
|
1342
|
+
)
|
|
1343
|
+
] })
|
|
1344
|
+
] }) });
|
|
1345
|
+
}
|
|
1346
|
+
function Zn({
|
|
1347
|
+
items: t,
|
|
1348
|
+
selected: n,
|
|
1349
|
+
onSelect: i,
|
|
1350
|
+
onSeeAll: r,
|
|
1351
|
+
seeAllLabel: c = "See all"
|
|
1352
|
+
}) {
|
|
1353
|
+
const { prefix: s } = ft(), e = mn(), a = Nt(null), [o, u] = lt({
|
|
1354
|
+
containScroll: "keepSnaps",
|
|
1355
|
+
direction: document.dir === "rtl" ? "rtl" : "ltr",
|
|
1356
|
+
dragFree: !0,
|
|
1357
|
+
duration: 30
|
|
1358
|
+
});
|
|
1359
|
+
K(() => {
|
|
1360
|
+
u && u.scrollTo(n);
|
|
1361
|
+
}, [u, n]);
|
|
1362
|
+
const h = `${s}--photo-gallery-thumbnails`;
|
|
1363
|
+
return /* @__PURE__ */ B("div", { className: h, ref: a, id: `${h}--${e}`, children: [
|
|
1364
|
+
/* @__PURE__ */ v("div", { className: `${h}__carousel`, ref: o, children: /* @__PURE__ */ v("div", { className: `${h}__container`, children: t.map((l, f) => /* @__PURE__ */ v("div", { className: `${h}__slide`, children: /* @__PURE__ */ v(
|
|
1365
|
+
"button",
|
|
1366
|
+
{
|
|
1367
|
+
type: "button",
|
|
1368
|
+
className: q(`${h}__thumbnail`, {
|
|
1369
|
+
[`${h}__thumbnail--selected`]: f === n
|
|
1370
|
+
}),
|
|
1371
|
+
onClick: () => i == null ? void 0 : i(f),
|
|
1372
|
+
children: /* @__PURE__ */ v(
|
|
1373
|
+
"img",
|
|
1374
|
+
{
|
|
1375
|
+
src: typeof l.src == "string" ? l.src : l.src.thumbnail,
|
|
1376
|
+
alt: l.credit || `Thumbnail ${f + 1}`
|
|
1377
|
+
}
|
|
1378
|
+
)
|
|
1379
|
+
}
|
|
1380
|
+
) }, f)) }) }),
|
|
1381
|
+
/* @__PURE__ */ v("button", { className: `${h}__see-all`, onClick: () => r == null ? void 0 : r(), children: /* @__PURE__ */ v("span", { className: `${h}__see-all-label`, children: c }) })
|
|
1382
|
+
] });
|
|
1383
|
+
}
|
|
1384
|
+
function Wn({ isOpen: t, onClose: n, children: i }) {
|
|
1385
|
+
const { prefix: r } = ft(), c = bn({
|
|
1386
|
+
isActive: t,
|
|
1387
|
+
onEscape: () => {
|
|
1388
|
+
n();
|
|
1389
|
+
},
|
|
1390
|
+
restoreFocus: !0
|
|
1391
|
+
}), s = `${r}--lightbox`;
|
|
1392
|
+
K(() => {
|
|
1393
|
+
const o = (u) => {
|
|
1394
|
+
u.key === "Escape" && t && n();
|
|
1395
|
+
};
|
|
1396
|
+
return t ? (document.addEventListener("keydown", o), document.body.style.overflow = "hidden") : document.body.style.overflow = "auto", () => {
|
|
1397
|
+
document.removeEventListener("keydown", o), document.body.style.overflow = "auto";
|
|
1398
|
+
};
|
|
1399
|
+
}, [t, n]);
|
|
1400
|
+
const e = (o) => {
|
|
1401
|
+
o.target === o.currentTarget && n();
|
|
1402
|
+
}, a = /* @__PURE__ */ B(
|
|
1403
|
+
"div",
|
|
1404
|
+
{
|
|
1405
|
+
className: q(s, {
|
|
1406
|
+
[`${s}--open`]: t
|
|
1407
|
+
}),
|
|
1408
|
+
onClick: e,
|
|
1409
|
+
role: "dialog",
|
|
1410
|
+
"aria-modal": "true",
|
|
1411
|
+
ref: c,
|
|
1412
|
+
children: [
|
|
1413
|
+
/* @__PURE__ */ v("div", { className: `${s}__backdrop` }),
|
|
1414
|
+
/* @__PURE__ */ B("div", { className: `${s}__container`, children: [
|
|
1415
|
+
/* @__PURE__ */ v(
|
|
1416
|
+
"button",
|
|
1417
|
+
{
|
|
1418
|
+
className: `${s}__close`,
|
|
1419
|
+
onClick: n,
|
|
1420
|
+
"aria-label": "Close lightbox",
|
|
1421
|
+
type: "button",
|
|
1422
|
+
tabIndex: t ? 0 : -1,
|
|
1423
|
+
children: /* @__PURE__ */ v(Ot, { name: "close", size: 32 })
|
|
1424
|
+
}
|
|
1425
|
+
),
|
|
1426
|
+
/* @__PURE__ */ v("div", { className: `${s}__content`, children: i })
|
|
1427
|
+
] })
|
|
1428
|
+
]
|
|
1429
|
+
}
|
|
1430
|
+
);
|
|
1431
|
+
return gn(a, document.body);
|
|
1432
|
+
}
|
|
1433
|
+
function te({
|
|
1434
|
+
caption: t,
|
|
1435
|
+
isOpen: n,
|
|
1436
|
+
defaultOpen: i = !1,
|
|
1437
|
+
onToggle: r,
|
|
1438
|
+
className: c
|
|
1439
|
+
}) {
|
|
1440
|
+
const { prefix: s } = ft(), e = `${s}--photo-gallery-expandable-caption`, [a, o] = ot(i), [u, h] = ot(!1), l = Nt(null), f = n !== void 0, g = f ? n : a;
|
|
1441
|
+
K(() => {
|
|
1442
|
+
if (l.current)
|
|
1443
|
+
return l.current.scrollWidth > l.current.clientWidth && h(!0), () => {
|
|
1444
|
+
h(!1), o(!1), r == null || r(!1);
|
|
1445
|
+
};
|
|
1446
|
+
}, [t, l.current]);
|
|
1447
|
+
const d = () => {
|
|
1448
|
+
if (!u) return;
|
|
1449
|
+
const m = !g;
|
|
1450
|
+
f || o(m), r == null || r(m);
|
|
1451
|
+
};
|
|
1452
|
+
return /* @__PURE__ */ v(
|
|
1453
|
+
"div",
|
|
1454
|
+
{
|
|
1455
|
+
className: q(e, c, {
|
|
1456
|
+
[`${e}--expanded`]: g
|
|
1457
|
+
}),
|
|
1458
|
+
children: /* @__PURE__ */ B("div", { className: `${e}__preview`, children: [
|
|
1459
|
+
/* @__PURE__ */ v("p", { className: `${e}__text`, ref: l, children: t }),
|
|
1460
|
+
u && /* @__PURE__ */ v(
|
|
1461
|
+
"button",
|
|
1462
|
+
{
|
|
1463
|
+
className: `${e}__toggle`,
|
|
1464
|
+
"aria-expanded": g,
|
|
1465
|
+
"aria-label": g ? "Collapse caption" : "Expand caption",
|
|
1466
|
+
type: "button",
|
|
1467
|
+
onClick: d,
|
|
1468
|
+
children: /* @__PURE__ */ v(Ot, { name: g ? "ChevronDown" : "ChevronUp" })
|
|
1469
|
+
}
|
|
1470
|
+
)
|
|
1471
|
+
] })
|
|
1472
|
+
}
|
|
1473
|
+
);
|
|
1474
|
+
}
|
|
1475
|
+
function ne({
|
|
1476
|
+
items: t,
|
|
1477
|
+
parentIndex: n = 0,
|
|
1478
|
+
onSelect: i,
|
|
1479
|
+
isActive: r
|
|
1480
|
+
}) {
|
|
1481
|
+
var p, x;
|
|
1482
|
+
const { prefix: c } = ft(), [s, e] = ot(n), [a, o] = lt({
|
|
1483
|
+
loop: !0,
|
|
1484
|
+
direction: document.dir === "rtl" ? "rtl" : "ltr",
|
|
1485
|
+
duration: 30
|
|
1486
|
+
}), [u, h] = lt({
|
|
1487
|
+
containScroll: "keepSnaps",
|
|
1488
|
+
direction: document.dir === "rtl" ? "rtl" : "ltr",
|
|
1489
|
+
dragFree: !0,
|
|
1490
|
+
duration: 30
|
|
1491
|
+
}), l = nn(o), f = `${c}--lightbox-gallery`, g = `${f}__core`, d = `${f}__thumbnails`, m = () => {
|
|
1492
|
+
if (!o || !h) return;
|
|
1493
|
+
const b = o.selectedScrollSnap();
|
|
1494
|
+
e(b), i(b), h.scrollTo(b);
|
|
1495
|
+
}, y = (b) => {
|
|
1496
|
+
!o || !h || o.scrollTo(b);
|
|
1497
|
+
};
|
|
1498
|
+
return K(() => {
|
|
1499
|
+
if (o)
|
|
1500
|
+
return o.on("select", m).on("reInit", m), () => {
|
|
1501
|
+
o.off("select", m);
|
|
1502
|
+
};
|
|
1503
|
+
}, [o]), K(() => {
|
|
1504
|
+
o && o.scrollTo(n, !0);
|
|
1505
|
+
}, [o]), en(o, r), /* @__PURE__ */ B("div", { className: f, children: [
|
|
1506
|
+
/* @__PURE__ */ v("div", { className: g, children: /* @__PURE__ */ v("div", { className: `${g}__viewport`, ref: a, tabIndex: 0, children: /* @__PURE__ */ v("div", { className: `${g}__container`, children: t.map((b, S) => /* @__PURE__ */ v("div", { className: `${g}__slide`, children: /* @__PURE__ */ B("figure", { className: `${g}__image-wrapper`, children: [
|
|
1507
|
+
/* @__PURE__ */ v(
|
|
1508
|
+
"img",
|
|
1509
|
+
{
|
|
1510
|
+
src: typeof b.src == "string" ? b.src : b.src.lightbox,
|
|
1511
|
+
alt: b.alt || b.credit || `Photo ${S + 1}`
|
|
1512
|
+
}
|
|
1513
|
+
),
|
|
1514
|
+
b.credit && /* @__PURE__ */ B(
|
|
1515
|
+
"figcaption",
|
|
1516
|
+
{
|
|
1517
|
+
className: `${g}__image-wrapper-credit`,
|
|
1518
|
+
children: [
|
|
1519
|
+
/* @__PURE__ */ v(
|
|
1520
|
+
"span",
|
|
1521
|
+
{
|
|
1522
|
+
className: `${g}__image-wrapper-credit-text`,
|
|
1523
|
+
children: b.credit
|
|
1524
|
+
}
|
|
1525
|
+
),
|
|
1526
|
+
/* @__PURE__ */ v(
|
|
1527
|
+
"span",
|
|
1528
|
+
{
|
|
1529
|
+
className: `${g}__image-wrapper-credit-corner`
|
|
1530
|
+
}
|
|
1531
|
+
)
|
|
1532
|
+
]
|
|
1533
|
+
}
|
|
1534
|
+
)
|
|
1535
|
+
] }) }, S)) }) }) }),
|
|
1536
|
+
/* @__PURE__ */ B("div", { className: `${f}__bar`, children: [
|
|
1537
|
+
((p = t[s]) == null ? void 0 : p.caption) && r && /* @__PURE__ */ v(
|
|
1538
|
+
te,
|
|
1539
|
+
{
|
|
1540
|
+
caption: t[s].caption,
|
|
1541
|
+
className: `${f}__caption`
|
|
1542
|
+
}
|
|
1543
|
+
),
|
|
1544
|
+
/* @__PURE__ */ B("div", { className: `${f}__extra`, children: [
|
|
1545
|
+
/* @__PURE__ */ v("p", { className: `${f}__extra-text`, children: (x = t[s]) == null ? void 0 : x.caption }),
|
|
1546
|
+
/* @__PURE__ */ v(
|
|
1547
|
+
Dt,
|
|
1548
|
+
{
|
|
1549
|
+
onNext: l.onNextButtonClick,
|
|
1550
|
+
onPrev: l.onPrevButtonClick,
|
|
1551
|
+
onFirst: l.onFirstButtonClick,
|
|
1552
|
+
onLast: l.onLastButtonClick,
|
|
1553
|
+
indicator: { current: s + 1, total: t.length }
|
|
1554
|
+
}
|
|
1555
|
+
)
|
|
1556
|
+
] }),
|
|
1557
|
+
/* @__PURE__ */ v("div", { className: d, children: /* @__PURE__ */ v("div", { className: `${d}__carousel`, ref: u, children: /* @__PURE__ */ v("div", { className: `${d}__container`, children: t.map((b, S) => /* @__PURE__ */ v("div", { className: `${d}__slide`, children: /* @__PURE__ */ v(
|
|
1558
|
+
"button",
|
|
1559
|
+
{
|
|
1560
|
+
className: q(`${d}__image`, {
|
|
1561
|
+
[`${d}__image--selected`]: S === s
|
|
1562
|
+
}),
|
|
1563
|
+
onClick: () => y(S),
|
|
1564
|
+
children: /* @__PURE__ */ v(
|
|
1565
|
+
"img",
|
|
1566
|
+
{
|
|
1567
|
+
src: typeof b.src == "string" ? b.src : b.src.thumbnail,
|
|
1568
|
+
alt: b.alt || b.credit || `Thumbnail ${S + 1}`,
|
|
1569
|
+
loading: "lazy"
|
|
1570
|
+
}
|
|
1571
|
+
)
|
|
1572
|
+
}
|
|
1573
|
+
) }, S)) }) }) }),
|
|
1574
|
+
/* @__PURE__ */ v("div", { className: `${f}__controls`, children: /* @__PURE__ */ v(
|
|
1575
|
+
Dt,
|
|
1576
|
+
{
|
|
1577
|
+
onNext: l.onNextButtonClick,
|
|
1578
|
+
onPrev: l.onPrevButtonClick,
|
|
1579
|
+
onFirst: l.onFirstButtonClick,
|
|
1580
|
+
onLast: l.onLastButtonClick,
|
|
1581
|
+
indicator: { current: s + 1, total: t.length }
|
|
1582
|
+
}
|
|
1583
|
+
) })
|
|
1584
|
+
] })
|
|
1585
|
+
] });
|
|
1586
|
+
}
|
|
1587
|
+
function le({
|
|
1588
|
+
items: t,
|
|
1589
|
+
fit: n = "cover",
|
|
1590
|
+
withKeyboardControls: i = !1,
|
|
1591
|
+
captionView: r = "visible"
|
|
1592
|
+
}) {
|
|
1593
|
+
const { prefix: c } = ft(), [s, e] = lt({
|
|
1594
|
+
loop: !0,
|
|
1595
|
+
direction: document.dir === "rtl" ? "rtl" : "ltr",
|
|
1596
|
+
duration: 30
|
|
1597
|
+
}), a = nn(e), [o, u] = ot(0), [h, l] = ot(!1), f = `${c}--photo-gallery`, g = `${f}__core`, d = () => {
|
|
1598
|
+
e && u(e.selectedScrollSnap());
|
|
1599
|
+
};
|
|
1600
|
+
return K(() => {
|
|
1601
|
+
if (e)
|
|
1602
|
+
return e.on("select", d), () => {
|
|
1603
|
+
e.off("select", d);
|
|
1604
|
+
};
|
|
1605
|
+
}, [e]), en(e, i && !h), /* @__PURE__ */ B("div", { className: f, tabIndex: 0, children: [
|
|
1606
|
+
/* @__PURE__ */ B("div", { className: `${f}__core`, children: [
|
|
1607
|
+
/* @__PURE__ */ v(
|
|
1608
|
+
"button",
|
|
1609
|
+
{
|
|
1610
|
+
className: `${g}__zoom`,
|
|
1611
|
+
type: "button",
|
|
1612
|
+
onClick: () => l(!0),
|
|
1613
|
+
"aria-label": "Open lightbox",
|
|
1614
|
+
children: /* @__PURE__ */ v(Ot, { name: "fullscreen", size: 24 })
|
|
1615
|
+
}
|
|
1616
|
+
),
|
|
1617
|
+
/* @__PURE__ */ v("div", { className: `${g}__controls`, children: /* @__PURE__ */ v(
|
|
1618
|
+
Dt,
|
|
1619
|
+
{
|
|
1620
|
+
onNext: a.onNextButtonClick,
|
|
1621
|
+
onPrev: a.onPrevButtonClick,
|
|
1622
|
+
onFirst: a.onFirstButtonClick,
|
|
1623
|
+
onLast: a.onLastButtonClick,
|
|
1624
|
+
indicator: { current: o + 1, total: t.length }
|
|
1625
|
+
}
|
|
1626
|
+
) }),
|
|
1627
|
+
/* @__PURE__ */ v("div", { className: `${g}__viewport`, ref: s, children: /* @__PURE__ */ v("div", { className: `${g}__container`, children: t.map((m, y) => /* @__PURE__ */ v("div", { className: `${g}__slide`, children: /* @__PURE__ */ v(
|
|
1628
|
+
"div",
|
|
1629
|
+
{
|
|
1630
|
+
className: q(
|
|
1631
|
+
`${g}__image`,
|
|
1632
|
+
`${g}__image--${n}`
|
|
1633
|
+
),
|
|
1634
|
+
children: /* @__PURE__ */ v(
|
|
1635
|
+
hn,
|
|
1636
|
+
{
|
|
1637
|
+
credit: m.credit,
|
|
1638
|
+
url: [
|
|
1639
|
+
{
|
|
1640
|
+
src: typeof m.src == "string" ? m.src : m.src.gallery,
|
|
1641
|
+
breakpoint: 800
|
|
1642
|
+
}
|
|
1643
|
+
]
|
|
1644
|
+
}
|
|
1645
|
+
)
|
|
1646
|
+
}
|
|
1647
|
+
) }, y)) }) })
|
|
1648
|
+
] }),
|
|
1649
|
+
r !== "hidden" && (r === "visible" || r === "ifExists" && t[o].caption ? /* @__PURE__ */ v("div", { className: `${f}__caption`, children: t[o].caption }) : null),
|
|
1650
|
+
/* @__PURE__ */ v(
|
|
1651
|
+
Zn,
|
|
1652
|
+
{
|
|
1653
|
+
items: t,
|
|
1654
|
+
selected: o,
|
|
1655
|
+
onSelect: (m) => {
|
|
1656
|
+
e == null || e.scrollTo(m);
|
|
1657
|
+
},
|
|
1658
|
+
onSeeAll: () => {
|
|
1659
|
+
l(!0);
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
),
|
|
1663
|
+
/* @__PURE__ */ v(
|
|
1664
|
+
Wn,
|
|
1665
|
+
{
|
|
1666
|
+
isOpen: h,
|
|
1667
|
+
onClose: () => l(!1),
|
|
1668
|
+
children: h && /* @__PURE__ */ v(
|
|
1669
|
+
ne,
|
|
1670
|
+
{
|
|
1671
|
+
items: t,
|
|
1672
|
+
parentIndex: o,
|
|
1673
|
+
onSelect: (m) => {
|
|
1674
|
+
e == null || e.scrollTo(m);
|
|
1675
|
+
},
|
|
1676
|
+
isActive: h
|
|
1677
|
+
}
|
|
1678
|
+
)
|
|
1679
|
+
}
|
|
1680
|
+
)
|
|
1681
|
+
] });
|
|
1682
|
+
}
|
|
1683
|
+
export {
|
|
1684
|
+
le as PhotoGallery
|
|
1685
|
+
};
|