@car-cutter/react-webplayer 0.7.0 → 0.8.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/dist/index.d.ts +15 -6
- package/dist/index.js +1646 -1460
- package/dist/index.umd.cjs +4 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import be, { createContext as
|
|
2
|
-
import { createRoot as
|
|
3
|
-
var
|
|
1
|
+
import be, { createContext as Me, useContext as ze, useRef as Z, useState as $, useCallback as I, useEffect as O, useMemo as te, Fragment as Wt } from "react";
|
|
2
|
+
import { createRoot as Yt } from "react-dom/client";
|
|
3
|
+
var ct = { exports: {} }, ge = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -10,31 +10,31 @@ var et = { exports: {} }, fe = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
17
|
-
var e = be, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
18
|
-
function d
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
for (
|
|
22
|
-
if (
|
|
23
|
-
return { $$typeof: r, type:
|
|
13
|
+
var et;
|
|
14
|
+
function Xt() {
|
|
15
|
+
if (et) return ge;
|
|
16
|
+
et = 1;
|
|
17
|
+
var e = be, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function f(d, c, v) {
|
|
19
|
+
var l, m = {}, w = null, C = null;
|
|
20
|
+
v !== void 0 && (w = "" + v), c.key !== void 0 && (w = "" + c.key), c.ref !== void 0 && (C = c.ref);
|
|
21
|
+
for (l in c) o.call(c, l) && !u.hasOwnProperty(l) && (m[l] = c[l]);
|
|
22
|
+
if (d && d.defaultProps) for (l in c = d.defaultProps, c) m[l] === void 0 && (m[l] = c[l]);
|
|
23
|
+
return { $$typeof: r, type: d, key: w, ref: C, props: m, _owner: s.current };
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return ge.Fragment = n, ge.jsx = f, ge.jsxs = f, ge;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
const
|
|
30
|
-
function
|
|
27
|
+
ct.exports = Xt();
|
|
28
|
+
var Ue = ct.exports;
|
|
29
|
+
const Ie = "cc-webplayer", We = "cc-webplayer-custom-media", Ye = "cc-webplayer-icon", dt = "composition-loading", ut = "composition-loaded", mt = "composition-load-error", pt = "item-change", ht = "extend-mode-on", ft = "extend-mode-off", gt = "hotspots-on", xt = "hotspots-off", wt = "gallery-open", vt = "gallery-close", Bt = !1, Gt = !1, Kt = !1, qt = "quality", Jt = 0, Qt = 1 / 0, er = 1, tr = !1, bt = "cc-webplayer:", rr = !1;
|
|
30
|
+
function Hn(e, r) {
|
|
31
31
|
return `https://cdn.car-cutter.com/gallery/${e}/${r}/composition_v3.json`;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function nr(e, r) {
|
|
34
34
|
const n = e.split("/"), o = n.pop();
|
|
35
35
|
return [n.join("/"), r, o].join("/");
|
|
36
36
|
}
|
|
37
|
-
var
|
|
37
|
+
var yt = { exports: {} }, xe = {};
|
|
38
38
|
/**
|
|
39
39
|
* @license React
|
|
40
40
|
* react-jsx-runtime.production.min.js
|
|
@@ -44,35 +44,35 @@ var pt = { exports: {} }, xe = {};
|
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
|
-
var
|
|
48
|
-
function
|
|
49
|
-
if (
|
|
50
|
-
|
|
51
|
-
var e = be, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
52
|
-
function d
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
for (
|
|
56
|
-
if (
|
|
57
|
-
return { $$typeof: r, type:
|
|
47
|
+
var tt;
|
|
48
|
+
function or() {
|
|
49
|
+
if (tt) return xe;
|
|
50
|
+
tt = 1;
|
|
51
|
+
var e = be, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
52
|
+
function f(d, c, v) {
|
|
53
|
+
var l, m = {}, w = null, C = null;
|
|
54
|
+
v !== void 0 && (w = "" + v), c.key !== void 0 && (w = "" + c.key), c.ref !== void 0 && (C = c.ref);
|
|
55
|
+
for (l in c) o.call(c, l) && !u.hasOwnProperty(l) && (m[l] = c[l]);
|
|
56
|
+
if (d && d.defaultProps) for (l in c = d.defaultProps, c) m[l] === void 0 && (m[l] = c[l]);
|
|
57
|
+
return { $$typeof: r, type: d, key: w, ref: C, props: m, _owner: s.current };
|
|
58
58
|
}
|
|
59
|
-
return xe.Fragment = n, xe.jsx =
|
|
59
|
+
return xe.Fragment = n, xe.jsx = f, xe.jsxs = f, xe;
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
var t =
|
|
63
|
-
async function
|
|
61
|
+
yt.exports = or();
|
|
62
|
+
var t = yt.exports;
|
|
63
|
+
async function sr(e) {
|
|
64
64
|
const r = await fetch(e);
|
|
65
65
|
if (!r.ok)
|
|
66
66
|
throw new Error(`Failed to fetch composition: ${r.statusText}`);
|
|
67
67
|
return await r.json();
|
|
68
68
|
}
|
|
69
|
-
const
|
|
70
|
-
const [r, n] =
|
|
69
|
+
const De = /* @__PURE__ */ new Map(), ar = (e) => {
|
|
70
|
+
const [r, n] = $({
|
|
71
71
|
status: "pending",
|
|
72
72
|
isSuccess: !1
|
|
73
73
|
});
|
|
74
|
-
return
|
|
75
|
-
const o = (
|
|
74
|
+
return O(() => {
|
|
75
|
+
const o = (u) => n({ status: "success", data: u, isSuccess: !0 }), s = De.get(e);
|
|
76
76
|
if (s && !(s instanceof Promise)) {
|
|
77
77
|
o(s);
|
|
78
78
|
return;
|
|
@@ -82,67 +82,234 @@ const Oe = /* @__PURE__ */ new Map(), Kt = (e) => {
|
|
|
82
82
|
isSuccess: !1
|
|
83
83
|
}), async function() {
|
|
84
84
|
try {
|
|
85
|
-
let
|
|
85
|
+
let u;
|
|
86
86
|
if (s)
|
|
87
|
-
|
|
87
|
+
u = await s;
|
|
88
88
|
else {
|
|
89
|
-
const
|
|
90
|
-
|
|
89
|
+
const f = sr(e);
|
|
90
|
+
De.set(e, f), u = await f, De.set(e, u);
|
|
91
91
|
}
|
|
92
|
-
o(
|
|
93
|
-
} catch (
|
|
92
|
+
o(u);
|
|
93
|
+
} catch (u) {
|
|
94
94
|
n({
|
|
95
95
|
status: "error",
|
|
96
96
|
isSuccess: !1,
|
|
97
|
-
error:
|
|
97
|
+
error: u
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
}();
|
|
101
101
|
}, [e]), r;
|
|
102
|
-
},
|
|
103
|
-
const e =
|
|
102
|
+
}, jt = Me(null), re = () => {
|
|
103
|
+
const e = ze(jt);
|
|
104
|
+
if (!e)
|
|
105
|
+
throw new Error(
|
|
106
|
+
"useGlobalContext must be used within a GlobalContextProvider"
|
|
107
|
+
);
|
|
108
|
+
return e;
|
|
109
|
+
}, ir = ({ children: e, ...r }) => /* @__PURE__ */ t.jsx(jt.Provider, { value: r, children: e }), kt = Me(null), oe = () => {
|
|
110
|
+
const e = ze(kt);
|
|
104
111
|
if (!e)
|
|
105
112
|
throw new Error(
|
|
106
113
|
"useCompositionContext must be used within a CompositionContextProvider"
|
|
107
114
|
);
|
|
108
115
|
return e;
|
|
109
|
-
},
|
|
110
|
-
const {
|
|
111
|
-
|
|
116
|
+
}, lr = ({ composition: e, children: r }) => {
|
|
117
|
+
const {
|
|
118
|
+
aspectRatio: n,
|
|
119
|
+
categories: o,
|
|
120
|
+
imageHdWidth: s,
|
|
121
|
+
imageSubWidths: u
|
|
122
|
+
} = e, { minMediaWidth: f, maxMediaWidth: d } = re(), c = te(
|
|
123
|
+
() => o.flatMap(({ items: m }) => m),
|
|
112
124
|
[o]
|
|
113
|
-
),
|
|
125
|
+
), v = {
|
|
114
126
|
aspectRatio: n.replace(":", " / ")
|
|
115
|
-
}
|
|
127
|
+
}, l = te(() => {
|
|
128
|
+
const m = u.concat(s), w = m.sort((a, h) => a - h), C = w.filter(
|
|
129
|
+
(a) => a >= f && a <= d
|
|
130
|
+
);
|
|
131
|
+
if (C.length === 0) {
|
|
132
|
+
const a = (f + d) / 2, h = m.reduce(
|
|
133
|
+
(x, j) => Math.abs(j - a) < Math.abs(x - a) ? j : x,
|
|
134
|
+
s
|
|
135
|
+
);
|
|
136
|
+
return console.warn(
|
|
137
|
+
`None of available media widths (${w.join("|")}) match the given constraints (${f > 0 ? `${f} ≤ ` : ""}width${d < 1 / 0 ? ` ≤ ${d}` : ""}).`,
|
|
138
|
+
`Using the closest width instead (${h}).`
|
|
139
|
+
), [h];
|
|
140
|
+
}
|
|
141
|
+
return C;
|
|
142
|
+
}, [u, s, f, d]);
|
|
116
143
|
return /* @__PURE__ */ t.jsx(
|
|
117
|
-
|
|
144
|
+
kt.Provider,
|
|
118
145
|
{
|
|
119
146
|
value: {
|
|
120
147
|
...e,
|
|
121
|
-
items:
|
|
122
|
-
aspectRatioStyle:
|
|
148
|
+
items: c,
|
|
149
|
+
aspectRatioStyle: v,
|
|
150
|
+
usedMediaWidths: l
|
|
123
151
|
},
|
|
124
152
|
children: r
|
|
125
153
|
}
|
|
126
154
|
);
|
|
127
|
-
},
|
|
128
|
-
function
|
|
155
|
+
}, Et = 500, Ze = 0.75, _e = 1 + Ze * 2;
|
|
156
|
+
function le(e, r, n) {
|
|
129
157
|
return Math.min(Math.max(e, r), n);
|
|
130
158
|
}
|
|
131
|
-
const Le = (e, r, n) => e + (r - e) * n,
|
|
132
|
-
const e =
|
|
159
|
+
const Le = (e, r, n) => e + (r - e) * n, rt = (e, r) => (e % r + r) % r, Ct = Me(null), Xe = () => ze(Ct), ye = () => {
|
|
160
|
+
const e = Xe();
|
|
133
161
|
if (!e)
|
|
134
162
|
throw new Error(
|
|
135
|
-
"
|
|
163
|
+
"useCustomizationContext must be used within a CustomizationContextProvider"
|
|
136
164
|
);
|
|
137
165
|
return e;
|
|
138
|
-
},
|
|
139
|
-
const
|
|
166
|
+
}, nt = "*:size-full", ot = "*:object-cover *:size-full", cr = ({ children: e }) => {
|
|
167
|
+
const { compositionUrl: r } = re(), n = I(
|
|
168
|
+
() => document.querySelector(
|
|
169
|
+
`${Ie}[composition-url="${r}"]`
|
|
170
|
+
),
|
|
171
|
+
[r]
|
|
172
|
+
), o = I((a) => {
|
|
173
|
+
const h = a.querySelectorAll(Ye), x = /* @__PURE__ */ new Map();
|
|
174
|
+
for (const j of h) {
|
|
175
|
+
const k = j.getAttribute("name");
|
|
176
|
+
if (!k) {
|
|
177
|
+
console.warn("Icon element is missing a name attribute");
|
|
178
|
+
continue;
|
|
179
|
+
}
|
|
180
|
+
const g = j.innerHTML, p = g ? /* @__PURE__ */ t.jsx(
|
|
181
|
+
"div",
|
|
182
|
+
{
|
|
183
|
+
className: nt,
|
|
184
|
+
dangerouslySetInnerHTML: { __html: g }
|
|
185
|
+
}
|
|
186
|
+
) : void 0;
|
|
187
|
+
if (!p) {
|
|
188
|
+
console.warn(`Icon "${k}" customization is empty.`);
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
x.set(k, { Icon: p });
|
|
192
|
+
}
|
|
193
|
+
return x;
|
|
194
|
+
}, []), [s, u] = $(
|
|
195
|
+
() => {
|
|
196
|
+
const a = n();
|
|
197
|
+
return a ? o(a) : /* @__PURE__ */ new Map();
|
|
198
|
+
}
|
|
199
|
+
);
|
|
200
|
+
O(() => {
|
|
201
|
+
const a = n();
|
|
202
|
+
if (!a)
|
|
203
|
+
return;
|
|
204
|
+
const h = new MutationObserver(() => {
|
|
205
|
+
u(o(a));
|
|
206
|
+
});
|
|
207
|
+
return h.observe(a, {
|
|
208
|
+
childList: !0,
|
|
209
|
+
subtree: !0
|
|
210
|
+
}), () => h.disconnect();
|
|
211
|
+
}, [o, n]);
|
|
212
|
+
const f = I(
|
|
213
|
+
(a) => s.get(a),
|
|
214
|
+
[s]
|
|
215
|
+
), d = I(
|
|
216
|
+
(a, h) => {
|
|
217
|
+
u((x) => {
|
|
218
|
+
const { Icon: j, ...k } = h;
|
|
219
|
+
return new Map(
|
|
220
|
+
x.set(a, {
|
|
221
|
+
...k,
|
|
222
|
+
Icon: /* @__PURE__ */ t.jsx("div", { className: nt, children: j })
|
|
223
|
+
})
|
|
224
|
+
);
|
|
225
|
+
});
|
|
226
|
+
},
|
|
227
|
+
[]
|
|
228
|
+
), c = I((a) => {
|
|
229
|
+
u((h) => (h.delete(a), new Map(h)));
|
|
230
|
+
}, []), v = I((a) => {
|
|
231
|
+
const h = a.querySelectorAll(
|
|
232
|
+
We
|
|
233
|
+
), x = new Array();
|
|
234
|
+
for (const j of h) {
|
|
235
|
+
const k = j.innerHTML;
|
|
236
|
+
if (!k) {
|
|
237
|
+
console.warn("Custom media element is empty");
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
const g = Number(j.getAttribute("index"));
|
|
241
|
+
if (Number.isNaN(g)) {
|
|
242
|
+
console.warn("Custom media element is missing the 'index' attribute");
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
const p = j.getAttribute("thumbnail-src") ?? void 0, b = JSON.stringify({ index: g, thumbnailSrc: p });
|
|
246
|
+
x.push({
|
|
247
|
+
id: b,
|
|
248
|
+
Media: /* @__PURE__ */ t.jsx(
|
|
249
|
+
"div",
|
|
250
|
+
{
|
|
251
|
+
className: ot,
|
|
252
|
+
dangerouslySetInnerHTML: { __html: k }
|
|
253
|
+
}
|
|
254
|
+
),
|
|
255
|
+
index: g,
|
|
256
|
+
thumbnailSrc: p
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
return x;
|
|
260
|
+
}, []), [l, m] = $(() => {
|
|
261
|
+
const a = n();
|
|
262
|
+
return a ? v(a) : [];
|
|
263
|
+
});
|
|
264
|
+
O(() => {
|
|
265
|
+
const a = n();
|
|
266
|
+
if (!a)
|
|
267
|
+
return;
|
|
268
|
+
const h = new MutationObserver(() => {
|
|
269
|
+
m(v(a));
|
|
270
|
+
});
|
|
271
|
+
return h.observe(a, {
|
|
272
|
+
childList: !0,
|
|
273
|
+
subtree: !0
|
|
274
|
+
}), () => h.disconnect();
|
|
275
|
+
}, [v, n]);
|
|
276
|
+
const w = I((a) => {
|
|
277
|
+
const { Media: h, ...x } = a, j = /* @__PURE__ */ t.jsx("div", { className: ot, children: h }), k = JSON.stringify(x);
|
|
278
|
+
return m((g) => [
|
|
279
|
+
...g,
|
|
280
|
+
{
|
|
281
|
+
id: k,
|
|
282
|
+
Media: j,
|
|
283
|
+
...x
|
|
284
|
+
}
|
|
285
|
+
]), k;
|
|
286
|
+
}, []), C = I((a) => {
|
|
287
|
+
m(
|
|
288
|
+
(h) => h.filter((x) => x.id !== a)
|
|
289
|
+
);
|
|
290
|
+
}, []);
|
|
291
|
+
return /* @__PURE__ */ t.jsx(
|
|
292
|
+
Ct.Provider,
|
|
293
|
+
{
|
|
294
|
+
value: {
|
|
295
|
+
getIconConfig: f,
|
|
296
|
+
registerIconConfig: d,
|
|
297
|
+
unregisterIconConfig: c,
|
|
298
|
+
customMediaList: l,
|
|
299
|
+
registerCustomMedia: w,
|
|
300
|
+
unregisterCustomMedia: C
|
|
301
|
+
},
|
|
302
|
+
children: e
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
}, Nt = Me(null), J = () => {
|
|
306
|
+
const e = ze(Nt);
|
|
140
307
|
if (!e)
|
|
141
308
|
throw new Error(
|
|
142
309
|
"useControlsContext must be used within a ControlsContextProvider"
|
|
143
310
|
);
|
|
144
311
|
return e;
|
|
145
|
-
},
|
|
312
|
+
}, dr = ({
|
|
146
313
|
children: e
|
|
147
314
|
}) => {
|
|
148
315
|
const {
|
|
@@ -150,196 +317,220 @@ const Le = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, ft = ze
|
|
|
150
317
|
preventFullScreen: n,
|
|
151
318
|
emitEvent: o,
|
|
152
319
|
isFullScreen: s,
|
|
153
|
-
requestFullscreen:
|
|
154
|
-
exitFullscreen:
|
|
155
|
-
} =
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
320
|
+
requestFullscreen: u,
|
|
321
|
+
exitFullscreen: f
|
|
322
|
+
} = re(), { customMediaList: d } = ye(), { categories: c, items: v } = oe(), l = te(() => {
|
|
323
|
+
const P = new Array(
|
|
324
|
+
...v
|
|
325
|
+
), K = d.slice().sort((X, B) => X.index < 0 && B.index < 0 ? B.index - X.index : X.index < 0 ? 1 : B.index < 0 ? -1 : X.index - B.index);
|
|
326
|
+
for (const X of K) {
|
|
327
|
+
let B = X.index;
|
|
328
|
+
B < 0 && (B = P.length + B + 1), P.splice(B, 0, {
|
|
329
|
+
type: "custom",
|
|
330
|
+
...X
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
return P;
|
|
334
|
+
}, [v, d]), [m, w] = $(l.map(() => null));
|
|
335
|
+
O(() => {
|
|
336
|
+
w(l.map(() => null));
|
|
337
|
+
}, [l]);
|
|
338
|
+
const C = I(
|
|
339
|
+
(P, K) => {
|
|
340
|
+
w(
|
|
341
|
+
(X) => X.map((B, Ut) => Ut === P ? K : B)
|
|
159
342
|
);
|
|
160
343
|
},
|
|
161
344
|
[]
|
|
162
|
-
), [
|
|
345
|
+
), [a, h] = $(0), [x, j] = $(null), k = x ?? a, g = l[k], p = m[k], [b, E] = $(
|
|
163
346
|
null
|
|
164
|
-
),
|
|
165
|
-
if (
|
|
347
|
+
), L = !!b, D = I(() => E(null), []), T = I(() => {
|
|
348
|
+
if (L || x !== null)
|
|
166
349
|
return;
|
|
167
|
-
const
|
|
168
|
-
|
|
350
|
+
const P = a - 1;
|
|
351
|
+
P >= 0 ? j(P) : r && (E("first_to_last"), j(l.length - 1));
|
|
169
352
|
}, [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
353
|
+
L,
|
|
354
|
+
x,
|
|
355
|
+
a,
|
|
173
356
|
r,
|
|
174
357
|
l.length
|
|
175
|
-
]),
|
|
176
|
-
if (
|
|
358
|
+
]), N = I(() => {
|
|
359
|
+
if (L || x !== null)
|
|
177
360
|
return;
|
|
178
|
-
const
|
|
179
|
-
|
|
361
|
+
const P = a + 1;
|
|
362
|
+
P < l.length ? j(P) : r && (E("last_to_first"), j(0));
|
|
180
363
|
}, [
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
364
|
+
L,
|
|
365
|
+
x,
|
|
366
|
+
a,
|
|
184
367
|
l.length,
|
|
185
368
|
r
|
|
186
|
-
]),
|
|
187
|
-
(
|
|
188
|
-
const
|
|
189
|
-
|
|
369
|
+
]), z = I(
|
|
370
|
+
(P) => {
|
|
371
|
+
const K = Math.min(a, P), X = Math.max(a, P);
|
|
372
|
+
m.slice(K, X + 1).filter((B) => B === null).length > 2 && E("instant"), j(P);
|
|
190
373
|
},
|
|
191
|
-
[
|
|
374
|
+
[a, m]
|
|
192
375
|
);
|
|
193
|
-
|
|
194
|
-
o(
|
|
195
|
-
index:
|
|
196
|
-
item:
|
|
376
|
+
O(() => {
|
|
377
|
+
o(pt, {
|
|
378
|
+
index: k,
|
|
379
|
+
item: g
|
|
197
380
|
});
|
|
198
|
-
}, [
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
381
|
+
}, [g, o, k]);
|
|
382
|
+
const S = te(() => {
|
|
383
|
+
let P;
|
|
384
|
+
if (g.type === "custom") {
|
|
385
|
+
const K = l.slice(0, k).reverse().find((X) => X.type !== "custom") ?? l.slice(k + 1).find((X) => X.type !== "custom");
|
|
386
|
+
if (!K)
|
|
387
|
+
throw new Error("No non-custom item found");
|
|
388
|
+
P = K;
|
|
389
|
+
} else
|
|
390
|
+
P = g;
|
|
391
|
+
for (const K of c)
|
|
392
|
+
if (K.items.includes(P))
|
|
393
|
+
return K.id;
|
|
203
394
|
throw new Error("Current item not found in any category");
|
|
204
|
-
}, [
|
|
205
|
-
(
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
395
|
+
}, [c, g, l, k]), V = I(
|
|
396
|
+
(P) => {
|
|
397
|
+
const K = c.find(({ id: B }) => B === P)?.items[0];
|
|
398
|
+
if (K === void 0)
|
|
208
399
|
throw new Error("Failed to find target category");
|
|
209
|
-
const
|
|
210
|
-
|
|
400
|
+
const X = l.findIndex((B) => B === K);
|
|
401
|
+
z(X);
|
|
211
402
|
},
|
|
212
|
-
[
|
|
213
|
-
),
|
|
214
|
-
switch (
|
|
403
|
+
[c, l, z]
|
|
404
|
+
), R = te(() => {
|
|
405
|
+
switch (g.type) {
|
|
215
406
|
case "image":
|
|
216
|
-
return !!
|
|
407
|
+
return !!g.hotspots?.length;
|
|
217
408
|
case "360":
|
|
218
|
-
return
|
|
219
|
-
|
|
409
|
+
return p === "running";
|
|
410
|
+
default:
|
|
220
411
|
return !1;
|
|
221
412
|
}
|
|
222
|
-
}, [
|
|
223
|
-
const
|
|
224
|
-
P
|
|
225
|
-
}, [o,
|
|
226
|
-
switch (
|
|
227
|
-
case "image":
|
|
228
|
-
case "360":
|
|
229
|
-
return !0;
|
|
413
|
+
}, [g, p]), [y, i] = $(!0), _ = I(() => {
|
|
414
|
+
const P = !y;
|
|
415
|
+
i(P), o(P ? gt : xt);
|
|
416
|
+
}, [o, y]), M = te(() => {
|
|
417
|
+
switch (g.type) {
|
|
230
418
|
case "video":
|
|
231
|
-
return
|
|
419
|
+
return p !== "running";
|
|
420
|
+
default:
|
|
421
|
+
return !0;
|
|
232
422
|
}
|
|
233
|
-
}, [
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
}, [o,
|
|
237
|
-
switch (
|
|
423
|
+
}, [g, p]), [A, F] = $(!1), U = I(() => {
|
|
424
|
+
const P = !A;
|
|
425
|
+
F(P), o(P ? wt : vt);
|
|
426
|
+
}, [o, A]), [W, Y] = $(null), q = I(() => Y(null), []), ee = !!W, fe = te(() => {
|
|
427
|
+
switch (g.type) {
|
|
238
428
|
case "image":
|
|
239
429
|
return !0;
|
|
240
430
|
case "360":
|
|
241
|
-
return
|
|
242
|
-
|
|
431
|
+
return p === "running";
|
|
432
|
+
default:
|
|
243
433
|
return !1;
|
|
244
434
|
}
|
|
245
|
-
}, [
|
|
246
|
-
|
|
247
|
-
}, []),
|
|
248
|
-
|
|
249
|
-
}, [
|
|
250
|
-
async (
|
|
251
|
-
|
|
435
|
+
}, [g.type, p]), [se, ae] = $(1), je = se !== 1, Se = se < _e, Ve = se > 1, ce = I((P) => {
|
|
436
|
+
ae((K) => le(K + P, 1, _e));
|
|
437
|
+
}, []), Te = I(() => ae(1), []), Dt = I(() => ce(Ze), [ce]), Ft = I(() => ce(-Ze), [ce]), He = I(() => {
|
|
438
|
+
Te(), q();
|
|
439
|
+
}, [Te, q]), [de, $t] = $(!1), [Re, Je] = $(), [Ae, Qe] = $(!1), ue = I(
|
|
440
|
+
async (P) => {
|
|
441
|
+
He(), $t(P), o(P ? ht : ft);
|
|
252
442
|
},
|
|
253
|
-
[o,
|
|
254
|
-
),
|
|
255
|
-
clearTimeout(
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
},
|
|
259
|
-
|
|
260
|
-
}, [
|
|
261
|
-
if (
|
|
262
|
-
const
|
|
263
|
-
if (
|
|
443
|
+
[o, He]
|
|
444
|
+
), me = I(() => {
|
|
445
|
+
clearTimeout(Re);
|
|
446
|
+
const P = setTimeout(() => {
|
|
447
|
+
Je(void 0);
|
|
448
|
+
}, Et);
|
|
449
|
+
Je(P);
|
|
450
|
+
}, [Re]), Pe = I(async () => {
|
|
451
|
+
if (me(), !n) {
|
|
452
|
+
const P = await u();
|
|
453
|
+
if (Qe(!P), P)
|
|
264
454
|
return;
|
|
265
455
|
}
|
|
266
|
-
|
|
456
|
+
ue(!0);
|
|
267
457
|
}, [
|
|
268
458
|
n,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
]),
|
|
273
|
-
|
|
459
|
+
ue,
|
|
460
|
+
u,
|
|
461
|
+
me
|
|
462
|
+
]), Oe = I(async () => {
|
|
463
|
+
me(), !(!n && (Qe(!1), await f())) && ue(!1);
|
|
274
464
|
}, [
|
|
275
465
|
n,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
]),
|
|
280
|
-
|
|
281
|
-
}, [
|
|
282
|
-
return
|
|
283
|
-
n ||
|
|
466
|
+
ue,
|
|
467
|
+
f,
|
|
468
|
+
me
|
|
469
|
+
]), Zt = I(() => {
|
|
470
|
+
de ? Oe() : Pe();
|
|
471
|
+
}, [Oe, Pe, de]);
|
|
472
|
+
return O(() => {
|
|
473
|
+
n || Ae && de || s !== de && (me(), ue(s));
|
|
284
474
|
}, [
|
|
285
475
|
n,
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
476
|
+
ue,
|
|
477
|
+
de,
|
|
478
|
+
Ae,
|
|
289
479
|
s,
|
|
290
|
-
|
|
480
|
+
me
|
|
291
481
|
]), /* @__PURE__ */ t.jsx(
|
|
292
|
-
|
|
482
|
+
Nt.Provider,
|
|
293
483
|
{
|
|
294
484
|
value: {
|
|
295
|
-
|
|
485
|
+
items: l,
|
|
486
|
+
setItemInteraction: C,
|
|
296
487
|
slidable: l.length > 1,
|
|
297
|
-
carrouselItemIndex:
|
|
298
|
-
setCarrouselItemIndex:
|
|
299
|
-
itemIndexCommand:
|
|
300
|
-
setItemIndexCommand:
|
|
301
|
-
masterItemIndex:
|
|
302
|
-
specialCommand:
|
|
303
|
-
isRunningSpecialCommand:
|
|
304
|
-
finishSpecialCommand:
|
|
305
|
-
prevItem:
|
|
306
|
-
nextItem:
|
|
307
|
-
scrollToItemIndex:
|
|
308
|
-
displayedCategoryId:
|
|
309
|
-
changeCategory:
|
|
310
|
-
enableHotspotsControl:
|
|
311
|
-
showHotspots:
|
|
312
|
-
toggleHotspots:
|
|
313
|
-
showGalleryControls:
|
|
314
|
-
showGallery:
|
|
315
|
-
toggleGallery:
|
|
316
|
-
shownDetails:
|
|
317
|
-
isShowingDetails:
|
|
488
|
+
carrouselItemIndex: a,
|
|
489
|
+
setCarrouselItemIndex: h,
|
|
490
|
+
itemIndexCommand: x,
|
|
491
|
+
setItemIndexCommand: j,
|
|
492
|
+
masterItemIndex: k,
|
|
493
|
+
specialCommand: b,
|
|
494
|
+
isRunningSpecialCommand: L,
|
|
495
|
+
finishSpecialCommand: D,
|
|
496
|
+
prevItem: T,
|
|
497
|
+
nextItem: N,
|
|
498
|
+
scrollToItemIndex: z,
|
|
499
|
+
displayedCategoryId: S,
|
|
500
|
+
changeCategory: V,
|
|
501
|
+
enableHotspotsControl: R,
|
|
502
|
+
showHotspots: y,
|
|
503
|
+
toggleHotspots: _,
|
|
504
|
+
showGalleryControls: M,
|
|
505
|
+
showGallery: A,
|
|
506
|
+
toggleGallery: U,
|
|
507
|
+
shownDetails: W,
|
|
508
|
+
isShowingDetails: ee,
|
|
318
509
|
setShownDetails: Y,
|
|
319
|
-
resetShownDetails:
|
|
320
|
-
showZoomControls:
|
|
321
|
-
zoom:
|
|
322
|
-
isZooming:
|
|
323
|
-
setZoom:
|
|
324
|
-
resetZoom:
|
|
325
|
-
canZoomIn:
|
|
326
|
-
zoomIn:
|
|
327
|
-
canZoomOut:
|
|
328
|
-
zoomOut:
|
|
329
|
-
resetView:
|
|
330
|
-
extendMode:
|
|
331
|
-
enableExtendMode:
|
|
332
|
-
disableExtendMode:
|
|
333
|
-
toggleExtendMode:
|
|
334
|
-
extendTransition: !!
|
|
335
|
-
fakeFullScreen:
|
|
510
|
+
resetShownDetails: q,
|
|
511
|
+
showZoomControls: fe,
|
|
512
|
+
zoom: se,
|
|
513
|
+
isZooming: je,
|
|
514
|
+
setZoom: ae,
|
|
515
|
+
resetZoom: Te,
|
|
516
|
+
canZoomIn: Se,
|
|
517
|
+
zoomIn: Dt,
|
|
518
|
+
canZoomOut: Ve,
|
|
519
|
+
zoomOut: Ft,
|
|
520
|
+
resetView: He,
|
|
521
|
+
extendMode: de,
|
|
522
|
+
enableExtendMode: Pe,
|
|
523
|
+
disableExtendMode: Oe,
|
|
524
|
+
toggleExtendMode: Zt,
|
|
525
|
+
extendTransition: !!Re,
|
|
526
|
+
fakeFullScreen: Ae
|
|
336
527
|
},
|
|
337
528
|
children: e
|
|
338
529
|
}
|
|
339
530
|
);
|
|
340
|
-
},
|
|
341
|
-
...
|
|
342
|
-
...
|
|
531
|
+
}, Lt = ["left", "center", "right", "fullW"], _t = ["top", "middle", "bottom", "fullH"], ur = [
|
|
532
|
+
...Lt,
|
|
533
|
+
..._t,
|
|
343
534
|
"top-left",
|
|
344
535
|
"top-center",
|
|
345
536
|
"top-right",
|
|
@@ -357,24 +548,24 @@ const Le = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, ft = ze
|
|
|
357
548
|
"fullH-right",
|
|
358
549
|
"fullW-fullW"
|
|
359
550
|
];
|
|
360
|
-
function
|
|
361
|
-
return
|
|
551
|
+
function mr(e) {
|
|
552
|
+
return Lt.includes(e);
|
|
362
553
|
}
|
|
363
|
-
function
|
|
364
|
-
return
|
|
554
|
+
function pr(e) {
|
|
555
|
+
return _t.includes(e);
|
|
365
556
|
}
|
|
366
|
-
function
|
|
367
|
-
return
|
|
557
|
+
function hr(e) {
|
|
558
|
+
return ur.includes(e);
|
|
368
559
|
}
|
|
369
|
-
function
|
|
370
|
-
if (!
|
|
560
|
+
function fr(e) {
|
|
561
|
+
if (!hr(e))
|
|
371
562
|
throw new Error(`Invalid position: ${e}`);
|
|
372
|
-
return
|
|
563
|
+
return pr(e) ? [e, void 0] : mr(e) ? [void 0, e] : e.split("-");
|
|
373
564
|
}
|
|
374
|
-
function
|
|
565
|
+
function H(...e) {
|
|
375
566
|
return e.filter((r) => !!r).map((r) => r.trim()).join(" ");
|
|
376
567
|
}
|
|
377
|
-
function
|
|
568
|
+
function gr(e) {
|
|
378
569
|
switch (e) {
|
|
379
570
|
case "left":
|
|
380
571
|
return "left-1 small:left-2";
|
|
@@ -386,7 +577,7 @@ function ar(e) {
|
|
|
386
577
|
return "inset-x-1 small:inset-x-2";
|
|
387
578
|
}
|
|
388
579
|
}
|
|
389
|
-
function
|
|
580
|
+
function Mt(e) {
|
|
390
581
|
switch (e) {
|
|
391
582
|
case "top":
|
|
392
583
|
return "top-1 small:top-2";
|
|
@@ -398,82 +589,25 @@ function bt(e) {
|
|
|
398
589
|
return "inset-y-1 small:inset-y-2";
|
|
399
590
|
}
|
|
400
591
|
}
|
|
401
|
-
function
|
|
592
|
+
function xr({
|
|
402
593
|
positionX: e,
|
|
403
594
|
positionY: r
|
|
404
595
|
}) {
|
|
405
596
|
const n = new Array();
|
|
406
|
-
return e && n.push(
|
|
597
|
+
return e && n.push(gr(e)), r && n.push(Mt(r)), n.join(" ");
|
|
407
598
|
}
|
|
408
|
-
function
|
|
409
|
-
const [r, n] =
|
|
410
|
-
return
|
|
599
|
+
function pe(e) {
|
|
600
|
+
const [r, n] = fr(e);
|
|
601
|
+
return xr({ positionX: n, positionY: r });
|
|
411
602
|
}
|
|
412
|
-
const
|
|
413
|
-
const e = jt();
|
|
414
|
-
if (!e)
|
|
415
|
-
throw new Error(
|
|
416
|
-
"useCustomizationContext must be used within a CustomizationContextProvider"
|
|
417
|
-
);
|
|
418
|
-
return e;
|
|
419
|
-
}, lr = ({ children: e }) => {
|
|
420
|
-
const [r, n] = F(
|
|
421
|
-
/* @__PURE__ */ new Map()
|
|
422
|
-
), o = M(
|
|
423
|
-
(d) => {
|
|
424
|
-
const a = r.get(d);
|
|
425
|
-
if (a)
|
|
426
|
-
return a;
|
|
427
|
-
const l = document.querySelector(
|
|
428
|
-
`${Ae}[name="${d}"]`
|
|
429
|
-
);
|
|
430
|
-
if (!l)
|
|
431
|
-
return;
|
|
432
|
-
const w = l.getAttribute("color") ?? void 0, m = l.innerHTML, c = m ? /* @__PURE__ */ t.jsx(
|
|
433
|
-
"div",
|
|
434
|
-
{
|
|
435
|
-
className: "size-full",
|
|
436
|
-
dangerouslySetInnerHTML: { __html: m }
|
|
437
|
-
}
|
|
438
|
-
) : void 0;
|
|
439
|
-
if (!(!w && !c))
|
|
440
|
-
return { Icon: c, color: w };
|
|
441
|
-
},
|
|
442
|
-
[r]
|
|
443
|
-
), s = M(
|
|
444
|
-
(d, a) => {
|
|
445
|
-
n((l) => new Map(l.set(d, a)));
|
|
446
|
-
},
|
|
447
|
-
[]
|
|
448
|
-
), p = M((d) => {
|
|
449
|
-
n((a) => (a.delete(d), new Map(a)));
|
|
450
|
-
}, []);
|
|
451
|
-
return /* @__PURE__ */ t.jsx(
|
|
452
|
-
yt.Provider,
|
|
453
|
-
{
|
|
454
|
-
value: {
|
|
455
|
-
getIconConfig: o,
|
|
456
|
-
setIconConfig: s,
|
|
457
|
-
resetIconConfig: p
|
|
458
|
-
},
|
|
459
|
-
children: e
|
|
460
|
-
}
|
|
461
|
-
);
|
|
462
|
-
}, U = ({
|
|
603
|
+
const G = ({
|
|
463
604
|
customizationKey: e,
|
|
464
|
-
className: r
|
|
605
|
+
className: r,
|
|
465
606
|
children: n
|
|
466
607
|
}) => {
|
|
467
|
-
const { getIconConfig: o } =
|
|
468
|
-
return s ? /* @__PURE__ */ t.jsx(
|
|
469
|
-
|
|
470
|
-
{
|
|
471
|
-
className: r,
|
|
472
|
-
style: { color: s?.color },
|
|
473
|
-
children: s?.Icon ?? n
|
|
474
|
-
}
|
|
475
|
-
) : n;
|
|
476
|
-
}, cr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_CLOSE", children: /* @__PURE__ */ t.jsx(
|
|
608
|
+
const { getIconConfig: o } = ye(), s = o(e)?.Icon;
|
|
609
|
+
return s ? r ? /* @__PURE__ */ t.jsx("div", { className: r, children: s }) : s : n;
|
|
610
|
+
}, wr = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_CLOSE", children: /* @__PURE__ */ t.jsx(
|
|
477
611
|
"svg",
|
|
478
612
|
{
|
|
479
613
|
className: e,
|
|
@@ -490,7 +624,7 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
490
624
|
}
|
|
491
625
|
)
|
|
492
626
|
}
|
|
493
|
-
) }),
|
|
627
|
+
) }), vr = {
|
|
494
628
|
fill: {
|
|
495
629
|
primary: "bg-primary text-primary-foreground hover:opacity-80",
|
|
496
630
|
neutral: "bg-background text-neutral-foreground hover:opacity-80"
|
|
@@ -499,35 +633,35 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
499
633
|
primary: "bg-transparent text-foreground hover:bg-primary/25",
|
|
500
634
|
neutral: "bg-transparent text-background hover:bg-foreground/25"
|
|
501
635
|
}
|
|
502
|
-
},
|
|
636
|
+
}, br = {
|
|
503
637
|
button: "h-8 px-2",
|
|
504
638
|
icon: "size-8 p-2"
|
|
505
|
-
},
|
|
639
|
+
}, Q = ({
|
|
506
640
|
variant: e = "fill",
|
|
507
641
|
shape: r = "button",
|
|
508
642
|
color: n = "primary",
|
|
509
643
|
className: o,
|
|
510
644
|
children: s,
|
|
511
|
-
...
|
|
645
|
+
...u
|
|
512
646
|
}) => {
|
|
513
|
-
const
|
|
647
|
+
const f = vr[e][n], d = br[r];
|
|
514
648
|
return /* @__PURE__ */ t.jsx(
|
|
515
649
|
"button",
|
|
516
650
|
{
|
|
517
|
-
className:
|
|
651
|
+
className: H(
|
|
518
652
|
"flex items-center justify-center rounded-ui text-sm transition-all disabled:opacity-60",
|
|
653
|
+
f,
|
|
519
654
|
d,
|
|
520
|
-
a,
|
|
521
655
|
o
|
|
522
656
|
),
|
|
523
|
-
...
|
|
657
|
+
...u,
|
|
524
658
|
children: s
|
|
525
659
|
}
|
|
526
660
|
);
|
|
527
|
-
},
|
|
661
|
+
}, zt = (e) => /* @__PURE__ */ t.jsx(Q, { color: "neutral", shape: "icon", ...e, children: /* @__PURE__ */ t.jsx(wr, { className: "size-full" }) }), It = ({ text: e, className: r }) => /* @__PURE__ */ t.jsxs(
|
|
528
662
|
"div",
|
|
529
663
|
{
|
|
530
|
-
className:
|
|
664
|
+
className: H(
|
|
531
665
|
"flex size-full flex-col items-center justify-center gap-y-4",
|
|
532
666
|
r
|
|
533
667
|
),
|
|
@@ -542,121 +676,117 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
542
676
|
/* @__PURE__ */ t.jsx("div", { className: "text-2xl font-bold", children: e })
|
|
543
677
|
]
|
|
544
678
|
}
|
|
545
|
-
),
|
|
679
|
+
), yr = {
|
|
546
680
|
primary: "border-primary",
|
|
547
681
|
foreground: "border-foreground",
|
|
548
682
|
background: "border-background"
|
|
549
|
-
},
|
|
683
|
+
}, jr = {
|
|
550
684
|
sm: "size-4 border",
|
|
551
685
|
md: "size-8 border-2",
|
|
552
686
|
lg: "size-12 border-4"
|
|
553
|
-
},
|
|
687
|
+
}, St = ({
|
|
554
688
|
color: e = "foreground",
|
|
555
689
|
size: r = "md"
|
|
556
690
|
}) => {
|
|
557
|
-
const n =
|
|
691
|
+
const n = yr[e], o = jr[r];
|
|
558
692
|
return /* @__PURE__ */ t.jsx(
|
|
559
693
|
"div",
|
|
560
694
|
{
|
|
561
|
-
className:
|
|
695
|
+
className: H(
|
|
562
696
|
"inline-block animate-rotation rounded-full border-b-transparent",
|
|
563
697
|
o,
|
|
564
698
|
n
|
|
565
699
|
)
|
|
566
700
|
}
|
|
567
701
|
);
|
|
568
|
-
},
|
|
702
|
+
}, he = ({
|
|
569
703
|
src: e,
|
|
570
704
|
className: r,
|
|
571
705
|
onLoad: n,
|
|
572
706
|
imgInPlayerWidthRatio: o = 1,
|
|
573
707
|
onlyThumbnail: s,
|
|
574
|
-
fadeIn:
|
|
575
|
-
...
|
|
708
|
+
fadeIn: u,
|
|
709
|
+
...f
|
|
576
710
|
}) => {
|
|
577
|
-
const {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
mediaLoadStrategy: w,
|
|
581
|
-
playerInViewportWidthRatio: m
|
|
582
|
-
} = J(), { imageHdWidth: c, imageSubWidths: f } = re(), [_, b] = te(() => {
|
|
583
|
-
const x = f.concat(c).sort((u, g) => u - g).filter((u) => !(a && u < a || l && u > l));
|
|
584
|
-
if (x.length === 0)
|
|
585
|
-
throw new Error("No image widths available for the given constraints");
|
|
586
|
-
const T = x.map((u) => `${u !== c ? Gt(e, u) : e} ${u}w`);
|
|
587
|
-
let h;
|
|
711
|
+
const { mediaLoadStrategy: d, playerInViewportWidthRatio: c } = re(), { imageHdWidth: v, usedMediaWidths: l } = oe(), [m, w] = te(() => {
|
|
712
|
+
const h = l.map((j) => `${j !== v ? nr(e, j) : e} ${j}w`);
|
|
713
|
+
let x;
|
|
588
714
|
if (s)
|
|
589
|
-
|
|
715
|
+
x = [`${l[0]}px`];
|
|
590
716
|
else {
|
|
591
|
-
const
|
|
592
|
-
switch (
|
|
717
|
+
const j = 1 / (o * c);
|
|
718
|
+
switch (d) {
|
|
593
719
|
case "quality": {
|
|
594
|
-
const g =
|
|
595
|
-
|
|
596
|
-
(
|
|
597
|
-
),
|
|
598
|
-
break;
|
|
599
|
-
}
|
|
600
|
-
case "speed": {
|
|
601
|
-
const g = x.shift();
|
|
602
|
-
h = x.reverse().map(
|
|
603
|
-
(v) => `(min-width: ${u * v}px) ${v}px`
|
|
604
|
-
), h.push(`${g}px`);
|
|
720
|
+
const k = [...l], g = k.pop();
|
|
721
|
+
x = k.map(
|
|
722
|
+
(p) => `(max-width: ${j * p}px) ${p}px`
|
|
723
|
+
), x.push(`${g}px`);
|
|
605
724
|
break;
|
|
606
725
|
}
|
|
607
726
|
case "balanced": {
|
|
608
|
-
|
|
609
|
-
for (let
|
|
610
|
-
const
|
|
611
|
-
|
|
612
|
-
`(max-width: ${
|
|
727
|
+
x = [];
|
|
728
|
+
for (let k = 0; k < l.length - 1; k++) {
|
|
729
|
+
const g = l[k], p = l[k + 1], b = Math.round((g + p) / 2);
|
|
730
|
+
x.push(
|
|
731
|
+
`(max-width: ${j * b}px) ${g}px`
|
|
613
732
|
);
|
|
614
733
|
}
|
|
615
|
-
|
|
734
|
+
x.push(`${l[l.length - 1]}px`);
|
|
735
|
+
break;
|
|
736
|
+
}
|
|
737
|
+
case "speed": {
|
|
738
|
+
const k = [...l], g = k.shift();
|
|
739
|
+
x = k.reverse().map(
|
|
740
|
+
(p) => `(min-width: ${j * p}px) ${p}px`
|
|
741
|
+
), x.push(`${g}px`);
|
|
616
742
|
break;
|
|
617
743
|
}
|
|
618
744
|
}
|
|
619
745
|
}
|
|
620
|
-
return [
|
|
746
|
+
return [h.join(", "), x.join(", ")];
|
|
621
747
|
}, [
|
|
622
|
-
|
|
623
|
-
w,
|
|
624
|
-
f,
|
|
748
|
+
v,
|
|
625
749
|
o,
|
|
626
|
-
|
|
627
|
-
a,
|
|
750
|
+
d,
|
|
628
751
|
s,
|
|
629
|
-
|
|
630
|
-
e
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
752
|
+
c,
|
|
753
|
+
e,
|
|
754
|
+
l
|
|
755
|
+
]), [C, a] = $();
|
|
756
|
+
return O(() => {
|
|
757
|
+
if (C === !0)
|
|
634
758
|
return;
|
|
635
|
-
const
|
|
636
|
-
|
|
759
|
+
const h = setTimeout(() => {
|
|
760
|
+
a((x) => x ?? !1);
|
|
637
761
|
}, 30);
|
|
638
|
-
return () => clearTimeout(
|
|
639
|
-
}, [
|
|
762
|
+
return () => clearTimeout(h);
|
|
763
|
+
}, [C]), /* @__PURE__ */ t.jsx(
|
|
640
764
|
"img",
|
|
641
765
|
{
|
|
642
766
|
src: e,
|
|
643
|
-
srcSet:
|
|
644
|
-
sizes:
|
|
645
|
-
className:
|
|
767
|
+
srcSet: m,
|
|
768
|
+
sizes: w,
|
|
769
|
+
className: H(
|
|
646
770
|
r,
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
771
|
+
u && H(
|
|
772
|
+
C !== void 0 && "transition-opacity duration-200",
|
|
773
|
+
C === !1 && "opacity-0",
|
|
774
|
+
C === !0 && "opacity-100"
|
|
651
775
|
)
|
|
652
776
|
),
|
|
653
|
-
onLoad: (
|
|
654
|
-
|
|
777
|
+
onLoad: (h) => {
|
|
778
|
+
a(!0), n?.(h);
|
|
655
779
|
},
|
|
656
|
-
...
|
|
780
|
+
...f
|
|
657
781
|
}
|
|
658
782
|
);
|
|
659
|
-
},
|
|
783
|
+
}, Vt = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_IMAGE", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
784
|
+
"path",
|
|
785
|
+
{
|
|
786
|
+
d: "M9.5 2.5V9.5H2.5V2.5H9.5ZM9.5 1.5H2.5C1.95 1.5 1.5 1.95 1.5 2.5V9.5C1.5 10.05 1.95 10.5 2.5 10.5H9.5C10.05 10.5 10.5 10.05 10.5 9.5V2.5C10.5 1.95 10.05 1.5 9.5 1.5ZM7.07 5.93L5.57 7.865L4.5 6.57L3 8.5H9L7.07 5.93Z",
|
|
787
|
+
fill: "currentColor"
|
|
788
|
+
}
|
|
789
|
+
) }) }), Be = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_PLAY", children: /* @__PURE__ */ t.jsx(
|
|
660
790
|
"svg",
|
|
661
791
|
{
|
|
662
792
|
className: e,
|
|
@@ -668,7 +798,7 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
668
798
|
strokeLinejoin: "round",
|
|
669
799
|
children: /* @__PURE__ */ t.jsx("polygon", { points: "6 3 20 12 6 21 6 3" })
|
|
670
800
|
}
|
|
671
|
-
) }),
|
|
801
|
+
) }), Tt = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_360", children: /* @__PURE__ */ t.jsxs(
|
|
672
802
|
"svg",
|
|
673
803
|
{
|
|
674
804
|
className: e,
|
|
@@ -723,427 +853,454 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
723
853
|
/* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsx("clipPath", { id: "clip0_134_843", children: /* @__PURE__ */ t.jsx("rect", { width: "56", height: "56", fill: "white" }) }) })
|
|
724
854
|
]
|
|
725
855
|
}
|
|
726
|
-
) }),
|
|
856
|
+
) }), kr = ({
|
|
857
|
+
src: e,
|
|
858
|
+
withCdn: r
|
|
859
|
+
}) => {
|
|
860
|
+
const { permanentGallery: n } = re();
|
|
861
|
+
if (!e)
|
|
862
|
+
return null;
|
|
863
|
+
const o = "size-full object-cover";
|
|
864
|
+
return r ? /* @__PURE__ */ t.jsx(
|
|
865
|
+
he,
|
|
866
|
+
{
|
|
867
|
+
className: o,
|
|
868
|
+
src: e,
|
|
869
|
+
onlyThumbnail: !0,
|
|
870
|
+
fadeIn: !n
|
|
871
|
+
}
|
|
872
|
+
) : /* @__PURE__ */ t.jsx("img", { className: o, src: e });
|
|
873
|
+
}, Fe = ({
|
|
727
874
|
children: e
|
|
728
875
|
}) => {
|
|
729
|
-
const { extendMode: r } =
|
|
876
|
+
const { extendMode: r } = J();
|
|
730
877
|
return /* @__PURE__ */ t.jsx(
|
|
731
878
|
"div",
|
|
732
879
|
{
|
|
733
|
-
className:
|
|
880
|
+
className: H(
|
|
734
881
|
"flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",
|
|
735
882
|
r && "large:h-3/5 large:p-2"
|
|
736
883
|
),
|
|
737
884
|
children: e
|
|
738
885
|
}
|
|
739
886
|
);
|
|
740
|
-
},
|
|
741
|
-
const {
|
|
742
|
-
let s;
|
|
743
|
-
switch (
|
|
887
|
+
}, Er = ({ item: e }) => {
|
|
888
|
+
const { aspectRatioStyle: r } = oe(), { type: n } = e;
|
|
889
|
+
let o, s;
|
|
890
|
+
switch (n) {
|
|
744
891
|
case "360":
|
|
745
|
-
|
|
892
|
+
o = e.images[0].src, s = !0;
|
|
746
893
|
break;
|
|
747
894
|
case "image":
|
|
748
|
-
|
|
895
|
+
o = e.src, s = !0;
|
|
749
896
|
break;
|
|
750
897
|
case "video":
|
|
751
|
-
|
|
898
|
+
o = e.poster, s = !0;
|
|
899
|
+
break;
|
|
900
|
+
case "custom":
|
|
901
|
+
o = e.thumbnailSrc, s = !1;
|
|
752
902
|
break;
|
|
753
903
|
}
|
|
754
|
-
const
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
className: "size-full object-cover",
|
|
758
|
-
src: s,
|
|
759
|
-
onlyThumbnail: !0,
|
|
760
|
-
fadeIn: !r
|
|
761
|
-
}
|
|
762
|
-
);
|
|
763
|
-
let d;
|
|
764
|
-
switch (o) {
|
|
904
|
+
const u = /* @__PURE__ */ t.jsx(kr, { src: o, withCdn: s });
|
|
905
|
+
let f;
|
|
906
|
+
switch (n) {
|
|
765
907
|
case "360":
|
|
766
|
-
|
|
908
|
+
f = /* @__PURE__ */ t.jsx(Fe, { children: /* @__PURE__ */ t.jsx(Tt, { className: "size-full text-primary-light" }) });
|
|
767
909
|
break;
|
|
768
910
|
case "video":
|
|
769
|
-
|
|
911
|
+
f = /* @__PURE__ */ t.jsx(Fe, { children: /* @__PURE__ */ t.jsx(Be, { className: "size-full p-0.5 text-background" }) });
|
|
912
|
+
break;
|
|
913
|
+
case "custom":
|
|
914
|
+
f = o ? null : /* @__PURE__ */ t.jsx(Fe, { children: /* @__PURE__ */ t.jsx(Vt, { className: "size-full p-0.5 text-background" }) });
|
|
770
915
|
break;
|
|
771
916
|
}
|
|
772
|
-
return /* @__PURE__ */ t.jsxs("div", { className: "relative bg-foreground/30", style:
|
|
773
|
-
|
|
774
|
-
|
|
917
|
+
return /* @__PURE__ */ t.jsxs("div", { className: "relative bg-foreground/30", style: r, children: [
|
|
918
|
+
u,
|
|
919
|
+
f && /* @__PURE__ */ t.jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-foreground/25", children: f })
|
|
775
920
|
] });
|
|
776
|
-
},
|
|
921
|
+
}, Cr = {
|
|
777
922
|
primary: "bg-primary/50",
|
|
778
923
|
neutral: "bg-neutral/50",
|
|
779
924
|
background: "bg-background/50",
|
|
780
925
|
foreground: "bg-foreground/50"
|
|
781
|
-
},
|
|
926
|
+
}, Ht = ({
|
|
782
927
|
color: e = "neutral",
|
|
783
928
|
orientation: r = "horizontal"
|
|
784
929
|
}) => {
|
|
785
|
-
const n =
|
|
786
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
787
|
-
},
|
|
930
|
+
const n = Cr[e], o = r === "horizontal" ? "h-px w-full" : "w-px h-full";
|
|
931
|
+
return /* @__PURE__ */ t.jsx("div", { className: H(n, o) });
|
|
932
|
+
}, Rt = ({
|
|
788
933
|
className: e = "",
|
|
789
934
|
containerClassName: r = ""
|
|
790
935
|
}) => {
|
|
791
|
-
const { hideCategories: n, infiniteCarrousel: o, permanentGallery: s, isFullScreen:
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
936
|
+
const { hideCategories: n, infiniteCarrousel: o, permanentGallery: s, isFullScreen: u } = re(), { categories: f, aspectRatioStyle: d } = oe(), {
|
|
937
|
+
items: c,
|
|
938
|
+
extendMode: v,
|
|
939
|
+
extendTransition: l,
|
|
940
|
+
masterItemIndex: m,
|
|
941
|
+
prevItem: w,
|
|
942
|
+
nextItem: C,
|
|
943
|
+
scrollToItemIndex: a,
|
|
944
|
+
resetView: h
|
|
945
|
+
} = J(), x = te(() => {
|
|
800
946
|
if (n)
|
|
801
947
|
return [];
|
|
802
|
-
const
|
|
803
|
-
let
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
948
|
+
const N = new Array();
|
|
949
|
+
let z = f[0];
|
|
950
|
+
const S = (V) => f.find(
|
|
951
|
+
(R) => R.items.some((y) => y === V)
|
|
952
|
+
);
|
|
953
|
+
for (let V = 0; V < c.length; V++) {
|
|
954
|
+
const R = c[V], y = S(R);
|
|
955
|
+
y && y !== z && (N.push(V), z = y);
|
|
807
956
|
}
|
|
808
|
-
return
|
|
809
|
-
}, [
|
|
810
|
-
if (!
|
|
957
|
+
return N;
|
|
958
|
+
}, [f, n, c]), j = Z(null), k = I(() => {
|
|
959
|
+
if (!j.current)
|
|
811
960
|
throw new Error("slider.current is null");
|
|
812
|
-
return
|
|
813
|
-
}, []),
|
|
961
|
+
return j.current;
|
|
962
|
+
}, []), g = Z(!1), p = Z(
|
|
814
963
|
null
|
|
815
|
-
), [
|
|
816
|
-
(
|
|
817
|
-
const
|
|
818
|
-
|
|
819
|
-
left:
|
|
820
|
-
behavior:
|
|
964
|
+
), [b, E] = $(!1), L = I(
|
|
965
|
+
(N, z) => {
|
|
966
|
+
const S = k(), V = S.clientWidth, R = S.scrollWidth / c.length, y = (N + 1 / 2) * R - V / 2, i = S.scrollWidth - S.clientWidth;
|
|
967
|
+
S.scrollTo({
|
|
968
|
+
left: le(y, 0, i),
|
|
969
|
+
behavior: z
|
|
821
970
|
});
|
|
822
971
|
},
|
|
823
|
-
[
|
|
972
|
+
[c.length, k]
|
|
824
973
|
);
|
|
825
|
-
|
|
826
|
-
const
|
|
827
|
-
if (!
|
|
974
|
+
O(() => {
|
|
975
|
+
const N = j.current;
|
|
976
|
+
if (!N)
|
|
828
977
|
return;
|
|
829
|
-
const
|
|
830
|
-
|
|
831
|
-
x:
|
|
832
|
-
scrollLeft:
|
|
978
|
+
const z = (R) => {
|
|
979
|
+
R.preventDefault(), g.current = !0, p.current = {
|
|
980
|
+
x: R.pageX - N.offsetLeft,
|
|
981
|
+
scrollLeft: N.scrollLeft
|
|
833
982
|
};
|
|
834
|
-
},
|
|
835
|
-
if (!
|
|
983
|
+
}, S = (R) => {
|
|
984
|
+
if (!g.current)
|
|
836
985
|
return;
|
|
837
|
-
if (
|
|
986
|
+
if (p.current === null)
|
|
838
987
|
throw new Error("[onMouseMove] scrollStart is null");
|
|
839
|
-
const
|
|
840
|
-
if (!
|
|
988
|
+
const y = R.pageX - N.offsetLeft - p.current.x;
|
|
989
|
+
if (!b && Math.abs(y) < 5)
|
|
841
990
|
return;
|
|
842
|
-
const i =
|
|
843
|
-
|
|
844
|
-
|
|
991
|
+
const i = p.current.scrollLeft - y;
|
|
992
|
+
E(!0), requestAnimationFrame(() => {
|
|
993
|
+
N.scrollLeft = i;
|
|
845
994
|
});
|
|
846
995
|
}, V = () => {
|
|
847
|
-
|
|
848
|
-
|
|
996
|
+
g.current && (g.current = !1, requestAnimationFrame(() => {
|
|
997
|
+
E(!1);
|
|
849
998
|
}));
|
|
850
999
|
};
|
|
851
|
-
return
|
|
852
|
-
|
|
1000
|
+
return N.addEventListener("mousedown", z), document.addEventListener("mousemove", S), document.addEventListener("mouseleave", V), document.addEventListener("mouseup", V), document.addEventListener("contextmenu", V), () => {
|
|
1001
|
+
N.removeEventListener("mousedown", z), document.removeEventListener("mousemove", S), document.removeEventListener("mouseleave", V), document.removeEventListener("mouseup", V), document.removeEventListener("contextmenu", V);
|
|
853
1002
|
};
|
|
854
|
-
}, [
|
|
855
|
-
const
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
}, [
|
|
859
|
-
|
|
1003
|
+
}, [b]);
|
|
1004
|
+
const D = Z(m);
|
|
1005
|
+
O(() => {
|
|
1006
|
+
j.current && (L(m, "smooth"), D.current = m);
|
|
1007
|
+
}, [m, L]), O(() => {
|
|
1008
|
+
j.current && L(D.current, "instant");
|
|
860
1009
|
}, [
|
|
861
|
-
|
|
1010
|
+
L,
|
|
862
1011
|
// - Run the effect when those values change
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
1012
|
+
u,
|
|
1013
|
+
v,
|
|
1014
|
+
l
|
|
866
1015
|
]);
|
|
867
|
-
const
|
|
868
|
-
|
|
1016
|
+
const T = (N) => {
|
|
1017
|
+
b || (o && N === c.length - 1 && m === 0 ? w() : o && N === 0 && m === c.length - 1 ? C() : a(N), h());
|
|
869
1018
|
};
|
|
870
1019
|
return /* @__PURE__ */ t.jsx(
|
|
871
1020
|
"div",
|
|
872
1021
|
{
|
|
873
|
-
ref:
|
|
874
|
-
className:
|
|
1022
|
+
ref: j,
|
|
1023
|
+
className: H(
|
|
875
1024
|
"relative w-full overflow-x-auto no-scrollbar",
|
|
876
|
-
|
|
1025
|
+
b ? "cursor-grab" : "cursor-grabbing",
|
|
877
1026
|
e
|
|
878
1027
|
),
|
|
879
1028
|
children: /* @__PURE__ */ t.jsx(
|
|
880
1029
|
"div",
|
|
881
1030
|
{
|
|
882
|
-
className:
|
|
1031
|
+
className: H(
|
|
883
1032
|
"flex h-10 w-fit gap-1 small:h-12 small:gap-2",
|
|
884
|
-
|
|
1033
|
+
v && "large:h-20 large:gap-4",
|
|
885
1034
|
r
|
|
886
1035
|
),
|
|
887
|
-
children:
|
|
888
|
-
|
|
889
|
-
|
|
1036
|
+
children: c.map((N, z) => /* @__PURE__ */ t.jsxs(Wt, { children: [
|
|
1037
|
+
x.includes(z) && /* @__PURE__ */ t.jsx("div", { className: "my-2", children: /* @__PURE__ */ t.jsx(
|
|
1038
|
+
Ht,
|
|
890
1039
|
{
|
|
891
|
-
color: s && !
|
|
1040
|
+
color: s && !u ? "neutral" : "background",
|
|
892
1041
|
orientation: "vertical"
|
|
893
1042
|
}
|
|
894
1043
|
) }),
|
|
895
1044
|
/* @__PURE__ */ t.jsx(
|
|
896
1045
|
"div",
|
|
897
1046
|
{
|
|
898
|
-
className:
|
|
1047
|
+
className: H(
|
|
899
1048
|
"relative h-full overflow-hidden rounded-gallery transition-radius",
|
|
900
|
-
!
|
|
1049
|
+
!b && "cursor-pointer",
|
|
901
1050
|
"after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-all",
|
|
902
|
-
|
|
1051
|
+
z === m ? "after:opacity-100" : "after:opacity-0 hover:after:opacity-70"
|
|
903
1052
|
),
|
|
904
|
-
style:
|
|
905
|
-
onClick: () =>
|
|
906
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1053
|
+
style: d,
|
|
1054
|
+
onClick: () => T(z),
|
|
1055
|
+
children: /* @__PURE__ */ t.jsx(Er, { item: N })
|
|
907
1056
|
}
|
|
908
1057
|
)
|
|
909
|
-
] },
|
|
1058
|
+
] }, z))
|
|
910
1059
|
}
|
|
911
1060
|
)
|
|
912
1061
|
}
|
|
913
1062
|
);
|
|
914
|
-
},
|
|
1063
|
+
}, At = (e) => 1 - Math.pow(1 - e, 2), Nr = ({
|
|
1064
|
+
Media: e,
|
|
1065
|
+
itemIndex: r
|
|
1066
|
+
}) => {
|
|
1067
|
+
const { setItemInteraction: n } = J();
|
|
1068
|
+
return O(() => {
|
|
1069
|
+
n(r, "ready");
|
|
1070
|
+
}, [r, n]), e;
|
|
1071
|
+
}, st = (e, r) => Math.sqrt(
|
|
915
1072
|
(e.clientX - r.clientX) ** 2 + (e.clientY - r.clientY) ** 2
|
|
916
|
-
),
|
|
1073
|
+
), Lr = ({
|
|
917
1074
|
onlyPreload: e,
|
|
918
1075
|
...r
|
|
919
1076
|
}) => {
|
|
920
|
-
const { zoom: n, isZooming: o, setZoom: s } =
|
|
921
|
-
if (!
|
|
1077
|
+
const { zoom: n, isZooming: o, setZoom: s } = J(), u = Z(null), f = Z(null), d = I((g) => {
|
|
1078
|
+
if (!f.current)
|
|
922
1079
|
throw new Error(
|
|
923
|
-
`[${
|
|
1080
|
+
`[${g ?? "getTransformElementOrThrow"}] transformElementRef.current is null`
|
|
924
1081
|
);
|
|
925
|
-
return
|
|
926
|
-
}, []),
|
|
927
|
-
(
|
|
928
|
-
const
|
|
929
|
-
x:
|
|
930
|
-
y:
|
|
931
|
-
scale:
|
|
1082
|
+
return f.current;
|
|
1083
|
+
}, []), c = Z(!1), v = Z(null), l = Z(/* @__PURE__ */ new Map()), m = Z({ x: 0, y: 0, scale: 1 }), w = Z(null), C = I(
|
|
1084
|
+
(g) => {
|
|
1085
|
+
const p = d("setTransformStyle"), {
|
|
1086
|
+
x: b,
|
|
1087
|
+
y: E,
|
|
1088
|
+
scale: L
|
|
932
1089
|
} = {
|
|
933
|
-
...
|
|
934
|
-
...
|
|
935
|
-
},
|
|
936
|
-
|
|
1090
|
+
...m.current,
|
|
1091
|
+
...g
|
|
1092
|
+
}, D = le(L, 1, _e), T = p.clientWidth, N = p.clientHeight, z = T * D, S = N * D, V = le(b, -(z - T), 0), R = le(E, -(S - N), 0);
|
|
1093
|
+
m.current = { x: V, y: R, scale: D }, p.style.transform = `translate(${V}px, ${R}px) scale(${D})`;
|
|
937
1094
|
},
|
|
938
|
-
[
|
|
939
|
-
),
|
|
940
|
-
(
|
|
1095
|
+
[d]
|
|
1096
|
+
), a = I(
|
|
1097
|
+
(g, p) => {
|
|
941
1098
|
const {
|
|
942
|
-
x:
|
|
943
|
-
y:
|
|
944
|
-
scale:
|
|
945
|
-
} =
|
|
946
|
-
x:
|
|
947
|
-
y:
|
|
948
|
-
scale:
|
|
1099
|
+
x: b,
|
|
1100
|
+
y: E,
|
|
1101
|
+
scale: L
|
|
1102
|
+
} = m.current, {
|
|
1103
|
+
x: D,
|
|
1104
|
+
y: T,
|
|
1105
|
+
scale: N
|
|
949
1106
|
} = {
|
|
950
|
-
...
|
|
951
|
-
...
|
|
1107
|
+
...m.current,
|
|
1108
|
+
...g
|
|
952
1109
|
};
|
|
953
|
-
|
|
954
|
-
const
|
|
955
|
-
|
|
956
|
-
},
|
|
957
|
-
if (!
|
|
958
|
-
|
|
1110
|
+
w.current && (cancelAnimationFrame(w.current), w.current = null);
|
|
1111
|
+
const z = () => {
|
|
1112
|
+
C({ x: D, y: T, scale: N }), s(N);
|
|
1113
|
+
}, S = Math.abs(D - b) < 1 && Math.abs(T - E) < 1 && Math.abs(N - L) < 5e-3;
|
|
1114
|
+
if (!p || S) {
|
|
1115
|
+
z();
|
|
959
1116
|
return;
|
|
960
1117
|
}
|
|
961
|
-
const V = (/* @__PURE__ */ new Date()).getTime(),
|
|
962
|
-
const
|
|
1118
|
+
const V = (/* @__PURE__ */ new Date()).getTime(), R = () => {
|
|
1119
|
+
const y = () => {
|
|
963
1120
|
const i = (/* @__PURE__ */ new Date()).getTime() - V;
|
|
964
|
-
if (i >=
|
|
965
|
-
|
|
1121
|
+
if (i >= p) {
|
|
1122
|
+
z(), w.current = null;
|
|
966
1123
|
return;
|
|
967
1124
|
}
|
|
968
|
-
const
|
|
969
|
-
|
|
1125
|
+
const _ = Math.min(i / p, 1), M = At(_), A = Le(b, D, M), F = Le(E, T, M), U = Le(L, N, M);
|
|
1126
|
+
C({ x: A, y: F, scale: U }), R();
|
|
970
1127
|
};
|
|
971
|
-
|
|
1128
|
+
w.current = requestAnimationFrame(y);
|
|
972
1129
|
};
|
|
973
|
-
|
|
1130
|
+
R();
|
|
974
1131
|
},
|
|
975
|
-
[
|
|
976
|
-
),
|
|
977
|
-
(
|
|
978
|
-
let { x:
|
|
979
|
-
|
|
1132
|
+
[C, s]
|
|
1133
|
+
), h = I(
|
|
1134
|
+
(g, p) => {
|
|
1135
|
+
let { x: b, y: E } = m.current;
|
|
1136
|
+
g.x && (b += g.x), g.y && (E += g.y), a(
|
|
980
1137
|
{
|
|
981
|
-
x:
|
|
982
|
-
y:
|
|
1138
|
+
x: b,
|
|
1139
|
+
y: E
|
|
983
1140
|
},
|
|
984
|
-
|
|
1141
|
+
p
|
|
985
1142
|
);
|
|
986
1143
|
},
|
|
987
|
-
[
|
|
988
|
-
),
|
|
989
|
-
(
|
|
990
|
-
const
|
|
991
|
-
|
|
1144
|
+
[a]
|
|
1145
|
+
), x = I(
|
|
1146
|
+
(g, p, b) => {
|
|
1147
|
+
const E = m.current.scale, L = le(g, 1, _e), D = L / E, { x: T, y: N } = m.current, { x: z, y: S } = p, V = -T + z, R = -N + S, y = V * D, i = R * D, _ = y - z, M = i - S, A = -_, F = -M;
|
|
1148
|
+
a(
|
|
992
1149
|
{
|
|
993
|
-
x:
|
|
994
|
-
y:
|
|
995
|
-
scale:
|
|
1150
|
+
x: A,
|
|
1151
|
+
y: F,
|
|
1152
|
+
scale: L
|
|
996
1153
|
},
|
|
997
|
-
|
|
1154
|
+
b
|
|
998
1155
|
);
|
|
999
1156
|
},
|
|
1000
|
-
[
|
|
1001
|
-
),
|
|
1002
|
-
(
|
|
1003
|
-
const
|
|
1157
|
+
[a]
|
|
1158
|
+
), j = I(
|
|
1159
|
+
(g) => {
|
|
1160
|
+
const p = d(
|
|
1004
1161
|
"shiftZoomFromButton"
|
|
1005
|
-
),
|
|
1006
|
-
|
|
1007
|
-
|
|
1162
|
+
), b = p.clientWidth, E = p.clientHeight;
|
|
1163
|
+
x(
|
|
1164
|
+
g,
|
|
1008
1165
|
{
|
|
1009
|
-
x:
|
|
1010
|
-
y:
|
|
1166
|
+
x: b / 2,
|
|
1167
|
+
y: E / 2
|
|
1011
1168
|
},
|
|
1012
1169
|
200
|
|
1013
1170
|
);
|
|
1014
1171
|
},
|
|
1015
|
-
[
|
|
1016
|
-
),
|
|
1017
|
-
(
|
|
1018
|
-
const { scale:
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1172
|
+
[d, x]
|
|
1173
|
+
), k = I(
|
|
1174
|
+
(g, p, b) => {
|
|
1175
|
+
const { scale: E } = m.current;
|
|
1176
|
+
x(
|
|
1177
|
+
E + g,
|
|
1178
|
+
p,
|
|
1179
|
+
b
|
|
1023
1180
|
);
|
|
1024
1181
|
},
|
|
1025
|
-
[
|
|
1182
|
+
[x]
|
|
1026
1183
|
);
|
|
1027
|
-
return
|
|
1028
|
-
e ||
|
|
1029
|
-
}, [e,
|
|
1184
|
+
return O(() => {
|
|
1185
|
+
e || f.current && j(n);
|
|
1186
|
+
}, [e, j, n]), O(() => {
|
|
1030
1187
|
if (e || !o)
|
|
1031
1188
|
return;
|
|
1032
|
-
const
|
|
1033
|
-
if (!
|
|
1189
|
+
const g = f.current;
|
|
1190
|
+
if (!g)
|
|
1034
1191
|
return;
|
|
1035
|
-
const
|
|
1036
|
-
|
|
1037
|
-
x:
|
|
1038
|
-
y:
|
|
1192
|
+
const p = (L) => {
|
|
1193
|
+
L.preventDefault(), L.stopPropagation(), c.current = !0, v.current = {
|
|
1194
|
+
x: L.clientX,
|
|
1195
|
+
y: L.clientY
|
|
1039
1196
|
};
|
|
1040
|
-
},
|
|
1041
|
-
if (!
|
|
1197
|
+
}, b = (L) => {
|
|
1198
|
+
if (!c.current)
|
|
1042
1199
|
return;
|
|
1043
|
-
if (!
|
|
1200
|
+
if (!v.current)
|
|
1044
1201
|
throw new Error("mouseStartXY.current is null");
|
|
1045
|
-
|
|
1046
|
-
const
|
|
1047
|
-
|
|
1048
|
-
x:
|
|
1049
|
-
y:
|
|
1050
|
-
}),
|
|
1051
|
-
x:
|
|
1052
|
-
y:
|
|
1202
|
+
L.stopPropagation();
|
|
1203
|
+
const D = L.clientX - v.current.x, T = L.clientY - v.current.y;
|
|
1204
|
+
h({
|
|
1205
|
+
x: D,
|
|
1206
|
+
y: T
|
|
1207
|
+
}), v.current = {
|
|
1208
|
+
x: L.clientX,
|
|
1209
|
+
y: L.clientY
|
|
1053
1210
|
};
|
|
1054
|
-
},
|
|
1055
|
-
|
|
1211
|
+
}, E = () => {
|
|
1212
|
+
c.current = !1;
|
|
1056
1213
|
};
|
|
1057
|
-
return
|
|
1058
|
-
|
|
1214
|
+
return g.addEventListener("mousedown", p), document.addEventListener("mousemove", b), document.addEventListener("mouseleave", E), document.addEventListener("mouseup", E), document.addEventListener("contextmenu", E), () => {
|
|
1215
|
+
g.removeEventListener("mousedown", p), document.removeEventListener("mousemove", b), document.removeEventListener("mouseleave", E), document.removeEventListener("mouseup", E), document.removeEventListener("contextmenu", E);
|
|
1059
1216
|
};
|
|
1060
|
-
}, [o,
|
|
1217
|
+
}, [o, h, e]), O(() => {
|
|
1061
1218
|
if (e)
|
|
1062
1219
|
return;
|
|
1063
|
-
const
|
|
1064
|
-
if (!
|
|
1220
|
+
const g = u.current;
|
|
1221
|
+
if (!g)
|
|
1065
1222
|
return;
|
|
1066
|
-
const
|
|
1067
|
-
const { ctrlKey:
|
|
1068
|
-
if (
|
|
1069
|
-
if (!o &&
|
|
1223
|
+
const p = (b) => {
|
|
1224
|
+
const { ctrlKey: E, clientX: L, clientY: D, deltaX: T, deltaY: N } = b;
|
|
1225
|
+
if (E) {
|
|
1226
|
+
if (!o && N >= 0)
|
|
1070
1227
|
return;
|
|
1071
|
-
const { left:
|
|
1072
|
-
|
|
1228
|
+
const { left: z, top: S } = g.getBoundingClientRect(), V = L - z, R = D - S;
|
|
1229
|
+
k(-0.01 * N, {
|
|
1073
1230
|
x: V,
|
|
1074
|
-
y:
|
|
1231
|
+
y: R
|
|
1075
1232
|
});
|
|
1076
1233
|
} else {
|
|
1077
1234
|
if (!o)
|
|
1078
1235
|
return;
|
|
1079
|
-
|
|
1080
|
-
x: -2 *
|
|
1081
|
-
y: -2 *
|
|
1236
|
+
h({
|
|
1237
|
+
x: -2 * T,
|
|
1238
|
+
y: -2 * N
|
|
1082
1239
|
});
|
|
1083
1240
|
}
|
|
1084
|
-
|
|
1241
|
+
b.preventDefault();
|
|
1085
1242
|
};
|
|
1086
|
-
return
|
|
1087
|
-
|
|
1243
|
+
return g.addEventListener("wheel", p), () => {
|
|
1244
|
+
g.removeEventListener("wheel", p);
|
|
1088
1245
|
};
|
|
1089
|
-
}, [o,
|
|
1090
|
-
const
|
|
1091
|
-
if (!
|
|
1246
|
+
}, [o, h, k, e]), O(() => {
|
|
1247
|
+
const g = u.current, p = f.current;
|
|
1248
|
+
if (!g || !p)
|
|
1092
1249
|
return;
|
|
1093
|
-
const
|
|
1094
|
-
for (let
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1250
|
+
const b = l.current, E = (T) => {
|
|
1251
|
+
for (let N = 0; N < T.changedTouches.length; N++) {
|
|
1252
|
+
const z = T.changedTouches[N];
|
|
1253
|
+
b.set(z.identifier, z);
|
|
1097
1254
|
}
|
|
1098
|
-
},
|
|
1099
|
-
for (let
|
|
1100
|
-
const
|
|
1101
|
-
|
|
1255
|
+
}, L = (T) => {
|
|
1256
|
+
for (let N = 0; N < T.changedTouches.length; N++) {
|
|
1257
|
+
const z = T.changedTouches[N];
|
|
1258
|
+
b.delete(z.identifier);
|
|
1102
1259
|
}
|
|
1103
|
-
},
|
|
1104
|
-
const
|
|
1105
|
-
if (
|
|
1260
|
+
}, D = (T) => {
|
|
1261
|
+
const N = T.touches.length;
|
|
1262
|
+
if (N === 1) {
|
|
1106
1263
|
if (!o)
|
|
1107
1264
|
return;
|
|
1108
|
-
|
|
1109
|
-
const
|
|
1110
|
-
if (!
|
|
1265
|
+
T.preventDefault();
|
|
1266
|
+
const z = T.touches[0], S = b.get(z.identifier);
|
|
1267
|
+
if (!S)
|
|
1111
1268
|
throw new Error("touchStart is null");
|
|
1112
|
-
const V =
|
|
1113
|
-
|
|
1269
|
+
const V = z.clientX - S.clientX, R = z.clientY - S.clientY;
|
|
1270
|
+
h({
|
|
1114
1271
|
x: V,
|
|
1115
|
-
y:
|
|
1116
|
-
}),
|
|
1117
|
-
} else if (
|
|
1118
|
-
|
|
1119
|
-
const [
|
|
1120
|
-
if (!V || !
|
|
1272
|
+
y: R
|
|
1273
|
+
}), b.set(z.identifier, z);
|
|
1274
|
+
} else if (N === 2) {
|
|
1275
|
+
T.preventDefault();
|
|
1276
|
+
const [z, S] = T.touches, V = b.get(z.identifier), R = b.get(S.identifier);
|
|
1277
|
+
if (!V || !R)
|
|
1121
1278
|
throw new Error("intialTouch1 or intialTouch2 is null");
|
|
1122
|
-
const
|
|
1279
|
+
const y = st(
|
|
1123
1280
|
V,
|
|
1124
|
-
|
|
1125
|
-
), i =
|
|
1126
|
-
|
|
1127
|
-
x: (
|
|
1128
|
-
y: (
|
|
1129
|
-
}),
|
|
1281
|
+
R
|
|
1282
|
+
), i = st(z, S) / y, { left: _, top: M } = g.getBoundingClientRect();
|
|
1283
|
+
k(i - 1, {
|
|
1284
|
+
x: (z.clientX + S.clientX) / 2 - _,
|
|
1285
|
+
y: (z.clientY + S.clientY) / 2 - M
|
|
1286
|
+
}), b.set(z.identifier, z), b.set(S.identifier, S);
|
|
1130
1287
|
}
|
|
1131
1288
|
};
|
|
1132
|
-
return
|
|
1133
|
-
|
|
1289
|
+
return p.addEventListener("touchstart", E), p.addEventListener("touchmove", D), p.addEventListener("touchend", L), p.addEventListener("touchcancel", L), () => {
|
|
1290
|
+
p.removeEventListener("touchstart", E), p.removeEventListener("touchmove", D), p.removeEventListener("touchend", L), p.removeEventListener("touchcancel", L);
|
|
1134
1291
|
};
|
|
1135
|
-
}, [o,
|
|
1292
|
+
}, [o, h, k]), /* @__PURE__ */ t.jsx(
|
|
1136
1293
|
"div",
|
|
1137
1294
|
{
|
|
1138
|
-
ref:
|
|
1295
|
+
ref: u,
|
|
1139
1296
|
className: `relative size-full overflow-hidden ${o ? "z-zoomed-image cursor-move" : ""}`,
|
|
1140
1297
|
children: /* @__PURE__ */ t.jsx(
|
|
1141
1298
|
"div",
|
|
1142
1299
|
{
|
|
1143
|
-
ref:
|
|
1300
|
+
ref: f,
|
|
1144
1301
|
className: "origin-top-left",
|
|
1145
1302
|
children: /* @__PURE__ */ t.jsx(
|
|
1146
|
-
|
|
1303
|
+
he,
|
|
1147
1304
|
{
|
|
1148
1305
|
...r,
|
|
1149
1306
|
imgInPlayerWidthRatio: e ? 1 : n
|
|
@@ -1153,16 +1310,10 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
1153
1310
|
)
|
|
1154
1311
|
}
|
|
1155
1312
|
);
|
|
1156
|
-
},
|
|
1157
|
-
"
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
fill: "currentColor"
|
|
1161
|
-
}
|
|
1162
|
-
) }) }), wr = ({ hotspot: e }) => {
|
|
1163
|
-
const { title: r, icon: n, description: o, position: s, detail: p } = e, { getIconConfig: d } = Fe(), a = n ? d(n) : void 0, { extendMode: l, setShownDetails: w } = q(), m = !!p, c = p?.type === "image", f = !!r || !!o, _ = c ? /* @__PURE__ */ t.jsx(xr, { className: "size-4" }) : /* @__PURE__ */ t.jsx("div", { className: "size-1" }), b = () => {
|
|
1164
|
-
c && w({
|
|
1165
|
-
src: p.src,
|
|
1313
|
+
}, _r = ({ hotspot: e }) => {
|
|
1314
|
+
const { title: r, icon: n, description: o, position: s, detail: u } = e, { getIconConfig: f } = ye(), d = n ? f(n) : void 0, { extendMode: c, setShownDetails: v } = J(), l = !!u, m = u?.type === "image", w = !!r || !!o, C = m ? /* @__PURE__ */ t.jsx(Vt, { className: "size-4" }) : /* @__PURE__ */ t.jsx("div", { className: "size-1" }), a = () => {
|
|
1315
|
+
m && v({
|
|
1316
|
+
src: u.src,
|
|
1166
1317
|
title: r,
|
|
1167
1318
|
text: o
|
|
1168
1319
|
});
|
|
@@ -1170,21 +1321,20 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
1170
1321
|
return /* @__PURE__ */ t.jsxs(
|
|
1171
1322
|
"div",
|
|
1172
1323
|
{
|
|
1173
|
-
className:
|
|
1324
|
+
className: H(
|
|
1174
1325
|
"group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",
|
|
1175
|
-
|
|
1326
|
+
l ? "cursor-pointer" : "cursor-help"
|
|
1176
1327
|
),
|
|
1177
1328
|
style: {
|
|
1178
1329
|
top: `${100 * e.position.y}%`,
|
|
1179
1330
|
left: `${100 * e.position.x}%`
|
|
1180
1331
|
},
|
|
1181
|
-
onClick:
|
|
1332
|
+
onClick: a,
|
|
1182
1333
|
children: [
|
|
1183
1334
|
/* @__PURE__ */ t.jsxs(
|
|
1184
1335
|
"div",
|
|
1185
1336
|
{
|
|
1186
1337
|
className: "relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",
|
|
1187
|
-
style: { backgroundColor: a?.color },
|
|
1188
1338
|
children: [
|
|
1189
1339
|
/* @__PURE__ */ t.jsx(
|
|
1190
1340
|
"div",
|
|
@@ -1192,16 +1342,16 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
1192
1342
|
className: "pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"
|
|
1193
1343
|
}
|
|
1194
1344
|
),
|
|
1195
|
-
|
|
1345
|
+
/* @__PURE__ */ t.jsx("div", { className: "p-1", children: d?.Icon ? /* @__PURE__ */ t.jsx("div", { className: "size-4", children: d.Icon }) : C })
|
|
1196
1346
|
]
|
|
1197
1347
|
}
|
|
1198
1348
|
),
|
|
1199
|
-
!
|
|
1349
|
+
!m && w && /* @__PURE__ */ t.jsx(
|
|
1200
1350
|
"div",
|
|
1201
1351
|
{
|
|
1202
|
-
className:
|
|
1352
|
+
className: H(
|
|
1203
1353
|
"absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",
|
|
1204
|
-
|
|
1354
|
+
c && "large:max-w-56",
|
|
1205
1355
|
s.y < 0.55 ? "-top-1" : "-bottom-1",
|
|
1206
1356
|
s.x < 0.55 ? "-left-1 pl-6 small:pl-8" : "-right-1 pr-4 small:pr-6",
|
|
1207
1357
|
"pointer-events-none opacity-0 transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100"
|
|
@@ -1215,207 +1365,181 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
1215
1365
|
]
|
|
1216
1366
|
}
|
|
1217
1367
|
);
|
|
1218
|
-
},
|
|
1219
|
-
const {
|
|
1220
|
-
|
|
1221
|
-
switch (r) {
|
|
1222
|
-
case "WINDOW STICKER":
|
|
1223
|
-
o = /* @__PURE__ */ t.jsx(
|
|
1224
|
-
"img",
|
|
1225
|
-
{
|
|
1226
|
-
className: "h-10",
|
|
1227
|
-
src: "https://cdn.car-cutter.com/libs/web-player/v2/assets/images/customers/autonation/window_sticker.png",
|
|
1228
|
-
alt: "Window sticker"
|
|
1229
|
-
}
|
|
1230
|
-
);
|
|
1231
|
-
break;
|
|
1232
|
-
case "CARFAX":
|
|
1233
|
-
o = /* @__PURE__ */ t.jsx(
|
|
1234
|
-
"img",
|
|
1235
|
-
{
|
|
1236
|
-
className: "h-10",
|
|
1237
|
-
src: "https://cdn.car-cutter.com/libs/web-player/v2/assets/images/customers/autonation/carfax.png",
|
|
1238
|
-
alt: "Carfax"
|
|
1239
|
-
}
|
|
1240
|
-
);
|
|
1241
|
-
break;
|
|
1242
|
-
default:
|
|
1243
|
-
o = /* @__PURE__ */ t.jsx(wr, { hotspot: e });
|
|
1244
|
-
break;
|
|
1245
|
-
}
|
|
1246
|
-
switch (n?.type) {
|
|
1368
|
+
}, Mr = ({ hotspot: e }) => {
|
|
1369
|
+
const { detail: r } = e, n = /* @__PURE__ */ t.jsx(_r, { hotspot: e });
|
|
1370
|
+
switch (r?.type) {
|
|
1247
1371
|
case "link":
|
|
1248
1372
|
case "pdf":
|
|
1249
|
-
return /* @__PURE__ */ t.jsx("a", { href:
|
|
1373
|
+
return /* @__PURE__ */ t.jsx("a", { href: r.src, target: "_blank", rel: "noreferrer", children: n });
|
|
1250
1374
|
default:
|
|
1251
|
-
return
|
|
1375
|
+
return n;
|
|
1252
1376
|
}
|
|
1253
|
-
},
|
|
1377
|
+
}, Pt = ({
|
|
1254
1378
|
hotspots: e,
|
|
1255
1379
|
itemIndex: r,
|
|
1256
1380
|
className: n,
|
|
1257
1381
|
onLoad: o,
|
|
1258
1382
|
...s
|
|
1259
1383
|
}) => {
|
|
1260
|
-
const { isShowingDetails:
|
|
1261
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
1384
|
+
const { isShowingDetails: u, showHotspots: f, setItemInteraction: d } = J();
|
|
1385
|
+
return /* @__PURE__ */ t.jsx("div", { className: H("relative size-full overflow-hidden", n), children: /* @__PURE__ */ t.jsxs(
|
|
1262
1386
|
"div",
|
|
1263
1387
|
{
|
|
1264
|
-
className:
|
|
1388
|
+
className: H(
|
|
1265
1389
|
"size-full duration-details",
|
|
1266
|
-
|
|
1390
|
+
u ? "scale-105" : "scale-100"
|
|
1267
1391
|
),
|
|
1268
1392
|
children: [
|
|
1269
1393
|
/* @__PURE__ */ t.jsx(
|
|
1270
|
-
|
|
1394
|
+
Lr,
|
|
1271
1395
|
{
|
|
1272
1396
|
className: "size-full object-cover",
|
|
1273
|
-
onLoad: (
|
|
1274
|
-
r !== void 0 &&
|
|
1397
|
+
onLoad: (c) => {
|
|
1398
|
+
r !== void 0 && d(r, "ready"), o?.(c);
|
|
1275
1399
|
},
|
|
1276
1400
|
...s
|
|
1277
1401
|
}
|
|
1278
1402
|
),
|
|
1279
|
-
|
|
1403
|
+
f && e?.map((c, v) => /* @__PURE__ */ t.jsx(Mr, { hotspot: c }, v))
|
|
1280
1404
|
]
|
|
1281
1405
|
}
|
|
1282
1406
|
) });
|
|
1283
|
-
}, we = 10,
|
|
1407
|
+
}, we = 10, zr = 15, Ir = ({
|
|
1284
1408
|
images: e,
|
|
1285
1409
|
onlyPreload: r
|
|
1286
1410
|
}) => {
|
|
1287
|
-
const { reverse360: n } =
|
|
1288
|
-
|
|
1289
|
-
}, [
|
|
1290
|
-
|
|
1291
|
-
}, [
|
|
1292
|
-
return
|
|
1293
|
-
if (
|
|
1411
|
+
const { reverse360: n } = re(), { isShowingDetails: o, isZooming: s } = J(), u = s || o, f = Z(null), d = Z(null), [c, v] = $(0), l = e.length, m = I(() => {
|
|
1412
|
+
v((C) => (C - 1 + l) % l);
|
|
1413
|
+
}, [l]), w = I(() => {
|
|
1414
|
+
v((C) => (C + 1) % l);
|
|
1415
|
+
}, [l]);
|
|
1416
|
+
return O(() => {
|
|
1417
|
+
if (u)
|
|
1294
1418
|
return;
|
|
1295
|
-
const
|
|
1296
|
-
if (!
|
|
1419
|
+
const C = f.current, a = d.current;
|
|
1420
|
+
if (!C || !a)
|
|
1297
1421
|
return;
|
|
1298
|
-
let
|
|
1299
|
-
const
|
|
1300
|
-
|
|
1301
|
-
},
|
|
1302
|
-
const i = Date.now(),
|
|
1303
|
-
const
|
|
1304
|
-
(
|
|
1422
|
+
let h = null, x = [], j = null;
|
|
1423
|
+
const k = (i) => {
|
|
1424
|
+
x.push(i), x.length > 20 && x.shift();
|
|
1425
|
+
}, g = () => {
|
|
1426
|
+
const i = Date.now(), _ = (() => {
|
|
1427
|
+
const U = Date.now(), W = x.filter(
|
|
1428
|
+
(ee) => U - ee.timestamp < 50
|
|
1305
1429
|
);
|
|
1306
|
-
if (
|
|
1430
|
+
if (W.length < 2)
|
|
1307
1431
|
return 0;
|
|
1308
|
-
const
|
|
1309
|
-
return (
|
|
1432
|
+
const Y = W[0], q = W[W.length - 1];
|
|
1433
|
+
return (q.value - Y.value) / (1e-3 * Math.max(q.timestamp - Y.timestamp, 1));
|
|
1310
1434
|
})();
|
|
1311
|
-
let
|
|
1312
|
-
const
|
|
1313
|
-
|
|
1314
|
-
const
|
|
1315
|
-
if (
|
|
1316
|
-
|
|
1435
|
+
let M = 0, A = i;
|
|
1436
|
+
const F = () => {
|
|
1437
|
+
j = requestAnimationFrame(() => {
|
|
1438
|
+
const U = Date.now(), W = (U - i) / 1e3, Y = Math.pow(0.05, W), q = _ * Y, ee = (U - A) / 1e3;
|
|
1439
|
+
if (M += q * ee, Math.abs(q) < 5 * we && Math.abs(M) < we) {
|
|
1440
|
+
j = null;
|
|
1317
1441
|
return;
|
|
1318
1442
|
}
|
|
1319
|
-
Math.abs(
|
|
1443
|
+
Math.abs(M) >= we && (M > 0 !== n ? w() : m(), M = 0), A = U, F();
|
|
1320
1444
|
});
|
|
1321
1445
|
};
|
|
1322
|
-
|
|
1323
|
-
},
|
|
1324
|
-
|
|
1325
|
-
},
|
|
1446
|
+
F();
|
|
1447
|
+
}, p = () => {
|
|
1448
|
+
j && (cancelAnimationFrame(j), j = null);
|
|
1449
|
+
}, b = (i) => {
|
|
1326
1450
|
if (i.button !== 0)
|
|
1327
1451
|
return;
|
|
1328
|
-
i.preventDefault(), i.stopPropagation(),
|
|
1329
|
-
const
|
|
1330
|
-
|
|
1331
|
-
},
|
|
1332
|
-
if (
|
|
1452
|
+
i.preventDefault(), i.stopPropagation(), p();
|
|
1453
|
+
const _ = i.clientX;
|
|
1454
|
+
h = _, x = [{ timestamp: Date.now(), value: _ }];
|
|
1455
|
+
}, E = (i) => {
|
|
1456
|
+
if (h === null)
|
|
1333
1457
|
return;
|
|
1334
1458
|
i.stopPropagation();
|
|
1335
|
-
const { clientX:
|
|
1336
|
-
|
|
1337
|
-
const
|
|
1338
|
-
Math.abs(
|
|
1339
|
-
},
|
|
1340
|
-
|
|
1459
|
+
const { clientX: _ } = i;
|
|
1460
|
+
k({ timestamp: Date.now(), value: _ });
|
|
1461
|
+
const M = _ - h;
|
|
1462
|
+
Math.abs(M) < we || (M > 0 !== n ? w() : m(), h = _);
|
|
1463
|
+
}, L = () => {
|
|
1464
|
+
h !== null && (h = null, g());
|
|
1341
1465
|
};
|
|
1342
|
-
|
|
1343
|
-
const
|
|
1344
|
-
const i =
|
|
1345
|
-
|
|
1466
|
+
C.addEventListener("mousedown", b), document.addEventListener("mousemove", E), document.addEventListener("mouseleave", L), document.addEventListener("mouseup", L), document.addEventListener("contextmenu", L);
|
|
1467
|
+
const D = () => a.getBoundingClientRect().width, T = () => a.scrollWidth / 2 - D() / 2, N = () => {
|
|
1468
|
+
const i = T();
|
|
1469
|
+
a.scrollLeft = i;
|
|
1346
1470
|
};
|
|
1347
|
-
|
|
1348
|
-
const
|
|
1349
|
-
const i =
|
|
1350
|
-
Math.abs(i) <
|
|
1471
|
+
N();
|
|
1472
|
+
const z = () => {
|
|
1473
|
+
const i = a.scrollLeft - T();
|
|
1474
|
+
Math.abs(i) < zr || (i < 0 !== n ? w() : m(), N());
|
|
1351
1475
|
};
|
|
1352
|
-
|
|
1353
|
-
let
|
|
1476
|
+
a.addEventListener("scroll", z);
|
|
1477
|
+
let S = null;
|
|
1354
1478
|
const V = (i) => {
|
|
1355
|
-
if (
|
|
1479
|
+
if (S !== null || i.changedTouches.length !== 1)
|
|
1356
1480
|
return;
|
|
1357
|
-
|
|
1358
|
-
const { identifier:
|
|
1359
|
-
|
|
1360
|
-
},
|
|
1361
|
-
if (!
|
|
1481
|
+
p();
|
|
1482
|
+
const { identifier: _, clientX: M } = i.changedTouches[0];
|
|
1483
|
+
S = _, h = M, x = [{ timestamp: Date.now(), value: M }];
|
|
1484
|
+
}, R = (i) => {
|
|
1485
|
+
if (!h)
|
|
1362
1486
|
return;
|
|
1363
|
-
const
|
|
1364
|
-
({ identifier:
|
|
1487
|
+
const _ = Array.from(i.changedTouches).find(
|
|
1488
|
+
({ identifier: F }) => F === S
|
|
1365
1489
|
);
|
|
1366
|
-
if (!
|
|
1490
|
+
if (!_)
|
|
1367
1491
|
return;
|
|
1368
1492
|
i.preventDefault();
|
|
1369
|
-
const { clientX:
|
|
1370
|
-
|
|
1371
|
-
const
|
|
1372
|
-
Math.abs(
|
|
1373
|
-
},
|
|
1374
|
-
!
|
|
1375
|
-
({ identifier:
|
|
1376
|
-
) || (
|
|
1493
|
+
const { clientX: M } = _;
|
|
1494
|
+
k({ timestamp: Date.now(), value: M });
|
|
1495
|
+
const A = M - h;
|
|
1496
|
+
Math.abs(A) < we || (A > 0 !== n ? w() : m(), h = M);
|
|
1497
|
+
}, y = (i) => {
|
|
1498
|
+
!h || !Array.from(i.changedTouches).some(
|
|
1499
|
+
({ identifier: _ }) => _ === S
|
|
1500
|
+
) || (S = null, h = null, g());
|
|
1377
1501
|
};
|
|
1378
|
-
return
|
|
1379
|
-
|
|
1502
|
+
return a.addEventListener("touchstart", V), a.addEventListener("touchmove", R), a.addEventListener("touchend", y), a.addEventListener("touchcancel", y), () => {
|
|
1503
|
+
C.removeEventListener("mousedown", b), document.removeEventListener("mousemove", E), document.removeEventListener("mouseleave", L), document.removeEventListener("mouseup", L), document.removeEventListener("contextmenu", L), a.removeEventListener("scroll", z), a.removeEventListener("touchstart", V), a.removeEventListener("touchmove", R), a.removeEventListener("touchend", y), a.removeEventListener("touchcancel", y);
|
|
1380
1504
|
};
|
|
1381
|
-
}, [
|
|
1505
|
+
}, [w, m, u, n]), /* @__PURE__ */ t.jsx("div", { ref: f, className: "cursor-ew-resize", children: /* @__PURE__ */ t.jsxs("div", { ref: d, className: "overflow-x-scroll no-scrollbar", children: [
|
|
1382
1506
|
/* @__PURE__ */ t.jsxs("div", { className: "sticky left-0 top-0", children: [
|
|
1383
|
-
e.map((
|
|
1384
|
-
|
|
1507
|
+
e.map((C) => /* @__PURE__ */ t.jsx(
|
|
1508
|
+
he,
|
|
1385
1509
|
{
|
|
1386
|
-
src:
|
|
1510
|
+
src: C.src,
|
|
1387
1511
|
className: "pointer-events-none !absolute left-0 top-0 -z-10"
|
|
1388
1512
|
},
|
|
1389
|
-
|
|
1513
|
+
C.src
|
|
1390
1514
|
)),
|
|
1391
|
-
/* @__PURE__ */ t.jsx(
|
|
1515
|
+
/* @__PURE__ */ t.jsx(Pt, { ...e[c], onlyPreload: r })
|
|
1392
1516
|
] }),
|
|
1393
1517
|
/* @__PURE__ */ t.jsx("div", { className: "pointer-events-none -mt-px h-px w-[calc(100%+1024px)]" })
|
|
1394
1518
|
] }) });
|
|
1395
|
-
},
|
|
1396
|
-
const s = te(() => e.map(({ src:
|
|
1397
|
-
|
|
1398
|
-
}, [s,
|
|
1399
|
-
|
|
1400
|
-
const
|
|
1401
|
-
return
|
|
1519
|
+
}, Sr = ({ images: e, onPlaceholderImageLoaded: r, onSpinImagesLoaded: n, onError: o }) => {
|
|
1520
|
+
const s = te(() => e.map(({ src: l }) => l), [e]), [u, f] = $(null), d = u ? [...u.values()].filter((l) => l).length / e.length * 100 : null, c = I(() => {
|
|
1521
|
+
d === null && f(new Map(s.map((l) => [l, !1])));
|
|
1522
|
+
}, [s, d]), v = I((l) => {
|
|
1523
|
+
f((m) => {
|
|
1524
|
+
const w = new Map(m);
|
|
1525
|
+
return w.set(l, !0), w;
|
|
1402
1526
|
});
|
|
1403
1527
|
}, []);
|
|
1404
|
-
return
|
|
1405
|
-
|
|
1406
|
-
}, [
|
|
1407
|
-
|
|
1408
|
-
/* @__PURE__ */ t.jsx("div", { className: "hidden", children: s.map((
|
|
1409
|
-
|
|
1528
|
+
return O(() => {
|
|
1529
|
+
d === 100 && n();
|
|
1530
|
+
}, [d, n]), /* @__PURE__ */ t.jsxs("div", { className: "relative size-full", children: [
|
|
1531
|
+
d !== null && d !== 100 && // Add images to DOM to preload them
|
|
1532
|
+
/* @__PURE__ */ t.jsx("div", { className: "hidden", children: s.map((l) => /* @__PURE__ */ t.jsx(
|
|
1533
|
+
he,
|
|
1410
1534
|
{
|
|
1411
|
-
src:
|
|
1412
|
-
onLoad: () =>
|
|
1535
|
+
src: l,
|
|
1536
|
+
onLoad: () => v(l),
|
|
1413
1537
|
onError: o
|
|
1414
1538
|
},
|
|
1415
|
-
|
|
1539
|
+
l
|
|
1416
1540
|
)) }),
|
|
1417
1541
|
/* @__PURE__ */ t.jsx(
|
|
1418
|
-
|
|
1542
|
+
he,
|
|
1419
1543
|
{
|
|
1420
1544
|
className: "size-full",
|
|
1421
1545
|
src: s[0],
|
|
@@ -1423,46 +1547,46 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
1423
1547
|
}
|
|
1424
1548
|
),
|
|
1425
1549
|
/* @__PURE__ */ t.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35", children: [
|
|
1426
|
-
/* @__PURE__ */ t.jsx(
|
|
1427
|
-
/* @__PURE__ */ t.jsx(
|
|
1550
|
+
/* @__PURE__ */ t.jsx(Tt, { className: "size-20 text-primary-light" }),
|
|
1551
|
+
/* @__PURE__ */ t.jsx(Q, { color: "neutral", shape: "icon", onClick: c, children: /* @__PURE__ */ t.jsx(Be, { className: "size-full" }) }),
|
|
1428
1552
|
/* @__PURE__ */ t.jsx(
|
|
1429
1553
|
"div",
|
|
1430
1554
|
{
|
|
1431
|
-
className:
|
|
1555
|
+
className: H(
|
|
1432
1556
|
"relative h-1 w-3/5 overflow-hidden rounded-full bg-background",
|
|
1433
|
-
|
|
1557
|
+
d === null && "invisible"
|
|
1434
1558
|
),
|
|
1435
1559
|
children: /* @__PURE__ */ t.jsx(
|
|
1436
1560
|
"div",
|
|
1437
1561
|
{
|
|
1438
1562
|
className: "h-full bg-primary transition-[width]",
|
|
1439
|
-
style: { width: `${
|
|
1563
|
+
style: { width: `${d ?? 0}%` }
|
|
1440
1564
|
}
|
|
1441
1565
|
)
|
|
1442
1566
|
}
|
|
1443
1567
|
)
|
|
1444
1568
|
] })
|
|
1445
1569
|
] });
|
|
1446
|
-
},
|
|
1447
|
-
const { itemIndex: r } = e, { setItemInteraction: n } =
|
|
1448
|
-
return
|
|
1570
|
+
}, Vr = (e) => {
|
|
1571
|
+
const { itemIndex: r } = e, { setItemInteraction: n } = J(), [o, s] = $();
|
|
1572
|
+
return O(() => {
|
|
1449
1573
|
o === null || o === "error" || n(r, o === "spin" ? "running" : "ready");
|
|
1450
1574
|
}, [r, n, o]), o === "error" ? /* @__PURE__ */ t.jsx(
|
|
1451
|
-
|
|
1575
|
+
It,
|
|
1452
1576
|
{
|
|
1453
1577
|
className: "text-background",
|
|
1454
1578
|
text: "Spin could not be loaded"
|
|
1455
1579
|
}
|
|
1456
1580
|
) : o !== "spin" ? /* @__PURE__ */ t.jsx(
|
|
1457
|
-
|
|
1581
|
+
Sr,
|
|
1458
1582
|
{
|
|
1459
1583
|
...e,
|
|
1460
1584
|
onPlaceholderImageLoaded: () => s("placeholder"),
|
|
1461
1585
|
onSpinImagesLoaded: () => s("spin"),
|
|
1462
1586
|
onError: () => s("error")
|
|
1463
1587
|
}
|
|
1464
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1465
|
-
},
|
|
1588
|
+
) : /* @__PURE__ */ t.jsx(Ir, { ...e });
|
|
1589
|
+
}, Tr = (e) => /* @__PURE__ */ t.jsx(Q, { color: "neutral", shape: "icon", ...e, children: /* @__PURE__ */ t.jsx(Be, { className: "size-full" }) }), Hr = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_PAUSE", children: /* @__PURE__ */ t.jsx(
|
|
1466
1590
|
"svg",
|
|
1467
1591
|
{
|
|
1468
1592
|
className: e,
|
|
@@ -1479,7 +1603,7 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
1479
1603
|
}
|
|
1480
1604
|
)
|
|
1481
1605
|
}
|
|
1482
|
-
) }),
|
|
1606
|
+
) }), Rr = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_VOLUME", children: /* @__PURE__ */ t.jsx(
|
|
1483
1607
|
"svg",
|
|
1484
1608
|
{
|
|
1485
1609
|
className: e,
|
|
@@ -1496,7 +1620,7 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
1496
1620
|
}
|
|
1497
1621
|
)
|
|
1498
1622
|
}
|
|
1499
|
-
) }),
|
|
1623
|
+
) }), Ar = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_VOLUME_OFF", children: /* @__PURE__ */ t.jsx(
|
|
1500
1624
|
"svg",
|
|
1501
1625
|
{
|
|
1502
1626
|
className: e,
|
|
@@ -1513,133 +1637,133 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
1513
1637
|
}
|
|
1514
1638
|
)
|
|
1515
1639
|
}
|
|
1516
|
-
) }),
|
|
1640
|
+
) }), at = ({ progress: e }) => /* @__PURE__ */ t.jsx("div", { className: "h-1 w-full overflow-hidden rounded-ui-sm bg-background/25", children: /* @__PURE__ */ t.jsx(
|
|
1517
1641
|
"div",
|
|
1518
1642
|
{
|
|
1519
1643
|
className: "size-full rounded-ui-sm bg-background transition-transform",
|
|
1520
1644
|
style: { transform: `translateX(-${100 * (1 - e)}%)` }
|
|
1521
1645
|
}
|
|
1522
|
-
) }),
|
|
1523
|
-
const { carrouselItemIndex: o, setItemInteraction: s } =
|
|
1524
|
-
if (!
|
|
1646
|
+
) }), Pr = 3e3, Or = ({ src: e, poster: r, itemIndex: n }) => {
|
|
1647
|
+
const { carrouselItemIndex: o, setItemInteraction: s } = J(), u = Z(null), f = Z(null), d = I(() => {
|
|
1648
|
+
if (!f.current)
|
|
1525
1649
|
throw new Error("videoRef.current is null");
|
|
1526
|
-
return
|
|
1650
|
+
return f.current;
|
|
1527
1651
|
}, []);
|
|
1528
|
-
|
|
1652
|
+
O(() => {
|
|
1529
1653
|
s(n, "ready");
|
|
1530
1654
|
}, [n, s]);
|
|
1531
|
-
const
|
|
1532
|
-
|
|
1533
|
-
}, [
|
|
1534
|
-
|
|
1535
|
-
}, [
|
|
1536
|
-
|
|
1537
|
-
o === n ||
|
|
1538
|
-
}, [o, n,
|
|
1539
|
-
const [
|
|
1540
|
-
|
|
1541
|
-
},
|
|
1542
|
-
|
|
1543
|
-
}, L = () => {
|
|
1544
|
-
_(!1);
|
|
1655
|
+
const c = I(() => {
|
|
1656
|
+
d().play();
|
|
1657
|
+
}, [d]), v = I(() => {
|
|
1658
|
+
d().pause();
|
|
1659
|
+
}, [d]);
|
|
1660
|
+
O(() => {
|
|
1661
|
+
o === n || v();
|
|
1662
|
+
}, [o, n, v]);
|
|
1663
|
+
const [l, m] = $(!1), [w, C] = $(!0), a = () => {
|
|
1664
|
+
m(!0), s(n, "running");
|
|
1665
|
+
}, h = () => {
|
|
1666
|
+
m(!1), s(n, "ready");
|
|
1545
1667
|
}, x = () => {
|
|
1546
|
-
|
|
1547
|
-
},
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1668
|
+
C(!1);
|
|
1669
|
+
}, j = () => {
|
|
1670
|
+
C(!0);
|
|
1671
|
+
}, [k, g] = $(null), p = (i) => {
|
|
1672
|
+
const _ = d(), M = i.currentTarget.getBoundingClientRect(), A = (i.clientX - M.left) / M.width, F = Math.min(1, Math.max(0, A));
|
|
1673
|
+
_.volume = F, _.muted = !1;
|
|
1674
|
+
}, b = (i) => {
|
|
1675
|
+
const _ = d();
|
|
1676
|
+
_.muted = i;
|
|
1553
1677
|
};
|
|
1554
|
-
|
|
1555
|
-
const i =
|
|
1678
|
+
O(() => {
|
|
1679
|
+
const i = f.current;
|
|
1556
1680
|
if (!i)
|
|
1557
1681
|
return;
|
|
1558
|
-
const
|
|
1559
|
-
|
|
1682
|
+
const _ = () => {
|
|
1683
|
+
g({
|
|
1560
1684
|
volume: i.volume,
|
|
1561
1685
|
isMuted: i.muted
|
|
1562
1686
|
});
|
|
1563
1687
|
};
|
|
1564
|
-
return
|
|
1565
|
-
i.removeEventListener("volumechange",
|
|
1688
|
+
return _(), i.addEventListener("volumechange", _), () => {
|
|
1689
|
+
i.removeEventListener("volumechange", _);
|
|
1566
1690
|
};
|
|
1567
1691
|
}, []);
|
|
1568
|
-
const [
|
|
1569
|
-
|
|
1570
|
-
const i =
|
|
1692
|
+
const [E, L] = $(null), D = E ? E.currentTime / E.duration : 0;
|
|
1693
|
+
O(() => {
|
|
1694
|
+
const i = f.current;
|
|
1571
1695
|
if (!i) return;
|
|
1572
|
-
const
|
|
1573
|
-
const
|
|
1574
|
-
isNaN(
|
|
1575
|
-
currentTime:
|
|
1576
|
-
duration:
|
|
1696
|
+
const _ = () => {
|
|
1697
|
+
const M = i.currentTime, A = i.duration;
|
|
1698
|
+
isNaN(M) || isNaN(A) || L({
|
|
1699
|
+
currentTime: M,
|
|
1700
|
+
duration: A
|
|
1577
1701
|
});
|
|
1578
1702
|
};
|
|
1579
|
-
return
|
|
1580
|
-
i.removeEventListener("timeupdate",
|
|
1703
|
+
return _(), i.addEventListener("timeupdate", _), () => {
|
|
1704
|
+
i.removeEventListener("timeupdate", _);
|
|
1581
1705
|
};
|
|
1582
1706
|
}, []);
|
|
1583
|
-
const
|
|
1584
|
-
const
|
|
1585
|
-
|
|
1586
|
-
},
|
|
1587
|
-
const
|
|
1588
|
-
return `${
|
|
1589
|
-
}, [
|
|
1707
|
+
const T = (i) => {
|
|
1708
|
+
const _ = d(), M = i.currentTarget.getBoundingClientRect(), A = (i.clientX - M.left) / M.width, F = _.duration * A;
|
|
1709
|
+
_.currentTime = F;
|
|
1710
|
+
}, N = (i) => {
|
|
1711
|
+
const _ = Math.floor(i % 3600 / 60), M = Math.floor(i % 60);
|
|
1712
|
+
return `${_}:${M.toString().padStart(2, "0")}`;
|
|
1713
|
+
}, [z, S] = $(!1), V = Z(void 0), R = I(
|
|
1590
1714
|
() => clearTimeout(V.current),
|
|
1591
1715
|
[]
|
|
1592
|
-
),
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
},
|
|
1596
|
-
}, [
|
|
1597
|
-
return
|
|
1598
|
-
const i =
|
|
1599
|
-
if (!i || !
|
|
1716
|
+
), y = I(() => {
|
|
1717
|
+
R(), V.current = setTimeout(() => {
|
|
1718
|
+
S(!1);
|
|
1719
|
+
}, Pr);
|
|
1720
|
+
}, [R]);
|
|
1721
|
+
return O(() => {
|
|
1722
|
+
const i = u.current, _ = f.current;
|
|
1723
|
+
if (!i || !_)
|
|
1600
1724
|
return;
|
|
1601
|
-
const
|
|
1602
|
-
|
|
1603
|
-
},
|
|
1604
|
-
|
|
1725
|
+
const M = () => {
|
|
1726
|
+
y(), S(!0);
|
|
1727
|
+
}, A = () => {
|
|
1728
|
+
R(), S(!1);
|
|
1605
1729
|
};
|
|
1606
|
-
let
|
|
1607
|
-
const
|
|
1608
|
-
|
|
1609
|
-
},
|
|
1610
|
-
|
|
1611
|
-
},
|
|
1612
|
-
|
|
1613
|
-
},
|
|
1614
|
-
|
|
1730
|
+
let F = !1;
|
|
1731
|
+
const U = () => {
|
|
1732
|
+
F = !0;
|
|
1733
|
+
}, W = () => {
|
|
1734
|
+
F && (F = !1, v());
|
|
1735
|
+
}, Y = () => {
|
|
1736
|
+
F = !1, M();
|
|
1737
|
+
}, q = (ee) => {
|
|
1738
|
+
ee.preventDefault(), ee.touches.length === 1 && (y(), S((fe) => !fe));
|
|
1615
1739
|
};
|
|
1616
|
-
return i.addEventListener("mousedown",
|
|
1617
|
-
i.removeEventListener("mousedown",
|
|
1740
|
+
return i.addEventListener("mousedown", U), i.addEventListener("mouseup", W), i.addEventListener("mouseenter", M), i.addEventListener("mousemove", Y), i.addEventListener("mouseleave", A), _.addEventListener("touchstart", q), () => {
|
|
1741
|
+
i.removeEventListener("mousedown", U), i.removeEventListener("mouseup", W), i.removeEventListener("mouseenter", M), i.removeEventListener("mousemove", M), i.removeEventListener("mouseleave", A), _.removeEventListener("touchstart", q);
|
|
1618
1742
|
};
|
|
1619
|
-
}, [
|
|
1743
|
+
}, [R, v, y]), /* @__PURE__ */ t.jsxs("div", { ref: u, className: "relative size-full", children: [
|
|
1620
1744
|
/* @__PURE__ */ t.jsx(
|
|
1621
1745
|
"video",
|
|
1622
1746
|
{
|
|
1623
|
-
ref:
|
|
1747
|
+
ref: f,
|
|
1624
1748
|
className: "size-full",
|
|
1625
1749
|
src: e,
|
|
1626
1750
|
poster: r,
|
|
1627
1751
|
disablePictureInPicture: !0,
|
|
1628
1752
|
playsInline: !0,
|
|
1629
|
-
onPlay:
|
|
1630
|
-
onPause:
|
|
1631
|
-
onEnded:
|
|
1632
|
-
onCanPlay:
|
|
1633
|
-
onWaiting:
|
|
1753
|
+
onPlay: a,
|
|
1754
|
+
onPause: h,
|
|
1755
|
+
onEnded: h,
|
|
1756
|
+
onCanPlay: x,
|
|
1757
|
+
onWaiting: j
|
|
1634
1758
|
}
|
|
1635
1759
|
),
|
|
1636
|
-
|
|
1760
|
+
l ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1637
1761
|
/* @__PURE__ */ t.jsxs(
|
|
1638
1762
|
"div",
|
|
1639
1763
|
{
|
|
1640
|
-
className:
|
|
1764
|
+
className: H(
|
|
1641
1765
|
"absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",
|
|
1642
|
-
|
|
1766
|
+
z ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"
|
|
1643
1767
|
),
|
|
1644
1768
|
onMouseDownCapture: (i) => i.stopPropagation(),
|
|
1645
1769
|
children: [
|
|
@@ -1650,25 +1774,25 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
1650
1774
|
className: "flex items-center gap-x-4",
|
|
1651
1775
|
children: [
|
|
1652
1776
|
/* @__PURE__ */ t.jsx(
|
|
1653
|
-
|
|
1777
|
+
Q,
|
|
1654
1778
|
{
|
|
1655
1779
|
shape: "icon",
|
|
1656
1780
|
variant: "ghost",
|
|
1657
1781
|
color: "neutral",
|
|
1658
|
-
onClick:
|
|
1659
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1782
|
+
onClick: v,
|
|
1783
|
+
children: /* @__PURE__ */ t.jsx(Hr, { className: "size-full" })
|
|
1660
1784
|
}
|
|
1661
1785
|
),
|
|
1662
|
-
|
|
1663
|
-
|
|
1786
|
+
E && /* @__PURE__ */ t.jsxs("span", { className: "text-sm", children: [
|
|
1787
|
+
N(E.currentTime),
|
|
1664
1788
|
" /",
|
|
1665
1789
|
" ",
|
|
1666
|
-
|
|
1790
|
+
N(E.duration)
|
|
1667
1791
|
] })
|
|
1668
1792
|
]
|
|
1669
1793
|
}
|
|
1670
1794
|
),
|
|
1671
|
-
|
|
1795
|
+
k && /* @__PURE__ */ t.jsxs(
|
|
1672
1796
|
"div",
|
|
1673
1797
|
{
|
|
1674
1798
|
className: "group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",
|
|
@@ -1676,17 +1800,17 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
1676
1800
|
/* @__PURE__ */ t.jsx(
|
|
1677
1801
|
"div",
|
|
1678
1802
|
{
|
|
1679
|
-
className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${
|
|
1680
|
-
onClick:
|
|
1681
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1803
|
+
className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${k.isMuted ? "group-hover/volume:opacity-50" : "group-hover/volume:opacity-100"}`,
|
|
1804
|
+
onClick: p,
|
|
1805
|
+
children: /* @__PURE__ */ t.jsx(at, { progress: k.volume })
|
|
1682
1806
|
}
|
|
1683
1807
|
),
|
|
1684
1808
|
/* @__PURE__ */ t.jsx(
|
|
1685
1809
|
"div",
|
|
1686
1810
|
{
|
|
1687
1811
|
className: "size-5 cursor-pointer",
|
|
1688
|
-
onClick: () =>
|
|
1689
|
-
children:
|
|
1812
|
+
onClick: () => b(!k.isMuted),
|
|
1813
|
+
children: k.isMuted ? /* @__PURE__ */ t.jsx(Ar, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Rr, { className: "size-full" })
|
|
1690
1814
|
}
|
|
1691
1815
|
)
|
|
1692
1816
|
]
|
|
@@ -1697,45 +1821,47 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
1697
1821
|
"div",
|
|
1698
1822
|
{
|
|
1699
1823
|
className: "cursor-pointer py-1",
|
|
1700
|
-
onClick:
|
|
1701
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1824
|
+
onClick: T,
|
|
1825
|
+
children: /* @__PURE__ */ t.jsx(at, { progress: D })
|
|
1702
1826
|
}
|
|
1703
1827
|
)
|
|
1704
1828
|
]
|
|
1705
1829
|
}
|
|
1706
1830
|
),
|
|
1707
|
-
|
|
1831
|
+
w && /* @__PURE__ */ t.jsx(
|
|
1708
1832
|
"div",
|
|
1709
1833
|
{
|
|
1710
1834
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",
|
|
1711
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1835
|
+
children: /* @__PURE__ */ t.jsx(St, { size: "lg", color: "background" })
|
|
1712
1836
|
}
|
|
1713
1837
|
)
|
|
1714
1838
|
] }) : /* @__PURE__ */ t.jsx(
|
|
1715
1839
|
"div",
|
|
1716
1840
|
{
|
|
1717
1841
|
className: "absolute inset-0 flex items-center justify-center bg-foreground/25",
|
|
1718
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1842
|
+
children: /* @__PURE__ */ t.jsx(Tr, { onClick: c })
|
|
1719
1843
|
}
|
|
1720
1844
|
)
|
|
1721
1845
|
] });
|
|
1722
|
-
},
|
|
1846
|
+
}, Dr = ({ index: e, item: r, isShown: n }) => {
|
|
1723
1847
|
const { type: o } = r;
|
|
1724
1848
|
let s;
|
|
1725
1849
|
switch (o) {
|
|
1726
1850
|
case "image":
|
|
1727
|
-
s = /* @__PURE__ */ t.jsx(
|
|
1851
|
+
s = /* @__PURE__ */ t.jsx(Pt, { itemIndex: e, onlyPreload: !n, ...r });
|
|
1728
1852
|
break;
|
|
1729
1853
|
case "video":
|
|
1730
|
-
s = /* @__PURE__ */ t.jsx(
|
|
1854
|
+
s = /* @__PURE__ */ t.jsx(Or, { itemIndex: e, ...r });
|
|
1731
1855
|
break;
|
|
1732
1856
|
case "360":
|
|
1733
|
-
s = /* @__PURE__ */ t.jsx(
|
|
1857
|
+
s = /* @__PURE__ */ t.jsx(Vr, { itemIndex: e, onlyPreload: !n, ...r });
|
|
1734
1858
|
break;
|
|
1859
|
+
case "custom":
|
|
1860
|
+
s = /* @__PURE__ */ t.jsx(Nr, { itemIndex: e, ...r });
|
|
1735
1861
|
}
|
|
1736
|
-
return s = /* @__PURE__ */ t.jsx("div", { className:
|
|
1737
|
-
},
|
|
1738
|
-
|
|
1862
|
+
return s = /* @__PURE__ */ t.jsx("div", { className: "-ml-px h-full w-[calc(100%+2px)]", children: s }), s;
|
|
1863
|
+
}, Fr = (e) => {
|
|
1864
|
+
O(() => {
|
|
1739
1865
|
const r = (n) => {
|
|
1740
1866
|
n.key === "Escape" && e();
|
|
1741
1867
|
};
|
|
@@ -1744,32 +1870,32 @@ const yt = ze(null), jt = () => Ie(yt), Fe = () => {
|
|
|
1744
1870
|
};
|
|
1745
1871
|
}, [e]);
|
|
1746
1872
|
};
|
|
1747
|
-
function
|
|
1873
|
+
function $r(e) {
|
|
1748
1874
|
return e.target === e.currentTarget;
|
|
1749
1875
|
}
|
|
1750
|
-
const
|
|
1876
|
+
const Zr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", { className: "space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 transition-radius small:space-x-1 small:px-2 small:py-1 small:text-sm", children: [
|
|
1751
1877
|
/* @__PURE__ */ t.jsx("span", { children: e + 1 }),
|
|
1752
1878
|
/* @__PURE__ */ t.jsx("span", { children: "/" }),
|
|
1753
1879
|
/* @__PURE__ */ t.jsx("span", { children: r + 1 })
|
|
1754
|
-
] }),
|
|
1880
|
+
] }), it = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_ARROW_RIGHT", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
1755
1881
|
"path",
|
|
1756
1882
|
{
|
|
1757
1883
|
d: "M4.07666 13.4868L5.25666 14.6668L11.9233 8.00016L5.25666 1.3335L4.07666 2.5135L9.56333 8.00016L4.07666 13.4868Z",
|
|
1758
1884
|
fill: "currentColor"
|
|
1759
1885
|
}
|
|
1760
|
-
) }) }),
|
|
1886
|
+
) }) }), Ur = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_EXTEND", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
1761
1887
|
"path",
|
|
1762
1888
|
{
|
|
1763
1889
|
d: "M4.66683 9.3335H3.3335V12.6668H6.66683V11.3335H4.66683V9.3335ZM3.3335 6.66683H4.66683V4.66683H6.66683V3.3335H3.3335V6.66683ZM11.3335 11.3335H9.3335V12.6668H12.6668V9.3335H11.3335V11.3335ZM9.3335 3.3335V4.66683H11.3335V6.66683H12.6668V3.3335H9.3335Z",
|
|
1764
1890
|
fill: "currentColor"
|
|
1765
1891
|
}
|
|
1766
|
-
) }) }),
|
|
1892
|
+
) }) }), Wr = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_GALLERY", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
1767
1893
|
"path",
|
|
1768
1894
|
{
|
|
1769
1895
|
d: "M13.3334 2.66683V10.6668H5.33337V2.66683H13.3334ZM13.3334 1.3335H5.33337C4.60004 1.3335 4.00004 1.9335 4.00004 2.66683V10.6668C4.00004 11.4002 4.60004 12.0002 5.33337 12.0002H13.3334C14.0667 12.0002 14.6667 11.4002 14.6667 10.6668V2.66683C14.6667 1.9335 14.0667 1.3335 13.3334 1.3335ZM7.66671 7.78016L8.79337 9.28683L10.4467 7.22016L12.6667 10.0002H6.00004L7.66671 7.78016ZM1.33337 4.00016V13.3335C1.33337 14.0668 1.93337 14.6668 2.66671 14.6668H12V13.3335H2.66671V4.00016H1.33337Z",
|
|
1770
1896
|
fill: "currentColor"
|
|
1771
1897
|
}
|
|
1772
|
-
) }) }),
|
|
1898
|
+
) }) }), Yr = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_HOTSPOTS", children: /* @__PURE__ */ t.jsxs(
|
|
1773
1899
|
"svg",
|
|
1774
1900
|
{
|
|
1775
1901
|
className: e,
|
|
@@ -1789,7 +1915,7 @@ const Vr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1789
1915
|
/* @__PURE__ */ t.jsx("defs", { children: /* @__PURE__ */ t.jsx("clipPath", { id: "clip0_418_982", children: /* @__PURE__ */ t.jsx("rect", { width: "12", height: "12", fill: "white" }) }) })
|
|
1790
1916
|
]
|
|
1791
1917
|
}
|
|
1792
|
-
) }),
|
|
1918
|
+
) }), Xr = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_MINUS", children: /* @__PURE__ */ t.jsx(
|
|
1793
1919
|
"svg",
|
|
1794
1920
|
{
|
|
1795
1921
|
className: e,
|
|
@@ -1806,7 +1932,7 @@ const Vr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1806
1932
|
}
|
|
1807
1933
|
)
|
|
1808
1934
|
}
|
|
1809
|
-
) }),
|
|
1935
|
+
) }), Br = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_PLUS", children: /* @__PURE__ */ t.jsx(
|
|
1810
1936
|
"svg",
|
|
1811
1937
|
{
|
|
1812
1938
|
className: e,
|
|
@@ -1823,13 +1949,13 @@ const Vr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1823
1949
|
}
|
|
1824
1950
|
)
|
|
1825
1951
|
}
|
|
1826
|
-
) }),
|
|
1952
|
+
) }), Gr = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_REDUCE", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
1827
1953
|
"path",
|
|
1828
1954
|
{
|
|
1829
1955
|
d: "M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",
|
|
1830
1956
|
fill: "currentColor"
|
|
1831
1957
|
}
|
|
1832
|
-
) }) }),
|
|
1958
|
+
) }) }), Kr = ({
|
|
1833
1959
|
enabled: e,
|
|
1834
1960
|
onToggle: r,
|
|
1835
1961
|
label: n,
|
|
@@ -1838,7 +1964,7 @@ const Vr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1838
1964
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1839
1965
|
"label",
|
|
1840
1966
|
{
|
|
1841
|
-
className:
|
|
1967
|
+
className: H(
|
|
1842
1968
|
"flex cursor-pointer items-center justify-center gap-x-2",
|
|
1843
1969
|
o
|
|
1844
1970
|
),
|
|
@@ -1856,14 +1982,14 @@ const Vr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1856
1982
|
/* @__PURE__ */ t.jsx(
|
|
1857
1983
|
"div",
|
|
1858
1984
|
{
|
|
1859
|
-
className:
|
|
1985
|
+
className: H(
|
|
1860
1986
|
"flex h-5 w-8 items-center justify-center rounded-full transition-colors",
|
|
1861
1987
|
e ? "bg-primary" : "bg-background/60"
|
|
1862
1988
|
),
|
|
1863
1989
|
children: /* @__PURE__ */ t.jsx(
|
|
1864
1990
|
"div",
|
|
1865
1991
|
{
|
|
1866
|
-
className:
|
|
1992
|
+
className: H(
|
|
1867
1993
|
"flex size-4 items-center justify-center rounded-full p-0.5 transition",
|
|
1868
1994
|
e ? "translate-x-1.5 bg-primary-foreground text-primary" : "-translate-x-1.5 bg-background text-foreground"
|
|
1869
1995
|
),
|
|
@@ -1874,7 +2000,7 @@ const Vr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1874
2000
|
)
|
|
1875
2001
|
]
|
|
1876
2002
|
}
|
|
1877
|
-
),
|
|
2003
|
+
), qr = ({ className: e }) => /* @__PURE__ */ t.jsx(G, { className: e, customizationKey: "UI_BURGER", children: /* @__PURE__ */ t.jsx(
|
|
1878
2004
|
"svg",
|
|
1879
2005
|
{
|
|
1880
2006
|
className: e,
|
|
@@ -1891,51 +2017,51 @@ const Vr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1891
2017
|
}
|
|
1892
2018
|
)
|
|
1893
2019
|
}
|
|
1894
|
-
) }),
|
|
1895
|
-
const { categories: r } =
|
|
1896
|
-
|
|
1897
|
-
},
|
|
1898
|
-
|
|
2020
|
+
) }), Jr = ({ sharedClassName: e }) => {
|
|
2021
|
+
const { categories: r } = oe(), { displayedCategoryId: n, changeCategory: o } = J(), [s, u] = $(!1), f = () => {
|
|
2022
|
+
u(!s);
|
|
2023
|
+
}, d = () => {
|
|
2024
|
+
u(!1);
|
|
1899
2025
|
};
|
|
1900
2026
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1901
2027
|
s && /* @__PURE__ */ t.jsx(
|
|
1902
2028
|
"div",
|
|
1903
2029
|
{
|
|
1904
|
-
className:
|
|
1905
|
-
onClick:
|
|
2030
|
+
className: H(e, "inset-0 small:hidden"),
|
|
2031
|
+
onClick: d
|
|
1906
2032
|
}
|
|
1907
2033
|
),
|
|
1908
2034
|
/* @__PURE__ */ t.jsxs(
|
|
1909
2035
|
"div",
|
|
1910
2036
|
{
|
|
1911
|
-
className:
|
|
2037
|
+
className: H(
|
|
1912
2038
|
e,
|
|
1913
|
-
|
|
2039
|
+
pe("top-left"),
|
|
1914
2040
|
"flex gap-x-2 small:hidden"
|
|
1915
2041
|
),
|
|
1916
2042
|
children: [
|
|
1917
2043
|
/* @__PURE__ */ t.jsx(
|
|
1918
|
-
|
|
2044
|
+
Q,
|
|
1919
2045
|
{
|
|
1920
2046
|
shape: "icon",
|
|
1921
2047
|
color: s ? "primary" : "neutral",
|
|
1922
|
-
onClick:
|
|
1923
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2048
|
+
onClick: f,
|
|
2049
|
+
children: /* @__PURE__ */ t.jsx(qr, {})
|
|
1924
2050
|
}
|
|
1925
2051
|
),
|
|
1926
|
-
s && /* @__PURE__ */ t.jsx("div", { className: "rounded-ui-md bg-background transition-radius", children: /* @__PURE__ */ t.jsx("ul", { className: "space-y-0.5 p-1", children: r.map(({ id:
|
|
2052
|
+
s && /* @__PURE__ */ t.jsx("div", { className: "rounded-ui-md bg-background transition-radius", children: /* @__PURE__ */ t.jsx("ul", { className: "space-y-0.5 p-1", children: r.map(({ id: c, title: v }) => /* @__PURE__ */ t.jsx(
|
|
1927
2053
|
"li",
|
|
1928
2054
|
{
|
|
1929
|
-
className:
|
|
2055
|
+
className: H(
|
|
1930
2056
|
"cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-all hover:bg-primary/30",
|
|
1931
|
-
|
|
2057
|
+
c === n && "bg-primary/50"
|
|
1932
2058
|
),
|
|
1933
2059
|
onClick: () => {
|
|
1934
|
-
o(
|
|
2060
|
+
o(c), u(!1);
|
|
1935
2061
|
},
|
|
1936
|
-
children:
|
|
2062
|
+
children: v
|
|
1937
2063
|
},
|
|
1938
|
-
|
|
2064
|
+
c
|
|
1939
2065
|
)) }) })
|
|
1940
2066
|
]
|
|
1941
2067
|
}
|
|
@@ -1943,136 +2069,134 @@ const Vr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1943
2069
|
/* @__PURE__ */ t.jsx(
|
|
1944
2070
|
"div",
|
|
1945
2071
|
{
|
|
1946
|
-
className:
|
|
2072
|
+
className: H(
|
|
1947
2073
|
e,
|
|
1948
|
-
|
|
2074
|
+
Mt("top"),
|
|
1949
2075
|
"w-full overflow-x-auto max-small:hidden"
|
|
1950
2076
|
),
|
|
1951
|
-
children: /* @__PURE__ */ t.jsx("div", { className: "mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow", children: r.map(({ id:
|
|
1952
|
-
|
|
2077
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow", children: r.map(({ id: c, title: v }) => /* @__PURE__ */ t.jsx(
|
|
2078
|
+
Q,
|
|
1953
2079
|
{
|
|
1954
|
-
variant:
|
|
1955
|
-
onClick: () => o(
|
|
1956
|
-
children:
|
|
2080
|
+
variant: c === n ? "fill" : "ghost",
|
|
2081
|
+
onClick: () => o(c),
|
|
2082
|
+
children: v
|
|
1957
2083
|
},
|
|
1958
|
-
|
|
2084
|
+
c
|
|
1959
2085
|
)) })
|
|
1960
2086
|
}
|
|
1961
2087
|
)
|
|
1962
2088
|
] });
|
|
1963
|
-
},
|
|
1964
|
-
const { hideCategories: e, infiniteCarrousel: r, permanentGallery: n } =
|
|
1965
|
-
items: { length:
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
(P) => {
|
|
1993
|
-
Tr(P) && u();
|
|
2089
|
+
}, Qr = () => {
|
|
2090
|
+
const { hideCategories: e, infiniteCarrousel: r, permanentGallery: n } = re(), { aspectRatioStyle: o } = oe(), {
|
|
2091
|
+
items: { length: s },
|
|
2092
|
+
slidable: u,
|
|
2093
|
+
carrouselItemIndex: f,
|
|
2094
|
+
masterItemIndex: d,
|
|
2095
|
+
prevItem: c,
|
|
2096
|
+
nextItem: v,
|
|
2097
|
+
showGalleryControls: l,
|
|
2098
|
+
enableHotspotsControl: m,
|
|
2099
|
+
showHotspots: w,
|
|
2100
|
+
toggleHotspots: C,
|
|
2101
|
+
showGallery: a,
|
|
2102
|
+
toggleGallery: h,
|
|
2103
|
+
extendMode: x,
|
|
2104
|
+
toggleExtendMode: j,
|
|
2105
|
+
shownDetails: k,
|
|
2106
|
+
isShowingDetails: g,
|
|
2107
|
+
resetShownDetails: p,
|
|
2108
|
+
showZoomControls: b,
|
|
2109
|
+
isZooming: E,
|
|
2110
|
+
canZoomIn: L,
|
|
2111
|
+
zoomIn: D,
|
|
2112
|
+
canZoomOut: T,
|
|
2113
|
+
zoomOut: N,
|
|
2114
|
+
resetView: z
|
|
2115
|
+
} = J(), S = I(
|
|
2116
|
+
(R) => {
|
|
2117
|
+
$r(R) && p();
|
|
1994
2118
|
},
|
|
1995
|
-
[
|
|
2119
|
+
[p]
|
|
1996
2120
|
);
|
|
1997
|
-
|
|
2121
|
+
Fr(p);
|
|
1998
2122
|
const V = "absolute z-overlay";
|
|
1999
2123
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2000
2124
|
!e && /* @__PURE__ */ t.jsx(
|
|
2001
|
-
|
|
2125
|
+
Jr,
|
|
2002
2126
|
{
|
|
2003
|
-
sharedClassName:
|
|
2127
|
+
sharedClassName: H(
|
|
2004
2128
|
V,
|
|
2005
2129
|
"transition-opacity",
|
|
2006
|
-
|
|
2130
|
+
E ? "!pointer-events-none opacity-0" : "opacity-100"
|
|
2007
2131
|
)
|
|
2008
2132
|
}
|
|
2009
2133
|
),
|
|
2010
|
-
|
|
2011
|
-
|
|
2134
|
+
u && !E && /* @__PURE__ */ t.jsx("div", { className: H(V, pe("top-right")), children: /* @__PURE__ */ t.jsx(
|
|
2135
|
+
Zr,
|
|
2012
2136
|
{
|
|
2013
|
-
currentIndex:
|
|
2014
|
-
maxIndex:
|
|
2137
|
+
currentIndex: f,
|
|
2138
|
+
maxIndex: s - 1
|
|
2015
2139
|
}
|
|
2016
2140
|
) }),
|
|
2017
|
-
|
|
2141
|
+
u && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2018
2142
|
/* @__PURE__ */ t.jsx(
|
|
2019
|
-
|
|
2143
|
+
Q,
|
|
2020
2144
|
{
|
|
2021
2145
|
shape: "icon",
|
|
2022
2146
|
color: "neutral",
|
|
2023
|
-
className:
|
|
2147
|
+
className: H(
|
|
2024
2148
|
V,
|
|
2025
|
-
|
|
2026
|
-
|
|
2149
|
+
pe("middle-left"),
|
|
2150
|
+
E ? "!pointer-events-none opacity-0" : "opacity-100"
|
|
2027
2151
|
),
|
|
2028
|
-
onClick:
|
|
2029
|
-
disabled: !r &&
|
|
2030
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2152
|
+
onClick: c,
|
|
2153
|
+
disabled: !r && d <= 0,
|
|
2154
|
+
children: /* @__PURE__ */ t.jsx(G, { customizationKey: "CONTROLS_PREV", children: /* @__PURE__ */ t.jsx(it, { className: "size-full -scale-x-100" }) })
|
|
2031
2155
|
}
|
|
2032
2156
|
),
|
|
2033
2157
|
/* @__PURE__ */ t.jsx(
|
|
2034
|
-
|
|
2158
|
+
Q,
|
|
2035
2159
|
{
|
|
2036
2160
|
shape: "icon",
|
|
2037
2161
|
color: "neutral",
|
|
2038
|
-
className:
|
|
2162
|
+
className: H(
|
|
2039
2163
|
V,
|
|
2040
|
-
|
|
2041
|
-
|
|
2164
|
+
pe("middle-right"),
|
|
2165
|
+
E ? "!pointer-events-none opacity-0" : "opacity-100"
|
|
2042
2166
|
),
|
|
2043
|
-
onClick:
|
|
2044
|
-
disabled: !r &&
|
|
2045
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2167
|
+
onClick: v,
|
|
2168
|
+
disabled: !r && d >= s - 1,
|
|
2169
|
+
children: /* @__PURE__ */ t.jsx(G, { customizationKey: "CONTROLS_NEXT", children: /* @__PURE__ */ t.jsx(it, { className: "size-full" }) })
|
|
2046
2170
|
}
|
|
2047
2171
|
)
|
|
2048
2172
|
] }),
|
|
2049
2173
|
/* @__PURE__ */ t.jsxs(
|
|
2050
2174
|
"div",
|
|
2051
2175
|
{
|
|
2052
|
-
className:
|
|
2176
|
+
className: H(
|
|
2053
2177
|
V,
|
|
2054
|
-
|
|
2178
|
+
pe("bottom-fullW"),
|
|
2055
2179
|
"pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"
|
|
2056
2180
|
),
|
|
2057
2181
|
children: [
|
|
2058
|
-
!n &&
|
|
2182
|
+
!n && u && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2059
2183
|
/* @__PURE__ */ t.jsx(
|
|
2060
|
-
|
|
2184
|
+
Q,
|
|
2061
2185
|
{
|
|
2062
|
-
className:
|
|
2186
|
+
className: l && !E ? "opacity-100" : "!pointer-events-none opacity-0",
|
|
2063
2187
|
variant: "fill",
|
|
2064
|
-
color:
|
|
2188
|
+
color: a ? "primary" : "neutral",
|
|
2065
2189
|
shape: "icon",
|
|
2066
|
-
onClick:
|
|
2067
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2190
|
+
onClick: h,
|
|
2191
|
+
children: /* @__PURE__ */ t.jsx(Wr, { className: "size-full" })
|
|
2068
2192
|
}
|
|
2069
2193
|
),
|
|
2070
|
-
|
|
2071
|
-
|
|
2194
|
+
a && /* @__PURE__ */ t.jsx(
|
|
2195
|
+
Rt,
|
|
2072
2196
|
{
|
|
2073
|
-
className:
|
|
2197
|
+
className: H(
|
|
2074
2198
|
"transition-opacity",
|
|
2075
|
-
|
|
2199
|
+
l && !E ? "opacity-100" : "!pointer-events-none opacity-0",
|
|
2076
2200
|
// Left & Right gradient mask to fade the gallery
|
|
2077
2201
|
"[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"
|
|
2078
2202
|
),
|
|
@@ -2081,51 +2205,51 @@ const Vr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2081
2205
|
)
|
|
2082
2206
|
] }),
|
|
2083
2207
|
/* @__PURE__ */ t.jsxs("div", { className: "col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2", children: [
|
|
2084
|
-
|
|
2085
|
-
|
|
2208
|
+
m && /* @__PURE__ */ t.jsx(
|
|
2209
|
+
Kr,
|
|
2086
2210
|
{
|
|
2087
|
-
className:
|
|
2211
|
+
className: H(
|
|
2088
2212
|
"transition-opacity",
|
|
2089
|
-
|
|
2213
|
+
E ? "!pointer-events-none opacity-0" : "opacity-100"
|
|
2090
2214
|
),
|
|
2091
|
-
enabled:
|
|
2092
|
-
onToggle:
|
|
2093
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2215
|
+
enabled: w,
|
|
2216
|
+
onToggle: C,
|
|
2217
|
+
children: /* @__PURE__ */ t.jsx(Yr, { className: "size-full" })
|
|
2094
2218
|
}
|
|
2095
2219
|
),
|
|
2096
|
-
|
|
2220
|
+
b && /* @__PURE__ */ t.jsxs("div", { className: "max-small:hidden", children: [
|
|
2097
2221
|
/* @__PURE__ */ t.jsx(
|
|
2098
|
-
|
|
2222
|
+
Q,
|
|
2099
2223
|
{
|
|
2100
2224
|
className: "rounded-b-none",
|
|
2101
2225
|
color: "neutral",
|
|
2102
2226
|
shape: "icon",
|
|
2103
|
-
disabled: !
|
|
2104
|
-
onClick:
|
|
2105
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2227
|
+
disabled: !L,
|
|
2228
|
+
onClick: D,
|
|
2229
|
+
children: /* @__PURE__ */ t.jsx(Br, { className: "size-full" })
|
|
2106
2230
|
}
|
|
2107
2231
|
),
|
|
2108
|
-
/* @__PURE__ */ t.jsx(
|
|
2232
|
+
/* @__PURE__ */ t.jsx(Ht, { color: "background" }),
|
|
2109
2233
|
/* @__PURE__ */ t.jsx(
|
|
2110
|
-
|
|
2234
|
+
Q,
|
|
2111
2235
|
{
|
|
2112
2236
|
className: "rounded-t-none",
|
|
2113
2237
|
color: "neutral",
|
|
2114
2238
|
shape: "icon",
|
|
2115
|
-
disabled: !
|
|
2116
|
-
onClick:
|
|
2117
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2239
|
+
disabled: !T,
|
|
2240
|
+
onClick: N,
|
|
2241
|
+
children: /* @__PURE__ */ t.jsx(Xr, { className: "size-full" })
|
|
2118
2242
|
}
|
|
2119
2243
|
)
|
|
2120
2244
|
] }),
|
|
2121
2245
|
/* @__PURE__ */ t.jsx(
|
|
2122
|
-
|
|
2246
|
+
Q,
|
|
2123
2247
|
{
|
|
2124
2248
|
variant: "fill",
|
|
2125
|
-
color:
|
|
2249
|
+
color: x ? "primary" : "neutral",
|
|
2126
2250
|
shape: "icon",
|
|
2127
|
-
onClick:
|
|
2128
|
-
children:
|
|
2251
|
+
onClick: j,
|
|
2252
|
+
children: x ? /* @__PURE__ */ t.jsx(Gr, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Ur, { className: "size-full" })
|
|
2129
2253
|
}
|
|
2130
2254
|
)
|
|
2131
2255
|
] })
|
|
@@ -2135,55 +2259,55 @@ const Vr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2135
2259
|
/* @__PURE__ */ t.jsx(
|
|
2136
2260
|
"div",
|
|
2137
2261
|
{
|
|
2138
|
-
className:
|
|
2262
|
+
className: H(
|
|
2139
2263
|
V,
|
|
2140
2264
|
"inset-0 flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",
|
|
2141
|
-
|
|
2265
|
+
g ? "opacity-100" : "pointer-events-none opacity-0"
|
|
2142
2266
|
),
|
|
2143
|
-
onClick:
|
|
2267
|
+
onClick: S,
|
|
2144
2268
|
children: /* @__PURE__ */ t.jsx(
|
|
2145
2269
|
"div",
|
|
2146
2270
|
{
|
|
2147
|
-
className:
|
|
2271
|
+
className: H(
|
|
2148
2272
|
"h-full w-3/5 bg-background transition-transform duration-details",
|
|
2149
|
-
|
|
2273
|
+
g ? "translate-x-0" : "translate-x-full"
|
|
2150
2274
|
),
|
|
2151
|
-
children: !!
|
|
2275
|
+
children: !!k && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2152
2276
|
/* @__PURE__ */ t.jsx(
|
|
2153
|
-
|
|
2277
|
+
he,
|
|
2154
2278
|
{
|
|
2155
2279
|
className: "w-full bg-foreground/65",
|
|
2156
|
-
style:
|
|
2157
|
-
src:
|
|
2280
|
+
style: o,
|
|
2281
|
+
src: k.src,
|
|
2158
2282
|
imgInPlayerWidthRatio: 0.6
|
|
2159
2283
|
}
|
|
2160
2284
|
),
|
|
2161
2285
|
/* @__PURE__ */ t.jsxs(
|
|
2162
2286
|
"div",
|
|
2163
2287
|
{
|
|
2164
|
-
className:
|
|
2288
|
+
className: H(
|
|
2165
2289
|
"space-y-1 px-2 py-1 small:p-3",
|
|
2166
|
-
|
|
2290
|
+
x && "large:p-4"
|
|
2167
2291
|
),
|
|
2168
2292
|
children: [
|
|
2169
|
-
|
|
2293
|
+
k.title && /* @__PURE__ */ t.jsx(
|
|
2170
2294
|
"span",
|
|
2171
2295
|
{
|
|
2172
|
-
className:
|
|
2296
|
+
className: H(
|
|
2173
2297
|
"text-sm font-semibold small:text-base small:font-bold",
|
|
2174
|
-
|
|
2298
|
+
x && "large:text-lg"
|
|
2175
2299
|
),
|
|
2176
|
-
children:
|
|
2300
|
+
children: k.title
|
|
2177
2301
|
}
|
|
2178
2302
|
),
|
|
2179
|
-
|
|
2303
|
+
k.text && /* @__PURE__ */ t.jsx(
|
|
2180
2304
|
"p",
|
|
2181
2305
|
{
|
|
2182
|
-
className:
|
|
2306
|
+
className: H(
|
|
2183
2307
|
"text-xs text-foreground/65 small:text-sm",
|
|
2184
|
-
|
|
2308
|
+
x && "large:text-base"
|
|
2185
2309
|
),
|
|
2186
|
-
children:
|
|
2310
|
+
children: k.text
|
|
2187
2311
|
}
|
|
2188
2312
|
)
|
|
2189
2313
|
]
|
|
@@ -2194,415 +2318,433 @@ const Vr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2194
2318
|
)
|
|
2195
2319
|
}
|
|
2196
2320
|
),
|
|
2197
|
-
(
|
|
2198
|
-
|
|
2321
|
+
(E || g) && /* @__PURE__ */ t.jsx(
|
|
2322
|
+
zt,
|
|
2199
2323
|
{
|
|
2200
|
-
className:
|
|
2201
|
-
onClick:
|
|
2324
|
+
className: H(V, pe("top-right")),
|
|
2325
|
+
onClick: z
|
|
2202
2326
|
}
|
|
2203
2327
|
)
|
|
2204
2328
|
] });
|
|
2205
|
-
},
|
|
2206
|
-
const { infiniteCarrousel: r, preloadRange: n, isFullScreen: o } =
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2329
|
+
}, en = ({ className: e = "" }) => {
|
|
2330
|
+
const { infiniteCarrousel: r, preloadRange: n, isFullScreen: o } = re(), { aspectRatioStyle: s } = oe(), {
|
|
2331
|
+
items: u,
|
|
2332
|
+
slidable: f,
|
|
2333
|
+
carrouselItemIndex: d,
|
|
2334
|
+
setCarrouselItemIndex: c,
|
|
2335
|
+
itemIndexCommand: v,
|
|
2336
|
+
setItemIndexCommand: l,
|
|
2337
|
+
specialCommand: m,
|
|
2338
|
+
isRunningSpecialCommand: w,
|
|
2339
|
+
finishSpecialCommand: C,
|
|
2340
|
+
extendMode: a,
|
|
2341
|
+
extendTransition: h
|
|
2342
|
+
} = J(), x = Z(null), j = I((y) => {
|
|
2343
|
+
if (!x.current)
|
|
2344
|
+
throw new Error(`[${y ?? "sliderOrThrow"}] slider.current is null`);
|
|
2345
|
+
return x.current;
|
|
2346
|
+
}, []), k = Z(!1), g = Z(null), p = Z(null), b = Z(null), E = I(() => {
|
|
2347
|
+
b.current && cancelAnimationFrame(b.current);
|
|
2348
|
+
}, []), L = I(() => {
|
|
2349
|
+
const y = j("computeClosestSnapIndex"), i = Array.from(y.children), _ = y.scrollLeft, M = i.reduce(
|
|
2350
|
+
(A, F, U) => {
|
|
2351
|
+
const W = F.offsetLeft;
|
|
2352
|
+
return Math.abs(W - _) < Math.abs(i[A].offsetLeft - _) ? U : A;
|
|
2228
2353
|
},
|
|
2229
2354
|
0
|
|
2230
2355
|
);
|
|
2231
|
-
return
|
|
2232
|
-
}, [
|
|
2233
|
-
(
|
|
2234
|
-
const i =
|
|
2235
|
-
i.style.cursor =
|
|
2356
|
+
return m === "first_to_last" ? rt(M, u.length) : m === "last_to_first" ? rt(M - 1, u.length) : M;
|
|
2357
|
+
}, [m, j, u.length]), D = I(
|
|
2358
|
+
(y) => {
|
|
2359
|
+
const i = j("setStyleCursor");
|
|
2360
|
+
i.style.cursor = y;
|
|
2236
2361
|
},
|
|
2237
|
-
[
|
|
2238
|
-
),
|
|
2239
|
-
(
|
|
2240
|
-
const i =
|
|
2241
|
-
|
|
2362
|
+
[j]
|
|
2363
|
+
), T = I(
|
|
2364
|
+
(y) => {
|
|
2365
|
+
const i = j("setStyleSnapState");
|
|
2366
|
+
y === "mandatory" ? i.style.scrollSnapType = "x mandatory" : i.style.scrollSnapType = "none";
|
|
2242
2367
|
},
|
|
2243
|
-
[
|
|
2244
|
-
),
|
|
2245
|
-
(
|
|
2246
|
-
|
|
2247
|
-
const
|
|
2248
|
-
|
|
2249
|
-
left:
|
|
2368
|
+
[j]
|
|
2369
|
+
), N = I(
|
|
2370
|
+
(y, i, _) => {
|
|
2371
|
+
E();
|
|
2372
|
+
const M = j("scrollToIndex"), A = Array.from(M.children), F = M.scrollLeft, U = A[y].offsetLeft, W = (ae) => {
|
|
2373
|
+
M.scrollTo({
|
|
2374
|
+
left: ae,
|
|
2250
2375
|
behavior: "instant"
|
|
2251
2376
|
});
|
|
2252
|
-
},
|
|
2253
|
-
|
|
2254
|
-
},
|
|
2255
|
-
if (
|
|
2256
|
-
|
|
2377
|
+
}, Y = () => {
|
|
2378
|
+
W(U), T("mandatory"), _?.();
|
|
2379
|
+
}, q = Math.abs(F - U);
|
|
2380
|
+
if (q < 1 || i === "instant") {
|
|
2381
|
+
Y();
|
|
2257
2382
|
return;
|
|
2258
2383
|
}
|
|
2259
|
-
const
|
|
2260
|
-
|
|
2261
|
-
const
|
|
2262
|
-
const
|
|
2263
|
-
const je = (/* @__PURE__ */ new Date()).getTime() -
|
|
2264
|
-
if (je >=
|
|
2265
|
-
|
|
2384
|
+
const ee = le(q / 2.5, 300, 1e3), fe = (/* @__PURE__ */ new Date()).getTime();
|
|
2385
|
+
T("none");
|
|
2386
|
+
const se = () => {
|
|
2387
|
+
const ae = () => {
|
|
2388
|
+
const je = (/* @__PURE__ */ new Date()).getTime() - fe;
|
|
2389
|
+
if (je >= ee) {
|
|
2390
|
+
Y();
|
|
2266
2391
|
return;
|
|
2267
2392
|
}
|
|
2268
|
-
const
|
|
2269
|
-
|
|
2393
|
+
const Se = Math.min(je / ee, 1), Ve = At(Se), ce = Le(F, U, Ve);
|
|
2394
|
+
W(ce), se();
|
|
2270
2395
|
};
|
|
2271
|
-
|
|
2396
|
+
b.current = requestAnimationFrame(ae);
|
|
2272
2397
|
};
|
|
2273
|
-
|
|
2398
|
+
se();
|
|
2274
2399
|
},
|
|
2275
|
-
[
|
|
2276
|
-
), [
|
|
2277
|
-
|
|
2278
|
-
const
|
|
2279
|
-
clearTimeout(
|
|
2400
|
+
[E, j, T]
|
|
2401
|
+
), [z, S] = $(), V = !!z;
|
|
2402
|
+
O(() => {
|
|
2403
|
+
const y = () => {
|
|
2404
|
+
clearTimeout(z);
|
|
2280
2405
|
const i = setTimeout(() => {
|
|
2281
|
-
|
|
2282
|
-
},
|
|
2283
|
-
|
|
2406
|
+
S(void 0);
|
|
2407
|
+
}, Et);
|
|
2408
|
+
S(i);
|
|
2284
2409
|
};
|
|
2285
|
-
return addEventListener("resize",
|
|
2286
|
-
removeEventListener("resize",
|
|
2410
|
+
return addEventListener("resize", y), document.addEventListener("fullscreenchange", y), () => {
|
|
2411
|
+
removeEventListener("resize", y), document.removeEventListener("fullscreenchange", y);
|
|
2287
2412
|
};
|
|
2288
|
-
}, [
|
|
2289
|
-
const
|
|
2290
|
-
Number.isNaN(
|
|
2413
|
+
}, [z]), O(() => {
|
|
2414
|
+
const y = L();
|
|
2415
|
+
Number.isNaN(y) || y !== d && N(d, "instant");
|
|
2291
2416
|
}, [
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2417
|
+
d,
|
|
2418
|
+
N,
|
|
2419
|
+
L,
|
|
2295
2420
|
// - Run the effect when those values change
|
|
2296
|
-
|
|
2297
|
-
|
|
2421
|
+
u,
|
|
2422
|
+
z,
|
|
2298
2423
|
o,
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
]),
|
|
2302
|
-
if (!
|
|
2303
|
-
|
|
2424
|
+
a,
|
|
2425
|
+
h
|
|
2426
|
+
]), O(() => {
|
|
2427
|
+
if (!f || w) {
|
|
2428
|
+
D("auto");
|
|
2304
2429
|
return;
|
|
2305
2430
|
}
|
|
2306
|
-
const
|
|
2307
|
-
if (!
|
|
2431
|
+
const y = x.current;
|
|
2432
|
+
if (!y)
|
|
2308
2433
|
return;
|
|
2309
|
-
|
|
2310
|
-
const i = (
|
|
2311
|
-
|
|
2312
|
-
},
|
|
2313
|
-
if (!
|
|
2434
|
+
D("grab"), T("mandatory");
|
|
2435
|
+
const i = (A) => {
|
|
2436
|
+
A.button === 0 && (A.preventDefault(), A.stopPropagation(), E(), k.current = !0, g.current = A.pageX - y.offsetLeft, p.current = y.scrollLeft, D("grabbing"));
|
|
2437
|
+
}, _ = (A) => {
|
|
2438
|
+
if (!k.current)
|
|
2314
2439
|
return;
|
|
2315
|
-
if (
|
|
2440
|
+
if (g.current === null)
|
|
2316
2441
|
throw new Error("[onMouseMove] startX is null");
|
|
2317
|
-
|
|
2318
|
-
const
|
|
2442
|
+
T("none");
|
|
2443
|
+
const F = A.pageX - y.offsetLeft - g.current;
|
|
2319
2444
|
requestAnimationFrame(() => {
|
|
2320
|
-
if (
|
|
2445
|
+
if (p.current === null)
|
|
2321
2446
|
throw new Error("[onMouseMove] scrollLeft is null");
|
|
2322
|
-
|
|
2447
|
+
y.scrollLeft = p.current - F;
|
|
2323
2448
|
});
|
|
2324
|
-
},
|
|
2325
|
-
if (!
|
|
2449
|
+
}, M = () => {
|
|
2450
|
+
if (!k.current)
|
|
2326
2451
|
return;
|
|
2327
|
-
|
|
2328
|
-
const
|
|
2329
|
-
|
|
2452
|
+
k.current = !1, D("grab");
|
|
2453
|
+
const A = L();
|
|
2454
|
+
N(A, "smooth");
|
|
2330
2455
|
};
|
|
2331
|
-
return
|
|
2332
|
-
|
|
2456
|
+
return y.addEventListener("mousedown", i), document.addEventListener("mousemove", _), document.addEventListener("mouseleave", M), document.addEventListener("mouseup", M), document.addEventListener("contextmenu", M), () => {
|
|
2457
|
+
y.removeEventListener("mousedown", i), document.removeEventListener("mousemove", _), document.removeEventListener("mouseleave", M), document.removeEventListener("mouseup", M), document.removeEventListener("contextmenu", M);
|
|
2333
2458
|
};
|
|
2334
2459
|
}, [
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
]),
|
|
2343
|
-
if (
|
|
2460
|
+
E,
|
|
2461
|
+
L,
|
|
2462
|
+
w,
|
|
2463
|
+
N,
|
|
2464
|
+
D,
|
|
2465
|
+
T,
|
|
2466
|
+
f
|
|
2467
|
+
]), O(() => {
|
|
2468
|
+
if (h || V)
|
|
2344
2469
|
return;
|
|
2345
|
-
const
|
|
2346
|
-
if (!
|
|
2470
|
+
const y = x.current;
|
|
2471
|
+
if (!y)
|
|
2347
2472
|
return;
|
|
2348
2473
|
const i = () => {
|
|
2349
|
-
const
|
|
2350
|
-
Number.isNaN(
|
|
2474
|
+
const _ = L();
|
|
2475
|
+
Number.isNaN(_) || (c(_), _ === v && l(null));
|
|
2351
2476
|
};
|
|
2352
|
-
return
|
|
2353
|
-
|
|
2477
|
+
return y.addEventListener("scroll", i), () => {
|
|
2478
|
+
y.removeEventListener("scroll", i);
|
|
2354
2479
|
};
|
|
2355
2480
|
}, [
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
f,
|
|
2359
|
-
V,
|
|
2481
|
+
L,
|
|
2482
|
+
h,
|
|
2360
2483
|
w,
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2484
|
+
V,
|
|
2485
|
+
v,
|
|
2486
|
+
u.length,
|
|
2487
|
+
c,
|
|
2488
|
+
l
|
|
2489
|
+
]), O(() => {
|
|
2490
|
+
if (v === null)
|
|
2366
2491
|
return;
|
|
2367
|
-
const
|
|
2368
|
-
switch (
|
|
2492
|
+
const y = () => C();
|
|
2493
|
+
switch (m) {
|
|
2369
2494
|
case "first_to_last":
|
|
2370
|
-
|
|
2495
|
+
N(u.length, "instant"), N(u.length - 1, "smooth", y);
|
|
2371
2496
|
break;
|
|
2372
2497
|
case "last_to_first":
|
|
2373
|
-
|
|
2498
|
+
N(0, "instant"), N(1, "smooth", y);
|
|
2374
2499
|
break;
|
|
2375
2500
|
case "instant":
|
|
2376
|
-
|
|
2501
|
+
N(v, "instant", y);
|
|
2377
2502
|
break;
|
|
2378
2503
|
default:
|
|
2379
|
-
|
|
2504
|
+
N(v, "smooth");
|
|
2380
2505
|
break;
|
|
2381
2506
|
}
|
|
2382
2507
|
}, [
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2508
|
+
m,
|
|
2509
|
+
C,
|
|
2510
|
+
v,
|
|
2511
|
+
u.length,
|
|
2512
|
+
N
|
|
2388
2513
|
]);
|
|
2389
|
-
const
|
|
2514
|
+
const R = () => /* @__PURE__ */ t.jsx("div", { className: "h-full", style: s });
|
|
2390
2515
|
return /* @__PURE__ */ t.jsxs(
|
|
2391
2516
|
"div",
|
|
2392
2517
|
{
|
|
2393
|
-
className:
|
|
2518
|
+
className: H(
|
|
2394
2519
|
"relative overflow-hidden rounded-carrousel transition-radius",
|
|
2395
2520
|
e
|
|
2396
2521
|
),
|
|
2397
|
-
style:
|
|
2522
|
+
style: s,
|
|
2398
2523
|
children: [
|
|
2399
2524
|
/* @__PURE__ */ t.jsxs(
|
|
2400
2525
|
"div",
|
|
2401
2526
|
{
|
|
2402
|
-
ref:
|
|
2403
|
-
className: `flex size-full ${
|
|
2527
|
+
ref: x,
|
|
2528
|
+
className: `flex size-full ${f ? "overflow-x-auto no-scrollbar *:snap-start *:snap-always" : "justify-center"}`,
|
|
2404
2529
|
children: [
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
const
|
|
2408
|
-
if (
|
|
2530
|
+
m === "last_to_first" && /* @__PURE__ */ t.jsx(R, {}),
|
|
2531
|
+
u.map((y, i) => {
|
|
2532
|
+
const _ = i === d, M = i === 0, A = i === u.length - 1, F = (() => {
|
|
2533
|
+
if (m === "first_to_last" && M)
|
|
2409
2534
|
return {
|
|
2410
|
-
transform: `translateX(${100 *
|
|
2535
|
+
transform: `translateX(${100 * u.length}%)`
|
|
2411
2536
|
};
|
|
2412
|
-
if (
|
|
2537
|
+
if (m === "last_to_first" && A)
|
|
2413
2538
|
return {
|
|
2414
|
-
transform: `translateX(-${100 *
|
|
2539
|
+
transform: `translateX(-${100 * u.length}%)`
|
|
2415
2540
|
};
|
|
2416
2541
|
})();
|
|
2417
|
-
let
|
|
2418
|
-
|
|
2542
|
+
let U = Math.abs(i - d) <= n;
|
|
2543
|
+
U ||= i === v, r && (U ||= d < n && u.length - i <= n - d, U ||= d >= u.length - n && i <= n - (u.length - d));
|
|
2544
|
+
const W = (() => {
|
|
2545
|
+
let Y;
|
|
2546
|
+
switch (y.type) {
|
|
2547
|
+
case "360":
|
|
2548
|
+
Y = y.images[0].src;
|
|
2549
|
+
break;
|
|
2550
|
+
case "image":
|
|
2551
|
+
Y = y.src;
|
|
2552
|
+
break;
|
|
2553
|
+
case "video":
|
|
2554
|
+
Y = y.poster ?? "video";
|
|
2555
|
+
break;
|
|
2556
|
+
case "custom":
|
|
2557
|
+
Y = "custom";
|
|
2558
|
+
break;
|
|
2559
|
+
}
|
|
2560
|
+
return `${i}_${Y}`;
|
|
2561
|
+
})();
|
|
2562
|
+
return /* @__PURE__ */ t.jsx(
|
|
2419
2563
|
"div",
|
|
2420
2564
|
{
|
|
2421
|
-
className:
|
|
2565
|
+
className: H(
|
|
2422
2566
|
"h-full bg-foreground/35",
|
|
2423
|
-
|
|
2567
|
+
d === i && "z-1"
|
|
2424
2568
|
// Give high-ground to the shown item (to avoid 1px vertical line)
|
|
2425
2569
|
),
|
|
2426
|
-
style: { ...
|
|
2427
|
-
children:
|
|
2570
|
+
style: { ...s, ...F },
|
|
2571
|
+
children: U && /* @__PURE__ */ t.jsx(Dr, { index: i, item: y, isShown: _ })
|
|
2428
2572
|
},
|
|
2429
|
-
|
|
2573
|
+
W
|
|
2430
2574
|
);
|
|
2431
2575
|
}),
|
|
2432
|
-
|
|
2576
|
+
m === "first_to_last" && /* @__PURE__ */ t.jsx(R, {})
|
|
2433
2577
|
]
|
|
2434
2578
|
}
|
|
2435
2579
|
),
|
|
2436
|
-
/* @__PURE__ */ t.jsx(
|
|
2580
|
+
/* @__PURE__ */ t.jsx(Qr, {})
|
|
2437
2581
|
]
|
|
2438
2582
|
}
|
|
2439
2583
|
);
|
|
2440
|
-
},
|
|
2441
|
-
const { permanentGallery: e } =
|
|
2584
|
+
}, tn = () => {
|
|
2585
|
+
const { permanentGallery: e } = re(), { aspectRatioStyle: r } = oe(), {
|
|
2442
2586
|
prevItem: n,
|
|
2443
2587
|
nextItem: o,
|
|
2444
2588
|
isShowingDetails: s,
|
|
2445
|
-
resetShownDetails:
|
|
2446
|
-
extendMode:
|
|
2447
|
-
disableExtendMode:
|
|
2448
|
-
isZooming:
|
|
2449
|
-
resetZoom:
|
|
2450
|
-
fakeFullScreen:
|
|
2451
|
-
} =
|
|
2452
|
-
return
|
|
2453
|
-
if (!
|
|
2589
|
+
resetShownDetails: u,
|
|
2590
|
+
extendMode: f,
|
|
2591
|
+
disableExtendMode: d,
|
|
2592
|
+
isZooming: c,
|
|
2593
|
+
resetZoom: v,
|
|
2594
|
+
fakeFullScreen: l
|
|
2595
|
+
} = J(), m = Z(null), w = Z(null), C = Z(null);
|
|
2596
|
+
return O(() => {
|
|
2597
|
+
if (!f)
|
|
2454
2598
|
return;
|
|
2455
|
-
const
|
|
2456
|
-
if (!
|
|
2599
|
+
const a = m.current, h = w.current, x = C.current;
|
|
2600
|
+
if (!a || !h || !x)
|
|
2457
2601
|
return;
|
|
2458
|
-
let
|
|
2459
|
-
const
|
|
2460
|
-
|
|
2461
|
-
},
|
|
2462
|
-
|
|
2602
|
+
let j = !1;
|
|
2603
|
+
const k = (b) => [a, h, x].includes(b.target), g = (b) => {
|
|
2604
|
+
j = k(b);
|
|
2605
|
+
}, p = (b) => {
|
|
2606
|
+
j && (k(b) && d(), j = !1);
|
|
2463
2607
|
};
|
|
2464
|
-
return
|
|
2465
|
-
|
|
2608
|
+
return a.addEventListener("mousedown", g), a.addEventListener("mouseup", p), () => {
|
|
2609
|
+
a.removeEventListener("mousedown", g), a.removeEventListener("mouseup", p);
|
|
2466
2610
|
};
|
|
2467
|
-
}, [
|
|
2468
|
-
const
|
|
2469
|
-
|
|
2611
|
+
}, [d, f]), O(() => {
|
|
2612
|
+
const a = (h) => {
|
|
2613
|
+
h.key === "Escape" && (c ? v() : s ? u() : d());
|
|
2470
2614
|
};
|
|
2471
|
-
return addEventListener("keydown",
|
|
2472
|
-
removeEventListener("keydown",
|
|
2615
|
+
return addEventListener("keydown", a), () => {
|
|
2616
|
+
removeEventListener("keydown", a);
|
|
2473
2617
|
};
|
|
2474
2618
|
}, [
|
|
2475
|
-
|
|
2619
|
+
d,
|
|
2476
2620
|
s,
|
|
2477
|
-
|
|
2621
|
+
c,
|
|
2478
2622
|
o,
|
|
2479
2623
|
n,
|
|
2480
|
-
|
|
2481
|
-
|
|
2624
|
+
u,
|
|
2625
|
+
v
|
|
2482
2626
|
]), /* @__PURE__ */ t.jsxs(
|
|
2483
2627
|
"div",
|
|
2484
2628
|
{
|
|
2485
|
-
ref:
|
|
2486
|
-
className:
|
|
2487
|
-
|
|
2488
|
-
|
|
2629
|
+
ref: m,
|
|
2630
|
+
className: H(
|
|
2631
|
+
l ? "fixed inset-0 z-overlay" : "relative",
|
|
2632
|
+
f && "flex size-full items-center justify-center bg-foreground/75"
|
|
2489
2633
|
),
|
|
2490
2634
|
children: [
|
|
2491
2635
|
/* @__PURE__ */ t.jsxs(
|
|
2492
2636
|
"div",
|
|
2493
2637
|
{
|
|
2494
|
-
ref:
|
|
2495
|
-
className:
|
|
2638
|
+
ref: w,
|
|
2639
|
+
className: f ? "flex size-full flex-col justify-center gap-y-2 small:gap-y-4" : "space-y-2",
|
|
2496
2640
|
children: [
|
|
2497
2641
|
/* @__PURE__ */ t.jsx(
|
|
2498
2642
|
"div",
|
|
2499
2643
|
{
|
|
2500
|
-
ref:
|
|
2501
|
-
className:
|
|
2502
|
-
|
|
2644
|
+
ref: C,
|
|
2645
|
+
className: H(
|
|
2646
|
+
f && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
|
|
2503
2647
|
),
|
|
2504
2648
|
style: r,
|
|
2505
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2649
|
+
children: /* @__PURE__ */ t.jsx(en, { className: H(f && "h-full min-w-0") })
|
|
2506
2650
|
}
|
|
2507
2651
|
),
|
|
2508
|
-
e && /* @__PURE__ */ t.jsx(
|
|
2652
|
+
e && /* @__PURE__ */ t.jsx(Rt, { className: H(f && "my-2 shrink-0 small:my-4") })
|
|
2509
2653
|
]
|
|
2510
2654
|
}
|
|
2511
2655
|
),
|
|
2512
|
-
|
|
2513
|
-
|
|
2656
|
+
f && /* @__PURE__ */ t.jsx(
|
|
2657
|
+
zt,
|
|
2514
2658
|
{
|
|
2515
2659
|
className: "absolute right-2 top-2 small:right-4 small:top-4",
|
|
2516
|
-
onClick:
|
|
2660
|
+
onClick: d
|
|
2517
2661
|
}
|
|
2518
2662
|
)
|
|
2519
2663
|
]
|
|
2520
2664
|
}
|
|
2521
2665
|
);
|
|
2522
|
-
},
|
|
2523
|
-
compositionUrl:
|
|
2524
|
-
}) => {
|
|
2525
|
-
const { emitEvent: r } = J(), {
|
|
2666
|
+
}, rn = () => {
|
|
2667
|
+
const { emitEvent: e, compositionUrl: r } = re(), {
|
|
2526
2668
|
data: n,
|
|
2527
2669
|
status: o,
|
|
2528
2670
|
isSuccess: s,
|
|
2529
|
-
error:
|
|
2530
|
-
} =
|
|
2531
|
-
return
|
|
2532
|
-
|
|
2533
|
-
}, [n,
|
|
2534
|
-
|
|
2671
|
+
error: u
|
|
2672
|
+
} = ar(r);
|
|
2673
|
+
return O(() => {
|
|
2674
|
+
u ? e(mt, u) : o === "fetching" ? e(dt, r) : s && e(ut, n);
|
|
2675
|
+
}, [n, r, e, u, s, o]), u ? /* @__PURE__ */ t.jsx(
|
|
2676
|
+
It,
|
|
2535
2677
|
{
|
|
2536
2678
|
className: "aspect-square text-foreground/70",
|
|
2537
2679
|
text: "Player could not be loaded"
|
|
2538
2680
|
}
|
|
2539
|
-
) : s ? /* @__PURE__ */ t.jsx(
|
|
2681
|
+
) : s ? /* @__PURE__ */ t.jsx(lr, { composition: n, children: /* @__PURE__ */ t.jsx(dr, { children: /* @__PURE__ */ t.jsx(tn, {}) }) }) : /* @__PURE__ */ t.jsxs("div", { className: "flex aspect-square size-full flex-col items-center justify-center gap-y-4", children: [
|
|
2540
2682
|
/* @__PURE__ */ t.jsx("div", { className: "animate-pulse text-xl", children: "Loading Player" }),
|
|
2541
|
-
/* @__PURE__ */ t.jsx(
|
|
2683
|
+
/* @__PURE__ */ t.jsx(St, { color: "foreground" })
|
|
2542
2684
|
] });
|
|
2543
|
-
},
|
|
2685
|
+
}, nn = ({
|
|
2544
2686
|
compositionUrl: e,
|
|
2545
|
-
hideCategories: r =
|
|
2546
|
-
infiniteCarrousel: n =
|
|
2547
|
-
permanentGallery: o =
|
|
2548
|
-
mediaLoadStrategy: s =
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2687
|
+
hideCategories: r = Bt,
|
|
2688
|
+
infiniteCarrousel: n = Gt,
|
|
2689
|
+
permanentGallery: o = Kt,
|
|
2690
|
+
mediaLoadStrategy: s = qt,
|
|
2691
|
+
minMediaWidth: u = Jt,
|
|
2692
|
+
maxMediaWidth: f = Qt,
|
|
2693
|
+
preloadRange: d = er,
|
|
2694
|
+
preventFullScreen: c = tr,
|
|
2695
|
+
eventPrefix: v = bt,
|
|
2696
|
+
reverse360: l = rr,
|
|
2697
|
+
children: m
|
|
2554
2698
|
// NOTE: use to customize the player, not to display the content
|
|
2555
|
-
...m
|
|
2556
|
-
// Contains the rest of the props (minMediaWidth / maxMediaWidth)
|
|
2557
2699
|
}) => {
|
|
2558
|
-
const
|
|
2559
|
-
(
|
|
2560
|
-
const
|
|
2561
|
-
document.dispatchEvent(
|
|
2700
|
+
const w = Z(null), [C, a] = $(0.5), [h, x] = $(!1), j = I(
|
|
2701
|
+
(p, b) => {
|
|
2702
|
+
const E = v + p, L = new CustomEvent(E, { detail: b });
|
|
2703
|
+
document.dispatchEvent(L);
|
|
2562
2704
|
},
|
|
2563
|
-
[
|
|
2705
|
+
[v]
|
|
2564
2706
|
);
|
|
2565
|
-
|
|
2566
|
-
if (
|
|
2567
|
-
|
|
2707
|
+
O(() => {
|
|
2708
|
+
if (h) {
|
|
2709
|
+
a(1);
|
|
2568
2710
|
return;
|
|
2569
2711
|
}
|
|
2570
|
-
if (!
|
|
2712
|
+
if (!w.current)
|
|
2571
2713
|
return;
|
|
2572
|
-
const
|
|
2573
|
-
const
|
|
2574
|
-
|
|
2714
|
+
const p = w.current, b = () => {
|
|
2715
|
+
const E = window.innerWidth, L = p.clientWidth;
|
|
2716
|
+
a(L / E);
|
|
2575
2717
|
};
|
|
2576
|
-
return
|
|
2577
|
-
removeEventListener("resize",
|
|
2718
|
+
return b(), addEventListener("resize", b), () => {
|
|
2719
|
+
removeEventListener("resize", b);
|
|
2578
2720
|
};
|
|
2579
|
-
}, [
|
|
2580
|
-
if (
|
|
2721
|
+
}, [h]), O(() => {
|
|
2722
|
+
if (c)
|
|
2581
2723
|
return;
|
|
2582
|
-
const
|
|
2583
|
-
if (!
|
|
2724
|
+
const p = w.current;
|
|
2725
|
+
if (!p)
|
|
2584
2726
|
throw new Error("Wrapper not found");
|
|
2585
|
-
const
|
|
2586
|
-
const { fullscreenElement:
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2727
|
+
const b = () => {
|
|
2728
|
+
const { fullscreenElement: E } = document;
|
|
2729
|
+
x(
|
|
2730
|
+
E === p || // NOTE: For custom element, the web browser is making the whole custom element full-screen and not only the wrapper
|
|
2731
|
+
E?.localName === Ie
|
|
2590
2732
|
);
|
|
2591
2733
|
};
|
|
2592
|
-
return document.addEventListener("fullscreenchange",
|
|
2593
|
-
document.removeEventListener("fullscreenchange",
|
|
2734
|
+
return document.addEventListener("fullscreenchange", b), () => {
|
|
2735
|
+
document.removeEventListener("fullscreenchange", b);
|
|
2594
2736
|
};
|
|
2595
|
-
}, [
|
|
2596
|
-
const
|
|
2597
|
-
const
|
|
2598
|
-
if (!
|
|
2737
|
+
}, [c]);
|
|
2738
|
+
const k = I(async () => {
|
|
2739
|
+
const p = w.current;
|
|
2740
|
+
if (!p)
|
|
2599
2741
|
throw new Error("Wrapper not found");
|
|
2600
2742
|
try {
|
|
2601
|
-
return await
|
|
2743
|
+
return await p.requestFullscreen(), !0;
|
|
2602
2744
|
} catch {
|
|
2603
2745
|
return !1;
|
|
2604
2746
|
}
|
|
2605
|
-
}, []),
|
|
2747
|
+
}, []), g = I(async () => {
|
|
2606
2748
|
try {
|
|
2607
2749
|
return await document.exitFullscreen(), !0;
|
|
2608
2750
|
} catch {
|
|
@@ -2610,48 +2752,63 @@ const Vr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2610
2752
|
}
|
|
2611
2753
|
}, []);
|
|
2612
2754
|
return /* @__PURE__ */ t.jsx(
|
|
2613
|
-
|
|
2755
|
+
ir,
|
|
2614
2756
|
{
|
|
2615
|
-
|
|
2757
|
+
compositionUrl: e,
|
|
2616
2758
|
hideCategories: r,
|
|
2617
2759
|
infiniteCarrousel: n,
|
|
2618
2760
|
permanentGallery: o,
|
|
2619
2761
|
mediaLoadStrategy: s,
|
|
2620
|
-
|
|
2621
|
-
|
|
2762
|
+
minMediaWidth: u,
|
|
2763
|
+
maxMediaWidth: f,
|
|
2764
|
+
preloadRange: d,
|
|
2765
|
+
preventFullScreen: c,
|
|
2622
2766
|
reverse360: l,
|
|
2623
|
-
emitEvent:
|
|
2624
|
-
playerInViewportWidthRatio:
|
|
2625
|
-
isFullScreen:
|
|
2626
|
-
requestFullscreen:
|
|
2627
|
-
exitFullscreen:
|
|
2628
|
-
children: /* @__PURE__ */ t.jsxs(
|
|
2767
|
+
emitEvent: j,
|
|
2768
|
+
playerInViewportWidthRatio: C,
|
|
2769
|
+
isFullScreen: h,
|
|
2770
|
+
requestFullscreen: k,
|
|
2771
|
+
exitFullscreen: g,
|
|
2772
|
+
children: /* @__PURE__ */ t.jsxs(cr, { children: [
|
|
2629
2773
|
/* @__PURE__ */ t.jsx(
|
|
2630
2774
|
"div",
|
|
2631
2775
|
{
|
|
2632
2776
|
id: "cc-webplayer-wrapper",
|
|
2633
|
-
ref:
|
|
2777
|
+
ref: w,
|
|
2634
2778
|
className: "select-none text-foreground",
|
|
2635
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2779
|
+
children: /* @__PURE__ */ t.jsx(rn, {})
|
|
2636
2780
|
}
|
|
2637
2781
|
),
|
|
2638
|
-
|
|
2782
|
+
m
|
|
2639
2783
|
] })
|
|
2640
2784
|
}
|
|
2641
2785
|
);
|
|
2642
|
-
},
|
|
2643
|
-
const {
|
|
2644
|
-
return
|
|
2645
|
-
if (!
|
|
2646
|
-
return
|
|
2647
|
-
|
|
2648
|
-
|
|
2786
|
+
}, on = ({ children: e, index: r, thumbnailSrc: n }) => {
|
|
2787
|
+
const { registerCustomMedia: o, unregisterCustomMedia: s } = ye();
|
|
2788
|
+
return O(() => {
|
|
2789
|
+
if (!e)
|
|
2790
|
+
return;
|
|
2791
|
+
const u = o({
|
|
2792
|
+
Media: e,
|
|
2793
|
+
index: r,
|
|
2794
|
+
thumbnailSrc: n
|
|
2795
|
+
});
|
|
2796
|
+
return () => {
|
|
2797
|
+
s(u);
|
|
2798
|
+
};
|
|
2799
|
+
}, [e, s, r, o, n]), null;
|
|
2800
|
+
}, sn = (e) => Xe() ? /* @__PURE__ */ t.jsx(on, { ...e }) : /* @__PURE__ */ t.jsx("slot", {}), an = ({ name: e, children: r }) => {
|
|
2801
|
+
const { registerIconConfig: n, unregisterIconConfig: o } = ye();
|
|
2802
|
+
return O(() => {
|
|
2803
|
+
if (r)
|
|
2804
|
+
return n(e, {
|
|
2805
|
+
Icon: r
|
|
2649
2806
|
}), () => {
|
|
2650
|
-
|
|
2807
|
+
o(e);
|
|
2651
2808
|
};
|
|
2652
|
-
}, [
|
|
2653
|
-
}, Br = (e) => jt() ? /* @__PURE__ */ t.jsx(Gr, { ...e }) : /* @__PURE__ */ t.jsx("slot", {}), qr = '*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}#cc-webplayer-wrapper{--background: var(--cc-webplayer-background, 0 0% 100%);--foreground: var(--cc-webplayer-foreground, 240 10% 3.9%);--primary: var(--cc-webplayer-primary, 216 100% 52%);--primary-foreground: var( --cc-webplayer-primary-foreground, var(--background) );--primary-light: var(--cc-webplayer-primary-light, var(--primary));--neutral: var(--cc-webplayer-neutral, 0 0% 39%);--neutral-foreground: var( --cc-webplayer-neutral-foreground, var(--foreground) );--radius-ui: var(--cc-webplayer-radius-ui, 1rem);--radius-carrousel: var(--cc-webplayer-radius-carrousel, 0);--radius-gallery: var(--cc-webplayer-radius-gallery, 0)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-x-1{left:.25rem;right:.25rem}.inset-y-1{top:.25rem;bottom:.25rem}.-bottom-1{bottom:-.25rem}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-1{z-index:1}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-ml-px{margin-left:-1px}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-1{width:.25rem;height:.25rem}.size-12{width:3rem;height:3rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-1{height:.25rem}.h-10{height:2.5rem}.h-20{height:5rem}.h-3\\/4{height:75%}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3\\/5{width:60%}.w-8{width:2rem}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-\\[calc\\(100\\%\\+2px\\)\\]{width:calc(100% + 2px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-40{max-width:10rem}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -.375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: .375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:1}0%,to{opacity:0}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + .125rem)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - .125rem)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-foreground{border-color:hsl(var(--foreground))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-8{padding-top:2rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/65{color:hsl(var(--foreground) / .65)}.text-foreground\\/70{color:hsl(var(--foreground) / .7)}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-primary-light{color:hsl(var(--primary-light))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-radius{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:.5rem;right:.5rem}.small\\:inset-y-2{top:.5rem;bottom:.5rem}.small\\:bottom-2{bottom:.5rem}.small\\:left-2{left:.5rem}.small\\:right-2{right:.5rem}.small\\:right-4{right:1rem}.small\\:top-2{top:.5rem}.small\\:top-4{top:1rem}.small\\:my-4{margin-top:1rem;margin-bottom:1rem}.small\\:hidden{display:none}.small\\:h-12{height:3rem}.small\\:h-28{height:7rem}.small\\:max-w-48{max-width:12rem}.small\\:gap-2{gap:.5rem}.small\\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.small\\:gap-y-2{row-gap:.5rem}.small\\:gap-y-4{row-gap:1rem}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-3{padding:.75rem}.small\\:px-2{padding-left:.5rem;padding-right:.5rem}.small\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.small\\:pl-8{padding-left:2rem}.small\\:pr-6{padding-right:1.5rem}.small\\:text-base{font-size:1rem;line-height:1.5rem}.small\\:text-sm{font-size:.875rem;line-height:1.25rem}.small\\:font-bold{font-weight:700}}@media (min-width: 1280px){.large\\:h-20{height:5rem}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:14rem}.large\\:gap-4{gap:1rem}.large\\:p-2{padding:.5rem}.large\\:p-4{padding:1rem}.large\\:text-base{font-size:1rem;line-height:1.5rem}.large\\:text-lg{font-size:1.125rem;line-height:1.75rem}}';
|
|
2654
|
-
var
|
|
2809
|
+
}, [r, e, n, o]), null;
|
|
2810
|
+
}, ln = (e) => Xe() ? /* @__PURE__ */ t.jsx(an, { ...e }) : /* @__PURE__ */ t.jsx("slot", {}), cn = '*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}#cc-webplayer-wrapper{--background: var(--cc-webplayer-background, 0 0% 100%);--foreground: var(--cc-webplayer-foreground, 240 10% 3.9%);--primary: var(--cc-webplayer-primary, 216 100% 52%);--primary-foreground: var( --cc-webplayer-primary-foreground, var(--background) );--primary-light: var(--cc-webplayer-primary-light, var(--primary));--neutral: var(--cc-webplayer-neutral, 0 0% 39%);--neutral-foreground: var( --cc-webplayer-neutral-foreground, var(--foreground) );--radius-ui: var(--cc-webplayer-radius-ui, 1rem);--radius-carrousel: var(--cc-webplayer-radius-carrousel, 0);--radius-gallery: var(--cc-webplayer-radius-gallery, 0)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-x-1{left:.25rem;right:.25rem}.inset-y-1{top:.25rem;bottom:.25rem}.-bottom-1{bottom:-.25rem}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-1{z-index:1}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-ml-px{margin-left:-1px}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-1{width:.25rem;height:.25rem}.size-12{width:3rem;height:3rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-1{height:.25rem}.h-10{height:2.5rem}.h-20{height:5rem}.h-3\\/4{height:75%}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3\\/5{width:60%}.w-8{width:2rem}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-\\[calc\\(100\\%\\+2px\\)\\]{width:calc(100% + 2px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-40{max-width:10rem}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -.375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: .375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-scale-x-100{--tw-scale-x: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:1}0%,to{opacity:0}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + .125rem)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - .125rem)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-foreground{border-color:hsl(var(--foreground))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-8{padding-top:2rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/65{color:hsl(var(--foreground) / .65)}.text-foreground\\/70{color:hsl(var(--foreground) / .7)}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-primary-light{color:hsl(var(--primary-light))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-radius{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:size-full>*{width:100%;height:100%}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.\\*\\:object-cover>*{-o-object-fit:cover;object-fit:cover}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:.5rem;right:.5rem}.small\\:inset-y-2{top:.5rem;bottom:.5rem}.small\\:bottom-2{bottom:.5rem}.small\\:left-2{left:.5rem}.small\\:right-2{right:.5rem}.small\\:right-4{right:1rem}.small\\:top-2{top:.5rem}.small\\:top-4{top:1rem}.small\\:my-4{margin-top:1rem;margin-bottom:1rem}.small\\:hidden{display:none}.small\\:h-12{height:3rem}.small\\:h-28{height:7rem}.small\\:max-w-48{max-width:12rem}.small\\:gap-2{gap:.5rem}.small\\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.small\\:gap-y-2{row-gap:.5rem}.small\\:gap-y-4{row-gap:1rem}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-3{padding:.75rem}.small\\:px-2{padding-left:.5rem;padding-right:.5rem}.small\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.small\\:pl-8{padding-left:2rem}.small\\:pr-6{padding-right:1.5rem}.small\\:text-base{font-size:1rem;line-height:1.5rem}.small\\:text-sm{font-size:.875rem;line-height:1.25rem}.small\\:font-bold{font-weight:700}}@media (min-width: 1280px){.large\\:h-20{height:5rem}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:14rem}.large\\:gap-4{gap:1rem}.large\\:p-2{padding:.5rem}.large\\:p-4{padding:1rem}.large\\:text-base{font-size:1rem;line-height:1.5rem}.large\\:text-lg{font-size:1.125rem;line-height:1.75rem}}';
|
|
2811
|
+
var Ot = { exports: {} }, ve = {};
|
|
2655
2812
|
/**
|
|
2656
2813
|
* @license React
|
|
2657
2814
|
* react-jsx-runtime.production.min.js
|
|
@@ -2661,32 +2818,32 @@ var Mt = { exports: {} }, ve = {};
|
|
|
2661
2818
|
* This source code is licensed under the MIT license found in the
|
|
2662
2819
|
* LICENSE file in the root directory of this source tree.
|
|
2663
2820
|
*/
|
|
2664
|
-
var
|
|
2665
|
-
function
|
|
2666
|
-
if (
|
|
2667
|
-
|
|
2668
|
-
var e = be, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
2669
|
-
function d
|
|
2670
|
-
var
|
|
2671
|
-
|
|
2672
|
-
for (
|
|
2673
|
-
if (
|
|
2674
|
-
return { $$typeof: r, type:
|
|
2821
|
+
var lt;
|
|
2822
|
+
function dn() {
|
|
2823
|
+
if (lt) return ve;
|
|
2824
|
+
lt = 1;
|
|
2825
|
+
var e = be, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
2826
|
+
function f(d, c, v) {
|
|
2827
|
+
var l, m = {}, w = null, C = null;
|
|
2828
|
+
v !== void 0 && (w = "" + v), c.key !== void 0 && (w = "" + c.key), c.ref !== void 0 && (C = c.ref);
|
|
2829
|
+
for (l in c) o.call(c, l) && !u.hasOwnProperty(l) && (m[l] = c[l]);
|
|
2830
|
+
if (d && d.defaultProps) for (l in c = d.defaultProps, c) m[l] === void 0 && (m[l] = c[l]);
|
|
2831
|
+
return { $$typeof: r, type: d, key: w, ref: C, props: m, _owner: s.current };
|
|
2675
2832
|
}
|
|
2676
|
-
return ve.Fragment = n, ve.jsx =
|
|
2833
|
+
return ve.Fragment = n, ve.jsx = f, ve.jsxs = f, ve;
|
|
2677
2834
|
}
|
|
2678
|
-
|
|
2679
|
-
var
|
|
2680
|
-
const
|
|
2835
|
+
Ot.exports = dn();
|
|
2836
|
+
var ke = Ot.exports, un = Object.defineProperty, mn = (e, r, n) => r in e ? un(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Ee = (e, r, n) => (mn(e, typeof r != "symbol" ? r + "" : r, n), n);
|
|
2837
|
+
const pn = {
|
|
2681
2838
|
stringify: (e) => e,
|
|
2682
2839
|
parse: (e) => e
|
|
2683
|
-
},
|
|
2840
|
+
}, hn = {
|
|
2684
2841
|
stringify: (e) => `${e}`,
|
|
2685
2842
|
parse: (e) => parseFloat(e)
|
|
2686
|
-
},
|
|
2843
|
+
}, fn = {
|
|
2687
2844
|
stringify: (e) => e ? "true" : "false",
|
|
2688
2845
|
parse: (e) => /^[ty1-9]/i.test(e)
|
|
2689
|
-
},
|
|
2846
|
+
}, gn = {
|
|
2690
2847
|
stringify: (e) => e.name,
|
|
2691
2848
|
parse: (e, r, n) => {
|
|
2692
2849
|
const o = (() => {
|
|
@@ -2697,117 +2854,120 @@ const en = {
|
|
|
2697
2854
|
})();
|
|
2698
2855
|
return typeof o == "function" ? o.bind(n) : void 0;
|
|
2699
2856
|
}
|
|
2700
|
-
},
|
|
2857
|
+
}, xn = {
|
|
2701
2858
|
stringify: (e) => JSON.stringify(e),
|
|
2702
2859
|
parse: (e) => JSON.parse(e)
|
|
2703
|
-
},
|
|
2704
|
-
string:
|
|
2705
|
-
number:
|
|
2706
|
-
boolean:
|
|
2707
|
-
function:
|
|
2708
|
-
json:
|
|
2860
|
+
}, $e = {
|
|
2861
|
+
string: pn,
|
|
2862
|
+
number: hn,
|
|
2863
|
+
boolean: fn,
|
|
2864
|
+
function: gn,
|
|
2865
|
+
json: xn
|
|
2709
2866
|
};
|
|
2710
|
-
function
|
|
2867
|
+
function wn(e) {
|
|
2711
2868
|
return e.replace(
|
|
2712
2869
|
/([a-z0-9])([A-Z])/g,
|
|
2713
2870
|
(r, n, o) => `${n}-${o.toLowerCase()}`
|
|
2714
2871
|
);
|
|
2715
2872
|
}
|
|
2716
|
-
const
|
|
2717
|
-
function
|
|
2718
|
-
var o, s,
|
|
2873
|
+
const Ce = Symbol.for("r2wc.render"), Ne = Symbol.for("r2wc.connected"), ie = Symbol.for("r2wc.context"), ne = Symbol.for("r2wc.props");
|
|
2874
|
+
function vn(e, r, n) {
|
|
2875
|
+
var o, s, u;
|
|
2719
2876
|
r.props || (r.props = e.propTypes ? Object.keys(e.propTypes) : []);
|
|
2720
|
-
const
|
|
2721
|
-
for (const
|
|
2722
|
-
|
|
2723
|
-
const
|
|
2724
|
-
|
|
2877
|
+
const f = Array.isArray(r.props) ? r.props.slice() : Object.keys(r.props), d = {}, c = {}, v = {};
|
|
2878
|
+
for (const m of f) {
|
|
2879
|
+
d[m] = Array.isArray(r.props) ? "string" : r.props[m];
|
|
2880
|
+
const w = wn(m);
|
|
2881
|
+
c[m] = w, v[w] = m;
|
|
2725
2882
|
}
|
|
2726
|
-
class
|
|
2883
|
+
class l extends HTMLElement {
|
|
2727
2884
|
constructor() {
|
|
2728
|
-
super(),
|
|
2885
|
+
super(), Ee(this, o, !0), Ee(this, s), Ee(this, u, {}), Ee(this, "container"), r.shadow ? this.container = this.attachShadow({
|
|
2729
2886
|
mode: r.shadow
|
|
2730
|
-
}) : this.container = this, this[
|
|
2731
|
-
for (const
|
|
2732
|
-
const
|
|
2733
|
-
|
|
2887
|
+
}) : this.container = this, this[ne].container = this.container;
|
|
2888
|
+
for (const w of f) {
|
|
2889
|
+
const C = c[w], a = this.getAttribute(C), h = d[w], x = h ? $e[h] : null;
|
|
2890
|
+
x != null && x.parse && a && (this[ne][w] = x.parse(a, C, this));
|
|
2734
2891
|
}
|
|
2735
2892
|
}
|
|
2736
2893
|
static get observedAttributes() {
|
|
2737
|
-
return Object.keys(
|
|
2894
|
+
return Object.keys(v);
|
|
2738
2895
|
}
|
|
2739
2896
|
connectedCallback() {
|
|
2740
|
-
this[Ne] = !0, this[
|
|
2897
|
+
this[Ne] = !0, this[Ce]();
|
|
2741
2898
|
}
|
|
2742
2899
|
disconnectedCallback() {
|
|
2743
|
-
this[Ne] = !1, this[
|
|
2900
|
+
this[Ne] = !1, this[ie] && n.unmount(this[ie]), delete this[ie];
|
|
2744
2901
|
}
|
|
2745
|
-
attributeChangedCallback(
|
|
2746
|
-
const
|
|
2747
|
-
|
|
2902
|
+
attributeChangedCallback(w, C, a) {
|
|
2903
|
+
const h = v[w], x = d[h], j = x ? $e[x] : null;
|
|
2904
|
+
h in d && j != null && j.parse && a && (this[ne][h] = j.parse(a, w, this), this[Ce]());
|
|
2748
2905
|
}
|
|
2749
|
-
[(o = Ne, s =
|
|
2750
|
-
this[Ne] && (this[
|
|
2906
|
+
[(o = Ne, s = ie, u = ne, Ce)]() {
|
|
2907
|
+
this[Ne] && (this[ie] ? n.update(this[ie], this[ne]) : this[ie] = n.mount(
|
|
2751
2908
|
this.container,
|
|
2752
2909
|
e,
|
|
2753
|
-
this[
|
|
2910
|
+
this[ne]
|
|
2754
2911
|
));
|
|
2755
2912
|
}
|
|
2756
2913
|
}
|
|
2757
|
-
for (const
|
|
2758
|
-
const
|
|
2759
|
-
Object.defineProperty(
|
|
2914
|
+
for (const m of f) {
|
|
2915
|
+
const w = c[m], C = d[m];
|
|
2916
|
+
Object.defineProperty(l.prototype, m, {
|
|
2760
2917
|
enumerable: !0,
|
|
2761
2918
|
configurable: !0,
|
|
2762
2919
|
get() {
|
|
2763
|
-
return this[
|
|
2920
|
+
return this[ne][m];
|
|
2764
2921
|
},
|
|
2765
|
-
set(
|
|
2766
|
-
this[
|
|
2767
|
-
const
|
|
2768
|
-
if (
|
|
2769
|
-
const
|
|
2770
|
-
this.getAttribute(
|
|
2922
|
+
set(a) {
|
|
2923
|
+
this[ne][m] = a;
|
|
2924
|
+
const h = C ? $e[C] : null;
|
|
2925
|
+
if (h != null && h.stringify) {
|
|
2926
|
+
const x = h.stringify(a, w, this);
|
|
2927
|
+
this.getAttribute(w) !== x && this.setAttribute(w, x);
|
|
2771
2928
|
} else
|
|
2772
|
-
this[
|
|
2929
|
+
this[Ce]();
|
|
2773
2930
|
}
|
|
2774
2931
|
});
|
|
2775
2932
|
}
|
|
2776
|
-
return
|
|
2933
|
+
return l;
|
|
2777
2934
|
}
|
|
2778
|
-
function
|
|
2779
|
-
const o =
|
|
2935
|
+
function bn(e, r, n) {
|
|
2936
|
+
const o = Yt(e), s = be.createElement(r, n);
|
|
2780
2937
|
return o.render(s), {
|
|
2781
2938
|
root: o,
|
|
2782
2939
|
ReactComponent: r
|
|
2783
2940
|
};
|
|
2784
2941
|
}
|
|
2785
|
-
function
|
|
2942
|
+
function yn({ root: e, ReactComponent: r }, n) {
|
|
2786
2943
|
const o = be.createElement(r, n);
|
|
2787
2944
|
e.render(o);
|
|
2788
2945
|
}
|
|
2789
|
-
function
|
|
2946
|
+
function jn({ root: e }) {
|
|
2790
2947
|
e.unmount();
|
|
2791
2948
|
}
|
|
2792
|
-
function
|
|
2793
|
-
return
|
|
2949
|
+
function Ge(e, r = {}) {
|
|
2950
|
+
return vn(e, r, { mount: bn, update: yn, unmount: jn });
|
|
2794
2951
|
}
|
|
2795
|
-
function
|
|
2952
|
+
function kn(e) {
|
|
2796
2953
|
return e.replace(
|
|
2797
2954
|
/([a-z0-9])([A-Z])/g,
|
|
2798
2955
|
(r, n, o) => `${n}-${o.toLowerCase()}`
|
|
2799
2956
|
);
|
|
2800
2957
|
}
|
|
2801
|
-
function
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2958
|
+
function Ke(e) {
|
|
2959
|
+
return Object.entries(e).reduce((r, [n, o]) => {
|
|
2960
|
+
if (o !== void 0) {
|
|
2961
|
+
const s = kn(n);
|
|
2962
|
+
r[s] = o.toString();
|
|
2963
|
+
}
|
|
2964
|
+
return r;
|
|
2965
|
+
}, {});
|
|
2806
2966
|
}
|
|
2807
|
-
const
|
|
2808
|
-
/* @__PURE__ */
|
|
2809
|
-
/* @__PURE__ */
|
|
2810
|
-
] }),
|
|
2967
|
+
const En = (e) => /* @__PURE__ */ ke.jsxs(ke.Fragment, { children: [
|
|
2968
|
+
/* @__PURE__ */ ke.jsx("style", { children: cn }),
|
|
2969
|
+
/* @__PURE__ */ ke.jsx(nn, { ...e })
|
|
2970
|
+
] }), Cn = Ge(En, {
|
|
2811
2971
|
shadow: "open",
|
|
2812
2972
|
props: {
|
|
2813
2973
|
compositionUrl: "string",
|
|
@@ -2821,91 +2981,117 @@ const pn = (e) => /* @__PURE__ */ Ce.jsxs(Ce.Fragment, { children: [
|
|
|
2821
2981
|
eventPrefix: "string",
|
|
2822
2982
|
reverse360: "boolean"
|
|
2823
2983
|
}
|
|
2824
|
-
}),
|
|
2984
|
+
}), Nn = (e) => Ke(e), Ln = Ge(sn, {
|
|
2825
2985
|
shadow: "closed",
|
|
2826
2986
|
props: {
|
|
2827
|
-
|
|
2828
|
-
|
|
2987
|
+
index: "number",
|
|
2988
|
+
thumbnailSrc: "string"
|
|
2829
2989
|
}
|
|
2830
|
-
})
|
|
2831
|
-
|
|
2832
|
-
|
|
2990
|
+
}), _n = (e) => Ke(e), Mn = Ge(ln, {
|
|
2991
|
+
shadow: "closed",
|
|
2992
|
+
props: {
|
|
2993
|
+
name: "string"
|
|
2994
|
+
}
|
|
2995
|
+
}), zn = (e) => Ke(e);
|
|
2996
|
+
function In() {
|
|
2997
|
+
return !!customElements.get(Ie) && !!customElements.get(We) && !!customElements.get(Ye);
|
|
2833
2998
|
}
|
|
2834
|
-
function
|
|
2835
|
-
customElements.define(
|
|
2999
|
+
function Sn() {
|
|
3000
|
+
customElements.define(Ie, Cn), customElements.define(
|
|
3001
|
+
We,
|
|
3002
|
+
Ln
|
|
3003
|
+
), customElements.define(Ye, Mn);
|
|
2836
3004
|
}
|
|
2837
|
-
function
|
|
2838
|
-
|
|
3005
|
+
function qe() {
|
|
3006
|
+
In() || Sn();
|
|
2839
3007
|
}
|
|
2840
|
-
|
|
2841
|
-
const
|
|
3008
|
+
qe();
|
|
3009
|
+
const Rn = ({
|
|
2842
3010
|
onCompositionLoading: e,
|
|
2843
3011
|
onCompositionLoaded: r,
|
|
2844
3012
|
onCompositionLoadError: n,
|
|
2845
3013
|
onItemChange: o,
|
|
2846
3014
|
onExtendModeOn: s,
|
|
2847
|
-
onExtendModeOff:
|
|
2848
|
-
onHotspotsOn:
|
|
2849
|
-
onHotspotsOff:
|
|
2850
|
-
onGalleryOpen:
|
|
2851
|
-
onGalleryClose:
|
|
2852
|
-
|
|
3015
|
+
onExtendModeOff: u,
|
|
3016
|
+
onHotspotsOn: f,
|
|
3017
|
+
onHotspotsOff: d,
|
|
3018
|
+
onGalleryOpen: c,
|
|
3019
|
+
onGalleryClose: v,
|
|
3020
|
+
className: l,
|
|
3021
|
+
style: m = {},
|
|
3022
|
+
children: w,
|
|
3023
|
+
...C
|
|
2853
3024
|
}) => {
|
|
2854
|
-
const
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
[
|
|
2861
|
-
[
|
|
2862
|
-
[
|
|
2863
|
-
[
|
|
2864
|
-
[
|
|
2865
|
-
[
|
|
2866
|
-
[
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
3025
|
+
const a = te(() => {
|
|
3026
|
+
const h = Nn(C);
|
|
3027
|
+
return l && Object.assign(h, { class: l }), h;
|
|
3028
|
+
}, [l, C]);
|
|
3029
|
+
return O(() => {
|
|
3030
|
+
const h = C.eventPrefix ?? bt, x = (g) => `${h}${g}`, j = {
|
|
3031
|
+
[dt]: e,
|
|
3032
|
+
[ut]: r,
|
|
3033
|
+
[mt]: n,
|
|
3034
|
+
[pt]: o,
|
|
3035
|
+
[ht]: s,
|
|
3036
|
+
[ft]: u,
|
|
3037
|
+
[gt]: f,
|
|
3038
|
+
[xt]: d,
|
|
3039
|
+
[wt]: c,
|
|
3040
|
+
[vt]: v
|
|
3041
|
+
}, k = /* @__PURE__ */ new Map();
|
|
3042
|
+
return Object.entries(j).forEach(([g, p]) => {
|
|
3043
|
+
if (!p)
|
|
2870
3044
|
return;
|
|
2871
|
-
const
|
|
2872
|
-
|
|
3045
|
+
const b = x(g), E = (L) => p(L.detail);
|
|
3046
|
+
k.set(b, E), document.addEventListener(b, E);
|
|
2873
3047
|
}), () => {
|
|
2874
|
-
|
|
2875
|
-
document.removeEventListener(
|
|
3048
|
+
k.forEach((g, p) => {
|
|
3049
|
+
document.removeEventListener(p, g);
|
|
2876
3050
|
});
|
|
2877
3051
|
};
|
|
2878
3052
|
}, [
|
|
2879
|
-
|
|
3053
|
+
C.eventPrefix,
|
|
2880
3054
|
e,
|
|
2881
3055
|
r,
|
|
2882
3056
|
n,
|
|
2883
3057
|
o,
|
|
2884
3058
|
s,
|
|
2885
|
-
|
|
3059
|
+
u,
|
|
3060
|
+
f,
|
|
2886
3061
|
d,
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
3062
|
+
c,
|
|
3063
|
+
v
|
|
3064
|
+
]), /* @__PURE__ */ Ue.jsx("cc-webplayer", { style: { display: "block", ...m }, ...a, children: w });
|
|
3065
|
+
};
|
|
3066
|
+
qe();
|
|
3067
|
+
const An = ({ children: e, ...r }) => {
|
|
3068
|
+
const n = _n(r);
|
|
3069
|
+
return /* @__PURE__ */ Ue.jsx("cc-webplayer-custom-media", { ...n, children: e });
|
|
3070
|
+
};
|
|
3071
|
+
qe();
|
|
3072
|
+
const Pn = ({
|
|
3073
|
+
children: e,
|
|
3074
|
+
...r
|
|
3075
|
+
}) => {
|
|
3076
|
+
const n = zn(r);
|
|
3077
|
+
return /* @__PURE__ */ Ue.jsx("cc-webplayer-icon", { ...n, children: e });
|
|
2891
3078
|
};
|
|
2892
|
-
Vt();
|
|
2893
|
-
const Cn = ({ name: e, color: r }) => /* @__PURE__ */ tt.jsx("cc-webplayer-icon", { name: e, color: r });
|
|
2894
3079
|
export {
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
3080
|
+
bt as DEFAULT_EVENT_PREFIX,
|
|
3081
|
+
ut as EVENT_COMPOSITION_LOADED,
|
|
3082
|
+
dt as EVENT_COMPOSITION_LOADING,
|
|
3083
|
+
mt as EVENT_COMPOSITION_LOAD_ERROR,
|
|
3084
|
+
ft as EVENT_EXTEND_MODE_OFF,
|
|
3085
|
+
ht as EVENT_EXTEND_MODE_ON,
|
|
3086
|
+
vt as EVENT_GALLERY_CLOSE,
|
|
3087
|
+
wt as EVENT_GALLERY_OPEN,
|
|
3088
|
+
xt as EVENT_HOTSPOTS_OFF,
|
|
3089
|
+
gt as EVENT_HOTSPOTS_ON,
|
|
3090
|
+
pt as EVENT_ITEM_CHANGE,
|
|
3091
|
+
Ye as WEB_PLAYER_ICON_WC_TAG,
|
|
3092
|
+
Ie as WEB_PLAYER_WC_TAG,
|
|
3093
|
+
Rn as WebPlayer,
|
|
3094
|
+
An as WebPlayerCustomMedia,
|
|
3095
|
+
Pn as WebPlayerIcon,
|
|
3096
|
+
Hn as generateCompositionUrl
|
|
2911
3097
|
};
|