@car-cutter/react-webplayer 0.6.0 → 0.6.1
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.js +508 -482
- package/dist/index.umd.cjs +4 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import be, { createContext as _e, useContext as ze, useRef as Y, useState as F, useCallback as M, useEffect as Z, useMemo as re, Fragment as Rt } from "react";
|
|
2
2
|
import { createRoot as Pt } from "react-dom/client";
|
|
3
3
|
var Qe = { exports: {} }, fe = {};
|
|
4
4
|
/**
|
|
@@ -10,23 +10,23 @@ var Qe = { 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 =
|
|
18
|
-
function l(i, s,
|
|
13
|
+
var We;
|
|
14
|
+
function Zt() {
|
|
15
|
+
if (We) return fe;
|
|
16
|
+
We = 1;
|
|
17
|
+
var e = be, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function l(i, s, b) {
|
|
19
19
|
var c, m = {}, g = null, _ = null;
|
|
20
|
-
|
|
20
|
+
b !== void 0 && (g = "" + b), s.key !== void 0 && (g = "" + s.key), s.ref !== void 0 && (_ = s.ref);
|
|
21
21
|
for (c in s) o.call(s, c) && !u.hasOwnProperty(c) && (m[c] = s[c]);
|
|
22
22
|
if (i && i.defaultProps) for (c in s = i.defaultProps, s) m[c] === void 0 && (m[c] = s[c]);
|
|
23
23
|
return { $$typeof: r, type: i, key: g, ref: _, props: m, _owner: a.current };
|
|
24
24
|
}
|
|
25
25
|
return fe.Fragment = n, fe.jsx = l, fe.jsxs = l, fe;
|
|
26
26
|
}
|
|
27
|
-
Qe.exports =
|
|
27
|
+
Qe.exports = Zt();
|
|
28
28
|
var et = Qe.exports;
|
|
29
|
-
const
|
|
29
|
+
const Ze = "cc-webplayer", Ae = "cc-webplayer-icon", tt = "composition-loading", rt = "composition-loaded", nt = "composition-load-error", ot = "extend-mode-on", st = "extend-mode-off", at = "hotspots-on", it = "hotspots-off", lt = "gallery-open", ct = "gallery-close", At = !1, Dt = !1, Ft = !1, Yt = "quality", $t = !1, dt = "cc-webplayer:", Wt = !1;
|
|
30
30
|
function wn(e, r) {
|
|
31
31
|
return `https://cdn.car-cutter.com/gallery/${e}/${r}/composition_v3.json`;
|
|
32
32
|
}
|
|
@@ -48,10 +48,10 @@ var Ue;
|
|
|
48
48
|
function Xt() {
|
|
49
49
|
if (Ue) return xe;
|
|
50
50
|
Ue = 1;
|
|
51
|
-
var e =
|
|
52
|
-
function l(i, s,
|
|
51
|
+
var e = be, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
52
|
+
function l(i, s, b) {
|
|
53
53
|
var c, m = {}, g = null, _ = null;
|
|
54
|
-
|
|
54
|
+
b !== void 0 && (g = "" + b), s.key !== void 0 && (g = "" + s.key), s.ref !== void 0 && (_ = s.ref);
|
|
55
55
|
for (c in s) o.call(s, c) && !u.hasOwnProperty(c) && (m[c] = s[c]);
|
|
56
56
|
if (i && i.defaultProps) for (c in s = i.defaultProps, s) m[c] === void 0 && (m[c] = s[c]);
|
|
57
57
|
return { $$typeof: r, type: i, key: g, ref: _, props: m, _owner: a.current };
|
|
@@ -67,11 +67,11 @@ async function Bt(e) {
|
|
|
67
67
|
return await r.json();
|
|
68
68
|
}
|
|
69
69
|
const Oe = /* @__PURE__ */ new Map(), Gt = (e) => {
|
|
70
|
-
const [r, n] =
|
|
70
|
+
const [r, n] = F({
|
|
71
71
|
status: "pending",
|
|
72
72
|
isSuccess: !1
|
|
73
73
|
});
|
|
74
|
-
return
|
|
74
|
+
return Z(() => {
|
|
75
75
|
const o = (u) => n({ status: "success", data: u, isSuccess: !0 }), a = Oe.get(e);
|
|
76
76
|
if (a && !(a instanceof Promise)) {
|
|
77
77
|
o(a);
|
|
@@ -106,7 +106,7 @@ const Oe = /* @__PURE__ */ new Map(), Gt = (e) => {
|
|
|
106
106
|
"useCompositionContext must be used within a CompositionContextProvider"
|
|
107
107
|
);
|
|
108
108
|
return e;
|
|
109
|
-
},
|
|
109
|
+
}, qt = ({ composition: e, children: r }) => {
|
|
110
110
|
const { aspectRatio: n, categories: o } = e, a = re(
|
|
111
111
|
() => o.flatMap(({ items: l }) => l),
|
|
112
112
|
[o]
|
|
@@ -128,14 +128,14 @@ const Oe = /* @__PURE__ */ new Map(), Gt = (e) => {
|
|
|
128
128
|
function ae(e, r, n) {
|
|
129
129
|
return Math.min(Math.max(e, r), n);
|
|
130
130
|
}
|
|
131
|
-
const
|
|
131
|
+
const Ee = (e, r, n) => e + (r - e) * n, Xe = (e, r) => (e % r + r) % r, ht = _e(null), J = () => {
|
|
132
132
|
const e = ze(ht);
|
|
133
133
|
if (!e)
|
|
134
134
|
throw new Error(
|
|
135
135
|
"useGlobalContext must be used within a GlobalContextProvider"
|
|
136
136
|
);
|
|
137
137
|
return e;
|
|
138
|
-
},
|
|
138
|
+
}, Kt = ({ children: e, ...r }) => /* @__PURE__ */ t.jsx(ht.Provider, { value: r, children: e }), gt = _e(null), K = () => {
|
|
139
139
|
const e = ze(gt);
|
|
140
140
|
if (!e)
|
|
141
141
|
throw new Error(
|
|
@@ -152,16 +152,16 @@ const Ne = (e, r, n) => e + (r - e) * n, Xe = (e, r) => (e % r + r) % r, ht = _e
|
|
|
152
152
|
isFullScreen: a,
|
|
153
153
|
requestFullscreen: u,
|
|
154
154
|
exitFullscreen: l
|
|
155
|
-
} = J(), { categories: i, items: s } = ne(), [
|
|
155
|
+
} = J(), { categories: i, items: s } = ne(), [b, c] = F(s.map(() => null)), m = M(
|
|
156
156
|
(P, ee) => {
|
|
157
157
|
c(
|
|
158
158
|
(ge) => ge.map((oe, Ot) => Ot === P ? ee : oe)
|
|
159
159
|
);
|
|
160
160
|
},
|
|
161
161
|
[]
|
|
162
|
-
), [g, _] =
|
|
162
|
+
), [g, _] = F(0), [w, x] = F(null), N = w ?? g, C = s[N], z = b[N], [f, p] = F(
|
|
163
163
|
null
|
|
164
|
-
), v = !!f, j = M(() => p(null), []),
|
|
164
|
+
), v = !!f, j = M(() => p(null), []), S = M(() => {
|
|
165
165
|
if (v || w !== null)
|
|
166
166
|
return;
|
|
167
167
|
const P = g - 1;
|
|
@@ -183,13 +183,13 @@ const Ne = (e, r, n) => e + (r - e) * n, Xe = (e, r) => (e % r + r) % r, ht = _e
|
|
|
183
183
|
g,
|
|
184
184
|
s.length,
|
|
185
185
|
r
|
|
186
|
-
]),
|
|
186
|
+
]), V = M(
|
|
187
187
|
(P) => {
|
|
188
188
|
const ee = Math.min(g, P), ge = Math.max(g, P);
|
|
189
|
-
|
|
189
|
+
b.slice(ee, ge + 1).filter((oe) => oe === null).length > 2 && p("instant"), x(P);
|
|
190
190
|
},
|
|
191
|
-
[g,
|
|
192
|
-
),
|
|
191
|
+
[g, b]
|
|
192
|
+
), E = re(() => {
|
|
193
193
|
for (const P of i)
|
|
194
194
|
if (P.items.includes(C))
|
|
195
195
|
return P.id;
|
|
@@ -200,9 +200,9 @@ const Ne = (e, r, n) => e + (r - e) * n, Xe = (e, r) => (e % r + r) % r, ht = _e
|
|
|
200
200
|
if (ee === void 0)
|
|
201
201
|
throw new Error("Failed to find target category");
|
|
202
202
|
const ge = s.findIndex((oe) => oe === ee);
|
|
203
|
-
|
|
203
|
+
V(ge);
|
|
204
204
|
},
|
|
205
|
-
[i, s,
|
|
205
|
+
[i, s, V]
|
|
206
206
|
), I = re(() => {
|
|
207
207
|
switch (C.type) {
|
|
208
208
|
case "image":
|
|
@@ -212,7 +212,7 @@ const Ne = (e, r, n) => e + (r - e) * n, Xe = (e, r) => (e % r + r) % r, ht = _e
|
|
|
212
212
|
case "video":
|
|
213
213
|
return !1;
|
|
214
214
|
}
|
|
215
|
-
}, [C, z]), [H, h] =
|
|
215
|
+
}, [C, z]), [H, h] = F(!0), T = M(() => {
|
|
216
216
|
const P = !H;
|
|
217
217
|
h(P), o(P ? at : it);
|
|
218
218
|
}, [o, H]), d = re(() => {
|
|
@@ -223,10 +223,10 @@ const Ne = (e, r, n) => e + (r - e) * n, Xe = (e, r) => (e % r + r) % r, ht = _e
|
|
|
223
223
|
case "video":
|
|
224
224
|
return z !== "running";
|
|
225
225
|
}
|
|
226
|
-
}, [C, z]), [
|
|
227
|
-
const P = !
|
|
226
|
+
}, [C, z]), [y, k] = F(!1), A = M(() => {
|
|
227
|
+
const P = !y;
|
|
228
228
|
k(P), o(P ? lt : ct);
|
|
229
|
-
}, [o,
|
|
229
|
+
}, [o, y]), [D, $] = F(null), W = M(() => $(null), []), X = !!D, B = re(() => {
|
|
230
230
|
switch (C.type) {
|
|
231
231
|
case "image":
|
|
232
232
|
return !0;
|
|
@@ -235,25 +235,25 @@ const Ne = (e, r, n) => e + (r - e) * n, Xe = (e, r) => (e % r + r) % r, ht = _e
|
|
|
235
235
|
case "video":
|
|
236
236
|
return !1;
|
|
237
237
|
}
|
|
238
|
-
}, [C.type, z]), [G, Q] =
|
|
238
|
+
}, [C.type, z]), [G, Q] = F(1), pe = G !== 1, ye = G < Le, Ie = G > 1, ie = M((P) => {
|
|
239
239
|
Q((ee) => ae(ee + P, 1, Le));
|
|
240
|
-
}, []), he = M(() => Q(1), []),
|
|
241
|
-
he(),
|
|
242
|
-
}, [he,
|
|
240
|
+
}, []), he = M(() => Q(1), []), St = M(() => ie(Pe), [ie]), Vt = M(() => ie(-Pe), [ie]), Me = M(() => {
|
|
241
|
+
he(), W();
|
|
242
|
+
}, [he, W]), [le, Tt] = F(!1), [Se, Ye] = F(), [Ve, $e] = F(!1), ce = M(
|
|
243
243
|
async (P) => {
|
|
244
|
-
Me(),
|
|
244
|
+
Me(), Tt(P), o(P ? ot : st);
|
|
245
245
|
},
|
|
246
246
|
[o, Me]
|
|
247
247
|
), de = M(() => {
|
|
248
|
-
clearTimeout(
|
|
248
|
+
clearTimeout(Se);
|
|
249
249
|
const P = setTimeout(() => {
|
|
250
|
-
|
|
250
|
+
Ye(void 0);
|
|
251
251
|
}, pt);
|
|
252
|
-
|
|
253
|
-
}, [
|
|
252
|
+
Ye(P);
|
|
253
|
+
}, [Se]), Te = M(async () => {
|
|
254
254
|
if (de(), !n) {
|
|
255
255
|
const P = await u();
|
|
256
|
-
if (
|
|
256
|
+
if ($e(!P), P)
|
|
257
257
|
return;
|
|
258
258
|
}
|
|
259
259
|
ce(!0);
|
|
@@ -263,22 +263,22 @@ const Ne = (e, r, n) => e + (r - e) * n, Xe = (e, r) => (e % r + r) % r, ht = _e
|
|
|
263
263
|
u,
|
|
264
264
|
de
|
|
265
265
|
]), He = M(async () => {
|
|
266
|
-
de(), !(!n && (
|
|
266
|
+
de(), !(!n && ($e(!1), await l())) && ce(!1);
|
|
267
267
|
}, [
|
|
268
268
|
n,
|
|
269
269
|
ce,
|
|
270
270
|
l,
|
|
271
271
|
de
|
|
272
272
|
]), Ht = M(() => {
|
|
273
|
-
le ? He() :
|
|
274
|
-
}, [He,
|
|
275
|
-
return
|
|
276
|
-
n ||
|
|
273
|
+
le ? He() : Te();
|
|
274
|
+
}, [He, Te, le]);
|
|
275
|
+
return Z(() => {
|
|
276
|
+
n || Ve && le || a !== le && (de(), ce(a));
|
|
277
277
|
}, [
|
|
278
278
|
n,
|
|
279
279
|
ce,
|
|
280
280
|
le,
|
|
281
|
-
|
|
281
|
+
Ve,
|
|
282
282
|
a,
|
|
283
283
|
de
|
|
284
284
|
]), /* @__PURE__ */ t.jsx(
|
|
@@ -291,41 +291,41 @@ const Ne = (e, r, n) => e + (r - e) * n, Xe = (e, r) => (e % r + r) % r, ht = _e
|
|
|
291
291
|
setCarrouselItemIndex: _,
|
|
292
292
|
itemIndexCommand: w,
|
|
293
293
|
setItemIndexCommand: x,
|
|
294
|
-
masterItemIndex:
|
|
294
|
+
masterItemIndex: N,
|
|
295
295
|
specialCommand: f,
|
|
296
296
|
isRunningSpecialCommand: v,
|
|
297
297
|
finishSpecialCommand: j,
|
|
298
|
-
prevItem:
|
|
298
|
+
prevItem: S,
|
|
299
299
|
nextItem: R,
|
|
300
|
-
scrollToItemIndex:
|
|
301
|
-
displayedCategoryId:
|
|
300
|
+
scrollToItemIndex: V,
|
|
301
|
+
displayedCategoryId: E,
|
|
302
302
|
changeCategory: L,
|
|
303
303
|
enableHotspotsControl: I,
|
|
304
304
|
showHotspots: H,
|
|
305
|
-
toggleHotspots:
|
|
305
|
+
toggleHotspots: T,
|
|
306
306
|
showGalleryControls: d,
|
|
307
|
-
showGallery:
|
|
307
|
+
showGallery: y,
|
|
308
308
|
toggleGallery: A,
|
|
309
309
|
shownDetails: D,
|
|
310
310
|
isShowingDetails: X,
|
|
311
|
-
setShownDetails:
|
|
312
|
-
resetShownDetails:
|
|
311
|
+
setShownDetails: $,
|
|
312
|
+
resetShownDetails: W,
|
|
313
313
|
showZoomControls: B,
|
|
314
314
|
zoom: G,
|
|
315
315
|
isZooming: pe,
|
|
316
316
|
setZoom: Q,
|
|
317
317
|
resetZoom: he,
|
|
318
|
-
canZoomIn:
|
|
319
|
-
zoomIn:
|
|
318
|
+
canZoomIn: ye,
|
|
319
|
+
zoomIn: St,
|
|
320
320
|
canZoomOut: Ie,
|
|
321
|
-
zoomOut:
|
|
321
|
+
zoomOut: Vt,
|
|
322
322
|
resetView: Me,
|
|
323
323
|
extendMode: le,
|
|
324
|
-
enableExtendMode:
|
|
324
|
+
enableExtendMode: Te,
|
|
325
325
|
disableExtendMode: He,
|
|
326
326
|
toggleExtendMode: Ht,
|
|
327
|
-
extendTransition: !!
|
|
328
|
-
fakeFullScreen:
|
|
327
|
+
extendTransition: !!Se,
|
|
328
|
+
fakeFullScreen: Ve
|
|
329
329
|
},
|
|
330
330
|
children: e
|
|
331
331
|
}
|
|
@@ -402,15 +402,15 @@ function ue(e) {
|
|
|
402
402
|
const [r, n] = nr(e);
|
|
403
403
|
return sr({ positionX: n, positionY: r });
|
|
404
404
|
}
|
|
405
|
-
const wt = _e(null),
|
|
406
|
-
const e =
|
|
405
|
+
const wt = _e(null), bt = () => ze(wt), De = () => {
|
|
406
|
+
const e = bt();
|
|
407
407
|
if (!e)
|
|
408
408
|
throw new Error(
|
|
409
409
|
"useCustomizationContext must be used within a CustomizationContextProvider"
|
|
410
410
|
);
|
|
411
411
|
return e;
|
|
412
412
|
}, ar = ({ children: e }) => {
|
|
413
|
-
const [r, n] =
|
|
413
|
+
const [r, n] = F(
|
|
414
414
|
/* @__PURE__ */ new Map()
|
|
415
415
|
), o = M(
|
|
416
416
|
(l) => {
|
|
@@ -422,15 +422,15 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
422
422
|
);
|
|
423
423
|
if (!s)
|
|
424
424
|
return;
|
|
425
|
-
const
|
|
425
|
+
const b = s.getAttribute("color") ?? void 0, c = s.innerHTML, m = c ? /* @__PURE__ */ t.jsx(
|
|
426
426
|
"div",
|
|
427
427
|
{
|
|
428
428
|
className: "size-full",
|
|
429
429
|
dangerouslySetInnerHTML: { __html: c }
|
|
430
430
|
}
|
|
431
431
|
) : void 0;
|
|
432
|
-
if (!(!
|
|
433
|
-
return { Icon: m, color:
|
|
432
|
+
if (!(!b && !m))
|
|
433
|
+
return { Icon: m, color: b };
|
|
434
434
|
},
|
|
435
435
|
[r]
|
|
436
436
|
), a = M(
|
|
@@ -495,7 +495,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
495
495
|
}, cr = {
|
|
496
496
|
button: "h-8 px-2",
|
|
497
497
|
icon: "size-8 p-2"
|
|
498
|
-
},
|
|
498
|
+
}, q = ({
|
|
499
499
|
variant: e = "fill",
|
|
500
500
|
shape: r = "button",
|
|
501
501
|
color: n = "primary",
|
|
@@ -517,31 +517,45 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
517
517
|
children: a
|
|
518
518
|
}
|
|
519
519
|
);
|
|
520
|
-
},
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
520
|
+
}, yt = (e) => /* @__PURE__ */ t.jsx(q, { color: "neutral", shape: "icon", ...e, children: /* @__PURE__ */ t.jsx(ir, { className: "size-full" }) }), jt = ({ text: e, className: r }) => /* @__PURE__ */ t.jsxs(
|
|
521
|
+
"div",
|
|
522
|
+
{
|
|
523
|
+
className: O(
|
|
524
|
+
"flex size-full flex-col items-center justify-center gap-y-4",
|
|
525
|
+
r
|
|
526
|
+
),
|
|
527
|
+
children: [
|
|
528
|
+
/* @__PURE__ */ t.jsx(
|
|
529
|
+
"img",
|
|
530
|
+
{
|
|
531
|
+
className: "h-20 small:h-28",
|
|
532
|
+
src: "https://cdn.car-cutter.com/libs/web-player/v3/assets/car_placeholder.png"
|
|
533
|
+
}
|
|
534
|
+
),
|
|
535
|
+
/* @__PURE__ */ t.jsx("div", { className: "text-2xl font-bold", children: e })
|
|
536
|
+
]
|
|
537
|
+
}
|
|
538
|
+
), dr = {
|
|
530
539
|
primary: "border-primary",
|
|
531
|
-
|
|
540
|
+
foreground: "border-foreground",
|
|
541
|
+
background: "border-background"
|
|
532
542
|
}, ur = {
|
|
533
543
|
sm: "size-4 border",
|
|
534
544
|
md: "size-8 border-2",
|
|
535
545
|
lg: "size-12 border-4"
|
|
536
546
|
}, Ct = ({
|
|
537
|
-
color: e = "
|
|
547
|
+
color: e = "foreground",
|
|
538
548
|
size: r = "md"
|
|
539
549
|
}) => {
|
|
540
550
|
const n = dr[e], o = ur[r];
|
|
541
551
|
return /* @__PURE__ */ t.jsx(
|
|
542
552
|
"div",
|
|
543
553
|
{
|
|
544
|
-
className:
|
|
554
|
+
className: O(
|
|
555
|
+
"inline-block animate-rotation rounded-full border-b-transparent",
|
|
556
|
+
o,
|
|
557
|
+
n
|
|
558
|
+
)
|
|
545
559
|
}
|
|
546
560
|
);
|
|
547
561
|
}, me = ({
|
|
@@ -556,7 +570,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
556
570
|
const {
|
|
557
571
|
minImageWidth: i,
|
|
558
572
|
maxImageWidth: s,
|
|
559
|
-
imageLoadStrategy:
|
|
573
|
+
imageLoadStrategy: b,
|
|
560
574
|
playerInViewportWidthRatio: c
|
|
561
575
|
} = J(), { imageHdWidth: m, imageSubWidths: g } = ne(), [_, w] = re(() => {
|
|
562
576
|
const C = g.concat(m).sort((p, v) => p - v).filter((p) => !(i && p < i || s && p > s));
|
|
@@ -568,7 +582,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
568
582
|
f = [`${C.shift()}px`];
|
|
569
583
|
else {
|
|
570
584
|
const p = 1 / (o * c);
|
|
571
|
-
if (
|
|
585
|
+
if (b === "quality") {
|
|
572
586
|
const v = C.pop();
|
|
573
587
|
f = C.map(
|
|
574
588
|
(j) => `(max-width: ${p * j}px) ${j}px`
|
|
@@ -583,7 +597,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
583
597
|
return [z.join(", "), f.join(", ")];
|
|
584
598
|
}, [
|
|
585
599
|
m,
|
|
586
|
-
|
|
600
|
+
b,
|
|
587
601
|
g,
|
|
588
602
|
o,
|
|
589
603
|
s,
|
|
@@ -591,12 +605,12 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
591
605
|
a,
|
|
592
606
|
c,
|
|
593
607
|
e
|
|
594
|
-
]), [x,
|
|
595
|
-
return
|
|
608
|
+
]), [x, N] = F();
|
|
609
|
+
return Z(() => {
|
|
596
610
|
if (x === !0)
|
|
597
611
|
return;
|
|
598
612
|
const C = setTimeout(() => {
|
|
599
|
-
|
|
613
|
+
N((z) => z ?? !1);
|
|
600
614
|
}, 30);
|
|
601
615
|
return () => clearTimeout(C);
|
|
602
616
|
}, [x]), /* @__PURE__ */ t.jsx(
|
|
@@ -614,12 +628,12 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
614
628
|
)
|
|
615
629
|
),
|
|
616
630
|
onLoad: (C) => {
|
|
617
|
-
|
|
631
|
+
N(!0), n?.(C);
|
|
618
632
|
},
|
|
619
633
|
...l
|
|
620
634
|
}
|
|
621
635
|
);
|
|
622
|
-
},
|
|
636
|
+
}, Fe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_PLAY", children: /* @__PURE__ */ t.jsx(
|
|
623
637
|
"svg",
|
|
624
638
|
{
|
|
625
639
|
className: e,
|
|
@@ -689,7 +703,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
689
703
|
) }), Be = ({
|
|
690
704
|
children: e
|
|
691
705
|
}) => {
|
|
692
|
-
const { extendMode: r } =
|
|
706
|
+
const { extendMode: r } = K();
|
|
693
707
|
return /* @__PURE__ */ t.jsx(
|
|
694
708
|
"div",
|
|
695
709
|
{
|
|
@@ -729,7 +743,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
729
743
|
l = /* @__PURE__ */ t.jsx(Be, { children: /* @__PURE__ */ t.jsx(kt, { className: "size-full text-primary-light" }) });
|
|
730
744
|
break;
|
|
731
745
|
case "video":
|
|
732
|
-
l = /* @__PURE__ */ t.jsx(Be, { children: /* @__PURE__ */ t.jsx(
|
|
746
|
+
l = /* @__PURE__ */ t.jsx(Be, { children: /* @__PURE__ */ t.jsx(Fe, { className: "size-full p-0.5 text-background" }) });
|
|
733
747
|
break;
|
|
734
748
|
}
|
|
735
749
|
return /* @__PURE__ */ t.jsxs("div", { className: "relative bg-foreground/30", style: n, children: [
|
|
@@ -741,93 +755,93 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
741
755
|
neutral: "bg-neutral/50",
|
|
742
756
|
background: "bg-background/50",
|
|
743
757
|
foreground: "bg-foreground/50"
|
|
744
|
-
},
|
|
758
|
+
}, Nt = ({
|
|
745
759
|
color: e = "neutral",
|
|
746
760
|
orientation: r = "horizontal"
|
|
747
761
|
}) => {
|
|
748
762
|
const n = pr[e], o = r === "horizontal" ? "h-px w-full" : "w-px h-full";
|
|
749
763
|
return /* @__PURE__ */ t.jsx("div", { className: O(n, o) });
|
|
750
|
-
},
|
|
764
|
+
}, Et = ({
|
|
751
765
|
className: e = "",
|
|
752
766
|
containerClassName: r = ""
|
|
753
767
|
}) => {
|
|
754
768
|
const { hideCategories: n, infiniteCarrousel: o, permanentGallery: a, isFullScreen: u } = J(), { categories: l, items: i, aspectRatioStyle: s } = ne(), {
|
|
755
|
-
extendMode:
|
|
769
|
+
extendMode: b,
|
|
756
770
|
extendTransition: c,
|
|
757
771
|
masterItemIndex: m,
|
|
758
772
|
prevItem: g,
|
|
759
773
|
nextItem: _,
|
|
760
774
|
scrollToItemIndex: w,
|
|
761
775
|
resetView: x
|
|
762
|
-
} =
|
|
776
|
+
} = K(), N = re(() => {
|
|
763
777
|
if (n)
|
|
764
778
|
return [];
|
|
765
|
-
const
|
|
779
|
+
const E = new Array();
|
|
766
780
|
let L = 0;
|
|
767
781
|
for (let I = 0; I < l.length - 1; I++) {
|
|
768
782
|
const H = l[I].items.length;
|
|
769
|
-
|
|
783
|
+
E.push(L + H), L += H;
|
|
770
784
|
}
|
|
771
|
-
return
|
|
772
|
-
}, [l, n]), C =
|
|
785
|
+
return E;
|
|
786
|
+
}, [l, n]), C = Y(null), z = M(() => {
|
|
773
787
|
if (!C.current)
|
|
774
788
|
throw new Error("slider.current is null");
|
|
775
789
|
return C.current;
|
|
776
|
-
}, []), f =
|
|
790
|
+
}, []), f = Y(!1), p = Y(
|
|
777
791
|
null
|
|
778
|
-
), [v, j] =
|
|
779
|
-
(
|
|
780
|
-
const I = z(), H = I.clientWidth, h = I.scrollWidth / i.length,
|
|
792
|
+
), [v, j] = F(!1), S = M(
|
|
793
|
+
(E, L) => {
|
|
794
|
+
const I = z(), H = I.clientWidth, h = I.scrollWidth / i.length, T = (E + 1 / 2) * h - H / 2, d = I.scrollWidth - I.clientWidth;
|
|
781
795
|
I.scrollTo({
|
|
782
|
-
left: ae(
|
|
796
|
+
left: ae(T, 0, d),
|
|
783
797
|
behavior: L
|
|
784
798
|
});
|
|
785
799
|
},
|
|
786
800
|
[i.length, z]
|
|
787
801
|
);
|
|
788
|
-
|
|
789
|
-
const
|
|
790
|
-
if (!
|
|
802
|
+
Z(() => {
|
|
803
|
+
const E = C.current;
|
|
804
|
+
if (!E)
|
|
791
805
|
return;
|
|
792
806
|
const L = (h) => {
|
|
793
807
|
h.preventDefault(), f.current = !0, p.current = {
|
|
794
|
-
x: h.pageX -
|
|
795
|
-
scrollLeft:
|
|
808
|
+
x: h.pageX - E.offsetLeft,
|
|
809
|
+
scrollLeft: E.scrollLeft
|
|
796
810
|
};
|
|
797
811
|
}, I = (h) => {
|
|
798
812
|
if (!f.current)
|
|
799
813
|
return;
|
|
800
814
|
if (p.current === null)
|
|
801
815
|
throw new Error("[onMouseMove] scrollStart is null");
|
|
802
|
-
const
|
|
803
|
-
if (!v && Math.abs(
|
|
816
|
+
const T = h.pageX - E.offsetLeft - p.current.x;
|
|
817
|
+
if (!v && Math.abs(T) < 5)
|
|
804
818
|
return;
|
|
805
|
-
const d = p.current.scrollLeft -
|
|
819
|
+
const d = p.current.scrollLeft - T;
|
|
806
820
|
j(!0), requestAnimationFrame(() => {
|
|
807
|
-
|
|
821
|
+
E.scrollLeft = d;
|
|
808
822
|
});
|
|
809
823
|
}, H = () => {
|
|
810
824
|
f.current && (f.current = !1, requestAnimationFrame(() => {
|
|
811
825
|
j(!1);
|
|
812
826
|
}));
|
|
813
827
|
};
|
|
814
|
-
return
|
|
815
|
-
|
|
828
|
+
return E.addEventListener("mousedown", L), document.addEventListener("mousemove", I), document.addEventListener("mouseleave", H), document.addEventListener("mouseup", H), document.addEventListener("contextmenu", H), () => {
|
|
829
|
+
E.removeEventListener("mousedown", L), document.removeEventListener("mousemove", I), document.removeEventListener("mouseleave", H), document.removeEventListener("mouseup", H), document.removeEventListener("contextmenu", H);
|
|
816
830
|
};
|
|
817
831
|
}, [v]);
|
|
818
|
-
const R =
|
|
819
|
-
|
|
820
|
-
C.current && (
|
|
821
|
-
}, [m,
|
|
822
|
-
C.current &&
|
|
832
|
+
const R = Y(m);
|
|
833
|
+
Z(() => {
|
|
834
|
+
C.current && (S(m, "smooth"), R.current = m);
|
|
835
|
+
}, [m, S]), Z(() => {
|
|
836
|
+
C.current && S(R.current, "instant");
|
|
823
837
|
}, [
|
|
824
|
-
|
|
838
|
+
S,
|
|
825
839
|
// - Run the effect when those values change
|
|
826
840
|
u,
|
|
827
|
-
|
|
841
|
+
b,
|
|
828
842
|
c
|
|
829
843
|
]);
|
|
830
|
-
const
|
|
844
|
+
const V = (E, L) => {
|
|
831
845
|
v || (o && L === i.length - 1 && m === 0 ? g() : o && L === 0 && m === i.length - 1 ? _() : w(L), x());
|
|
832
846
|
};
|
|
833
847
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -844,12 +858,12 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
844
858
|
{
|
|
845
859
|
className: O(
|
|
846
860
|
"flex h-10 w-fit gap-1 small:h-12 small:gap-2",
|
|
847
|
-
|
|
861
|
+
b && "large:h-20 large:gap-4",
|
|
848
862
|
r
|
|
849
863
|
),
|
|
850
|
-
children: i.map((
|
|
851
|
-
|
|
852
|
-
|
|
864
|
+
children: i.map((E, L) => /* @__PURE__ */ t.jsxs(Rt, { children: [
|
|
865
|
+
N.includes(L) && /* @__PURE__ */ t.jsx("div", { className: "my-2", children: /* @__PURE__ */ t.jsx(
|
|
866
|
+
Nt,
|
|
853
867
|
{
|
|
854
868
|
color: a && !u ? "neutral" : "background",
|
|
855
869
|
orientation: "vertical"
|
|
@@ -865,8 +879,8 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
865
879
|
L === m ? "after:opacity-100" : "after:opacity-0 hover:after:opacity-70"
|
|
866
880
|
),
|
|
867
881
|
style: s,
|
|
868
|
-
onClick: () =>
|
|
869
|
-
children: /* @__PURE__ */ t.jsx(mr, { item:
|
|
882
|
+
onClick: () => V(E, L),
|
|
883
|
+
children: /* @__PURE__ */ t.jsx(mr, { item: E })
|
|
870
884
|
}
|
|
871
885
|
)
|
|
872
886
|
] }, L))
|
|
@@ -880,22 +894,22 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
880
894
|
onlyPreload: e,
|
|
881
895
|
...r
|
|
882
896
|
}) => {
|
|
883
|
-
const { zoom: n, isZooming: o, setZoom: a } =
|
|
897
|
+
const { zoom: n, isZooming: o, setZoom: a } = K(), u = Y(null), l = Y(null), i = M((f) => {
|
|
884
898
|
if (!l.current)
|
|
885
899
|
throw new Error(
|
|
886
900
|
`[${f ?? "getTransformElementOrThrow"}] transformElementRef.current is null`
|
|
887
901
|
);
|
|
888
902
|
return l.current;
|
|
889
|
-
}, []), s =
|
|
903
|
+
}, []), s = Y(!1), b = Y(null), c = Y(/* @__PURE__ */ new Map()), m = Y({ x: 0, y: 0, scale: 1 }), g = Y(null), _ = M(
|
|
890
904
|
(f) => {
|
|
891
905
|
const p = i("setTransformStyle"), {
|
|
892
906
|
x: v,
|
|
893
907
|
y: j,
|
|
894
|
-
scale:
|
|
908
|
+
scale: S
|
|
895
909
|
} = {
|
|
896
910
|
...m.current,
|
|
897
911
|
...f
|
|
898
|
-
}, R = ae(
|
|
912
|
+
}, R = ae(S, 1, Le), V = p.clientWidth, E = p.clientHeight, L = V * R, I = E * R, H = ae(v, -(L - V), 0), h = ae(j, -(I - E), 0);
|
|
899
913
|
m.current = { x: H, y: h, scale: R }, p.style.transform = `translate(${H}px, ${h}px) scale(${R})`;
|
|
900
914
|
},
|
|
901
915
|
[i]
|
|
@@ -904,34 +918,34 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
904
918
|
const {
|
|
905
919
|
x: v,
|
|
906
920
|
y: j,
|
|
907
|
-
scale:
|
|
921
|
+
scale: S
|
|
908
922
|
} = m.current, {
|
|
909
923
|
x: R,
|
|
910
|
-
y:
|
|
911
|
-
scale:
|
|
924
|
+
y: V,
|
|
925
|
+
scale: E
|
|
912
926
|
} = {
|
|
913
927
|
...m.current,
|
|
914
928
|
...f
|
|
915
929
|
};
|
|
916
930
|
g.current && (cancelAnimationFrame(g.current), g.current = null);
|
|
917
931
|
const L = () => {
|
|
918
|
-
_({ x: R, y:
|
|
919
|
-
}, I = Math.abs(R - v) < 1 && Math.abs(
|
|
932
|
+
_({ x: R, y: V, scale: E }), a(E);
|
|
933
|
+
}, I = Math.abs(R - v) < 1 && Math.abs(V - j) < 1 && Math.abs(E - S) < 5e-3;
|
|
920
934
|
if (!p || I) {
|
|
921
935
|
L();
|
|
922
936
|
return;
|
|
923
937
|
}
|
|
924
938
|
const H = (/* @__PURE__ */ new Date()).getTime(), h = () => {
|
|
925
|
-
const
|
|
939
|
+
const T = () => {
|
|
926
940
|
const d = (/* @__PURE__ */ new Date()).getTime() - H;
|
|
927
941
|
if (d >= p) {
|
|
928
942
|
L(), g.current = null;
|
|
929
943
|
return;
|
|
930
944
|
}
|
|
931
|
-
const
|
|
932
|
-
_({ x: A, y: D, scale:
|
|
945
|
+
const y = Math.min(d / p, 1), k = Lt(y), A = Ee(v, R, k), D = Ee(j, V, k), $ = Ee(S, E, k);
|
|
946
|
+
_({ x: A, y: D, scale: $ }), h();
|
|
933
947
|
};
|
|
934
|
-
g.current = requestAnimationFrame(
|
|
948
|
+
g.current = requestAnimationFrame(T);
|
|
935
949
|
};
|
|
936
950
|
h();
|
|
937
951
|
},
|
|
@@ -948,14 +962,14 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
948
962
|
);
|
|
949
963
|
},
|
|
950
964
|
[w]
|
|
951
|
-
),
|
|
965
|
+
), N = M(
|
|
952
966
|
(f, p, v) => {
|
|
953
|
-
const j = m.current.scale,
|
|
967
|
+
const j = m.current.scale, S = ae(f, 1, Le), R = S / j, { x: V, y: E } = m.current, { x: L, y: I } = p, H = -V + L, h = -E + I, T = H * R, d = h * R, y = T - L, k = d - I, A = -y, D = -k;
|
|
954
968
|
w(
|
|
955
969
|
{
|
|
956
970
|
x: A,
|
|
957
971
|
y: D,
|
|
958
|
-
scale:
|
|
972
|
+
scale: S
|
|
959
973
|
},
|
|
960
974
|
v
|
|
961
975
|
);
|
|
@@ -966,7 +980,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
966
980
|
const p = i(
|
|
967
981
|
"shiftZoomFromButton"
|
|
968
982
|
), v = p.clientWidth, j = p.clientHeight;
|
|
969
|
-
|
|
983
|
+
N(
|
|
970
984
|
f,
|
|
971
985
|
{
|
|
972
986
|
x: v / 2,
|
|
@@ -975,44 +989,44 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
975
989
|
200
|
|
976
990
|
);
|
|
977
991
|
},
|
|
978
|
-
[i,
|
|
992
|
+
[i, N]
|
|
979
993
|
), z = M(
|
|
980
994
|
(f, p, v) => {
|
|
981
995
|
const { scale: j } = m.current;
|
|
982
|
-
|
|
996
|
+
N(
|
|
983
997
|
j + f,
|
|
984
998
|
p,
|
|
985
999
|
v
|
|
986
1000
|
);
|
|
987
1001
|
},
|
|
988
|
-
[
|
|
1002
|
+
[N]
|
|
989
1003
|
);
|
|
990
|
-
return
|
|
1004
|
+
return Z(() => {
|
|
991
1005
|
e || l.current && C(n);
|
|
992
|
-
}, [e, C, n]),
|
|
1006
|
+
}, [e, C, n]), Z(() => {
|
|
993
1007
|
if (e || !o)
|
|
994
1008
|
return;
|
|
995
1009
|
const f = l.current;
|
|
996
1010
|
if (!f)
|
|
997
1011
|
return;
|
|
998
|
-
const p = (
|
|
999
|
-
|
|
1000
|
-
x:
|
|
1001
|
-
y:
|
|
1012
|
+
const p = (S) => {
|
|
1013
|
+
S.preventDefault(), S.stopPropagation(), s.current = !0, b.current = {
|
|
1014
|
+
x: S.clientX,
|
|
1015
|
+
y: S.clientY
|
|
1002
1016
|
};
|
|
1003
|
-
}, v = (
|
|
1017
|
+
}, v = (S) => {
|
|
1004
1018
|
if (!s.current)
|
|
1005
1019
|
return;
|
|
1006
|
-
if (!
|
|
1020
|
+
if (!b.current)
|
|
1007
1021
|
throw new Error("mouseStartXY.current is null");
|
|
1008
|
-
|
|
1009
|
-
const R =
|
|
1022
|
+
S.stopPropagation();
|
|
1023
|
+
const R = S.clientX - b.current.x, V = S.clientY - b.current.y;
|
|
1010
1024
|
x({
|
|
1011
1025
|
x: R,
|
|
1012
|
-
y:
|
|
1013
|
-
}),
|
|
1014
|
-
x:
|
|
1015
|
-
y:
|
|
1026
|
+
y: V
|
|
1027
|
+
}), b.current = {
|
|
1028
|
+
x: S.clientX,
|
|
1029
|
+
y: S.clientY
|
|
1016
1030
|
};
|
|
1017
1031
|
}, j = () => {
|
|
1018
1032
|
s.current = !1;
|
|
@@ -1020,19 +1034,19 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1020
1034
|
return f.addEventListener("mousedown", p), document.addEventListener("mousemove", v), document.addEventListener("mouseleave", j), document.addEventListener("mouseup", j), document.addEventListener("contextmenu", j), () => {
|
|
1021
1035
|
f.removeEventListener("mousedown", p), document.removeEventListener("mousemove", v), document.removeEventListener("mouseleave", j), document.removeEventListener("mouseup", j), document.removeEventListener("contextmenu", j);
|
|
1022
1036
|
};
|
|
1023
|
-
}, [o, x, e]),
|
|
1037
|
+
}, [o, x, e]), Z(() => {
|
|
1024
1038
|
if (e)
|
|
1025
1039
|
return;
|
|
1026
1040
|
const f = u.current;
|
|
1027
1041
|
if (!f)
|
|
1028
1042
|
return;
|
|
1029
1043
|
const p = (v) => {
|
|
1030
|
-
const { ctrlKey: j, clientX:
|
|
1044
|
+
const { ctrlKey: j, clientX: S, clientY: R, deltaX: V, deltaY: E } = v;
|
|
1031
1045
|
if (j) {
|
|
1032
|
-
if (!o &&
|
|
1046
|
+
if (!o && E >= 0)
|
|
1033
1047
|
return;
|
|
1034
|
-
const { left: L, top: I } = f.getBoundingClientRect(), H =
|
|
1035
|
-
z(-0.01 *
|
|
1048
|
+
const { left: L, top: I } = f.getBoundingClientRect(), H = S - L, h = R - I;
|
|
1049
|
+
z(-0.01 * E, {
|
|
1036
1050
|
x: H,
|
|
1037
1051
|
y: h
|
|
1038
1052
|
});
|
|
@@ -1040,8 +1054,8 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1040
1054
|
if (!o)
|
|
1041
1055
|
return;
|
|
1042
1056
|
x({
|
|
1043
|
-
x: -2 *
|
|
1044
|
-
y: -2 *
|
|
1057
|
+
x: -2 * V,
|
|
1058
|
+
y: -2 * E
|
|
1045
1059
|
});
|
|
1046
1060
|
}
|
|
1047
1061
|
v.preventDefault();
|
|
@@ -1049,27 +1063,27 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1049
1063
|
return f.addEventListener("wheel", p), () => {
|
|
1050
1064
|
f.removeEventListener("wheel", p);
|
|
1051
1065
|
};
|
|
1052
|
-
}, [o, x, z, e]),
|
|
1066
|
+
}, [o, x, z, e]), Z(() => {
|
|
1053
1067
|
const f = u.current, p = l.current;
|
|
1054
1068
|
if (!f || !p)
|
|
1055
1069
|
return;
|
|
1056
|
-
const v = c.current, j = (
|
|
1057
|
-
for (let
|
|
1058
|
-
const L =
|
|
1070
|
+
const v = c.current, j = (V) => {
|
|
1071
|
+
for (let E = 0; E < V.changedTouches.length; E++) {
|
|
1072
|
+
const L = V.changedTouches[E];
|
|
1059
1073
|
v.set(L.identifier, L);
|
|
1060
1074
|
}
|
|
1061
|
-
},
|
|
1062
|
-
for (let
|
|
1063
|
-
const L =
|
|
1075
|
+
}, S = (V) => {
|
|
1076
|
+
for (let E = 0; E < V.changedTouches.length; E++) {
|
|
1077
|
+
const L = V.changedTouches[E];
|
|
1064
1078
|
v.delete(L.identifier);
|
|
1065
1079
|
}
|
|
1066
|
-
}, R = (
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1080
|
+
}, R = (V) => {
|
|
1081
|
+
const E = V.touches.length;
|
|
1082
|
+
if (E === 1) {
|
|
1069
1083
|
if (!o)
|
|
1070
1084
|
return;
|
|
1071
|
-
|
|
1072
|
-
const L =
|
|
1085
|
+
V.preventDefault();
|
|
1086
|
+
const L = V.touches[0], I = v.get(L.identifier);
|
|
1073
1087
|
if (!I)
|
|
1074
1088
|
throw new Error("touchStart is null");
|
|
1075
1089
|
const H = L.clientX - I.clientX, h = L.clientY - I.clientY;
|
|
@@ -1077,23 +1091,23 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1077
1091
|
x: H,
|
|
1078
1092
|
y: h
|
|
1079
1093
|
}), v.set(L.identifier, L);
|
|
1080
|
-
} else if (
|
|
1081
|
-
|
|
1082
|
-
const [L, I] =
|
|
1094
|
+
} else if (E === 2) {
|
|
1095
|
+
V.preventDefault();
|
|
1096
|
+
const [L, I] = V.touches, H = v.get(L.identifier), h = v.get(I.identifier);
|
|
1083
1097
|
if (!H || !h)
|
|
1084
1098
|
throw new Error("intialTouch1 or intialTouch2 is null");
|
|
1085
|
-
const
|
|
1099
|
+
const T = Ge(
|
|
1086
1100
|
H,
|
|
1087
1101
|
h
|
|
1088
|
-
), d = Ge(L, I) /
|
|
1102
|
+
), d = Ge(L, I) / T, { left: y, top: k } = f.getBoundingClientRect();
|
|
1089
1103
|
z(d - 1, {
|
|
1090
|
-
x: (L.clientX + I.clientX) / 2 -
|
|
1104
|
+
x: (L.clientX + I.clientX) / 2 - y,
|
|
1091
1105
|
y: (L.clientY + I.clientY) / 2 - k
|
|
1092
1106
|
}), v.set(L.identifier, L), v.set(I.identifier, I);
|
|
1093
1107
|
}
|
|
1094
1108
|
};
|
|
1095
|
-
return p.addEventListener("touchstart", j), p.addEventListener("touchmove", R), p.addEventListener("touchend",
|
|
1096
|
-
p.removeEventListener("touchstart", j), p.removeEventListener("touchmove", R), p.removeEventListener("touchend",
|
|
1109
|
+
return p.addEventListener("touchstart", j), p.addEventListener("touchmove", R), p.addEventListener("touchend", S), p.addEventListener("touchcancel", S), () => {
|
|
1110
|
+
p.removeEventListener("touchstart", j), p.removeEventListener("touchmove", R), p.removeEventListener("touchend", S), p.removeEventListener("touchcancel", S);
|
|
1097
1111
|
};
|
|
1098
1112
|
}, [o, x, z]), /* @__PURE__ */ t.jsx(
|
|
1099
1113
|
"div",
|
|
@@ -1123,8 +1137,8 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1123
1137
|
fill: "currentColor"
|
|
1124
1138
|
}
|
|
1125
1139
|
) }) }), fr = ({ hotspot: e }) => {
|
|
1126
|
-
const { title: r, icon: n, description: o, position: a, detail: u } = e, { getIconConfig: l } = De(), i = n ? l(n) : void 0, { extendMode: s, setShownDetails:
|
|
1127
|
-
m &&
|
|
1140
|
+
const { title: r, icon: n, description: o, position: a, detail: u } = e, { getIconConfig: l } = De(), i = n ? l(n) : void 0, { extendMode: s, setShownDetails: b } = K(), c = !!u, m = u?.type === "image", g = !!r || !!o, _ = m ? /* @__PURE__ */ t.jsx(gr, { className: "size-4" }) : /* @__PURE__ */ t.jsx("div", { className: "size-1" }), w = () => {
|
|
1141
|
+
m && b({
|
|
1128
1142
|
src: u.src,
|
|
1129
1143
|
title: r,
|
|
1130
1144
|
text: o
|
|
@@ -1220,7 +1234,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1220
1234
|
onLoad: o,
|
|
1221
1235
|
...a
|
|
1222
1236
|
}) => {
|
|
1223
|
-
const { isShowingDetails: u, showHotspots: l, setItemInteraction: i } =
|
|
1237
|
+
const { isShowingDetails: u, showHotspots: l, setItemInteraction: i } = K();
|
|
1224
1238
|
return /* @__PURE__ */ t.jsx("div", { className: O("relative size-full overflow-hidden", n), children: /* @__PURE__ */ t.jsxs(
|
|
1225
1239
|
"div",
|
|
1226
1240
|
{
|
|
@@ -1239,7 +1253,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1239
1253
|
...a
|
|
1240
1254
|
}
|
|
1241
1255
|
),
|
|
1242
|
-
l && e?.map((s,
|
|
1256
|
+
l && e?.map((s, b) => /* @__PURE__ */ t.jsx(xr, { hotspot: s }, b))
|
|
1243
1257
|
]
|
|
1244
1258
|
}
|
|
1245
1259
|
) });
|
|
@@ -1247,39 +1261,39 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1247
1261
|
images: e,
|
|
1248
1262
|
onlyPreload: r
|
|
1249
1263
|
}) => {
|
|
1250
|
-
const { reverse360: n } = J(), { isShowingDetails: o, isZooming: a } =
|
|
1251
|
-
|
|
1264
|
+
const { reverse360: n } = J(), { isShowingDetails: o, isZooming: a } = K(), u = a || o, l = Y(null), i = Y(null), [s, b] = F(0), c = e.length, m = M(() => {
|
|
1265
|
+
b((_) => (_ - 1 + c) % c);
|
|
1252
1266
|
}, [c]), g = M(() => {
|
|
1253
|
-
|
|
1267
|
+
b((_) => (_ + 1) % c);
|
|
1254
1268
|
}, [c]);
|
|
1255
|
-
return
|
|
1269
|
+
return Z(() => {
|
|
1256
1270
|
if (u)
|
|
1257
1271
|
return;
|
|
1258
1272
|
const _ = l.current, w = i.current;
|
|
1259
1273
|
if (!_ || !w)
|
|
1260
1274
|
return;
|
|
1261
|
-
let x = null,
|
|
1275
|
+
let x = null, N = [], C = null;
|
|
1262
1276
|
const z = (d) => {
|
|
1263
|
-
|
|
1277
|
+
N.push(d), N.length > 20 && N.shift();
|
|
1264
1278
|
}, f = () => {
|
|
1265
|
-
const d = Date.now(),
|
|
1266
|
-
const
|
|
1267
|
-
(G) =>
|
|
1279
|
+
const d = Date.now(), y = (() => {
|
|
1280
|
+
const $ = Date.now(), W = N.filter(
|
|
1281
|
+
(G) => $ - G.timestamp < 50
|
|
1268
1282
|
);
|
|
1269
|
-
if (
|
|
1283
|
+
if (W.length < 2)
|
|
1270
1284
|
return 0;
|
|
1271
|
-
const X =
|
|
1285
|
+
const X = W[0], B = W[W.length - 1];
|
|
1272
1286
|
return (B.value - X.value) / (1e-3 * Math.max(B.timestamp - X.timestamp, 1));
|
|
1273
1287
|
})();
|
|
1274
1288
|
let k = 0, A = d;
|
|
1275
1289
|
const D = () => {
|
|
1276
1290
|
C = requestAnimationFrame(() => {
|
|
1277
|
-
const
|
|
1291
|
+
const $ = Date.now(), W = ($ - d) / 1e3, X = Math.pow(0.05, W), B = y * X, G = ($ - A) / 1e3;
|
|
1278
1292
|
if (k += B * G, Math.abs(B) < 5 * ve && Math.abs(k) < ve) {
|
|
1279
1293
|
C = null;
|
|
1280
1294
|
return;
|
|
1281
1295
|
}
|
|
1282
|
-
Math.abs(k) >= ve && (k > 0 !== n ? g() : m(), k = 0), A =
|
|
1296
|
+
Math.abs(k) >= ve && (k > 0 !== n ? g() : m(), k = 0), A = $, D();
|
|
1283
1297
|
});
|
|
1284
1298
|
};
|
|
1285
1299
|
D();
|
|
@@ -1289,28 +1303,28 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1289
1303
|
if (d.button !== 0)
|
|
1290
1304
|
return;
|
|
1291
1305
|
d.preventDefault(), d.stopPropagation(), p();
|
|
1292
|
-
const
|
|
1293
|
-
x =
|
|
1306
|
+
const y = d.clientX;
|
|
1307
|
+
x = y, N = [{ timestamp: Date.now(), value: y }];
|
|
1294
1308
|
}, j = (d) => {
|
|
1295
1309
|
if (x === null)
|
|
1296
1310
|
return;
|
|
1297
1311
|
d.stopPropagation();
|
|
1298
|
-
const { clientX:
|
|
1299
|
-
z({ timestamp: Date.now(), value:
|
|
1300
|
-
const k =
|
|
1301
|
-
Math.abs(k) < ve || (k > 0 !== n ? g() : m(), x =
|
|
1302
|
-
},
|
|
1312
|
+
const { clientX: y } = d;
|
|
1313
|
+
z({ timestamp: Date.now(), value: y });
|
|
1314
|
+
const k = y - x;
|
|
1315
|
+
Math.abs(k) < ve || (k > 0 !== n ? g() : m(), x = y);
|
|
1316
|
+
}, S = () => {
|
|
1303
1317
|
x !== null && (x = null, f());
|
|
1304
1318
|
};
|
|
1305
|
-
_.addEventListener("mousedown", v), document.addEventListener("mousemove", j), document.addEventListener("mouseleave",
|
|
1306
|
-
const R = () => w.getBoundingClientRect().width,
|
|
1307
|
-
const d =
|
|
1319
|
+
_.addEventListener("mousedown", v), document.addEventListener("mousemove", j), document.addEventListener("mouseleave", S), document.addEventListener("mouseup", S), document.addEventListener("contextmenu", S);
|
|
1320
|
+
const R = () => w.getBoundingClientRect().width, V = () => w.scrollWidth / 2 - R() / 2, E = () => {
|
|
1321
|
+
const d = V();
|
|
1308
1322
|
w.scrollLeft = d;
|
|
1309
1323
|
};
|
|
1310
|
-
|
|
1324
|
+
E();
|
|
1311
1325
|
const L = () => {
|
|
1312
|
-
const d = w.scrollLeft -
|
|
1313
|
-
Math.abs(d) < vr || (d < 0 !== n ? g() : m(),
|
|
1326
|
+
const d = w.scrollLeft - V();
|
|
1327
|
+
Math.abs(d) < vr || (d < 0 !== n ? g() : m(), E());
|
|
1314
1328
|
};
|
|
1315
1329
|
w.addEventListener("scroll", L);
|
|
1316
1330
|
let I = null;
|
|
@@ -1318,28 +1332,28 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1318
1332
|
if (I !== null || d.changedTouches.length !== 1)
|
|
1319
1333
|
return;
|
|
1320
1334
|
p();
|
|
1321
|
-
const { identifier:
|
|
1322
|
-
I =
|
|
1335
|
+
const { identifier: y, clientX: k } = d.changedTouches[0];
|
|
1336
|
+
I = y, x = k, N = [{ timestamp: Date.now(), value: k }];
|
|
1323
1337
|
}, h = (d) => {
|
|
1324
1338
|
if (!x)
|
|
1325
1339
|
return;
|
|
1326
|
-
const
|
|
1340
|
+
const y = Array.from(d.changedTouches).find(
|
|
1327
1341
|
({ identifier: D }) => D === I
|
|
1328
1342
|
);
|
|
1329
|
-
if (!
|
|
1343
|
+
if (!y)
|
|
1330
1344
|
return;
|
|
1331
1345
|
d.preventDefault();
|
|
1332
|
-
const { clientX: k } =
|
|
1346
|
+
const { clientX: k } = y;
|
|
1333
1347
|
z({ timestamp: Date.now(), value: k });
|
|
1334
1348
|
const A = k - x;
|
|
1335
1349
|
Math.abs(A) < ve || (A > 0 !== n ? g() : m(), x = k);
|
|
1336
|
-
},
|
|
1350
|
+
}, T = (d) => {
|
|
1337
1351
|
!x || !Array.from(d.changedTouches).some(
|
|
1338
|
-
({ identifier:
|
|
1352
|
+
({ identifier: y }) => y === I
|
|
1339
1353
|
) || (I = null, x = null, f());
|
|
1340
1354
|
};
|
|
1341
|
-
return w.addEventListener("touchstart", H), w.addEventListener("touchmove", h), w.addEventListener("touchend",
|
|
1342
|
-
_.removeEventListener("mousedown", v), document.removeEventListener("mousemove", j), document.removeEventListener("mouseleave",
|
|
1355
|
+
return w.addEventListener("touchstart", H), w.addEventListener("touchmove", h), w.addEventListener("touchend", T), w.addEventListener("touchcancel", T), () => {
|
|
1356
|
+
_.removeEventListener("mousedown", v), document.removeEventListener("mousemove", j), document.removeEventListener("mouseleave", S), document.removeEventListener("mouseup", S), document.removeEventListener("contextmenu", S), w.removeEventListener("scroll", L), w.removeEventListener("touchstart", H), w.removeEventListener("touchmove", h), w.removeEventListener("touchend", T), w.removeEventListener("touchcancel", T);
|
|
1343
1357
|
};
|
|
1344
1358
|
}, [g, m, u, n]), /* @__PURE__ */ t.jsx("div", { ref: l, className: "cursor-ew-resize", children: /* @__PURE__ */ t.jsxs("div", { ref: i, className: "overflow-x-scroll no-scrollbar", children: [
|
|
1345
1359
|
/* @__PURE__ */ t.jsxs("div", { className: "sticky left-0 top-0", children: [
|
|
@@ -1355,16 +1369,16 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1355
1369
|
] }),
|
|
1356
1370
|
/* @__PURE__ */ t.jsx("div", { className: "pointer-events-none -mt-px h-px w-[calc(100%+1024px)]" })
|
|
1357
1371
|
] }) });
|
|
1358
|
-
},
|
|
1359
|
-
const a = re(() => e.map(({ src: c }) => c), [e]), [u, l] =
|
|
1372
|
+
}, br = ({ images: e, onPlaceholderImageLoaded: r, onSpinImagesLoaded: n, onError: o }) => {
|
|
1373
|
+
const a = re(() => e.map(({ src: c }) => c), [e]), [u, l] = F(null), i = u ? [...u.values()].filter((c) => c).length / e.length * 100 : null, s = M(() => {
|
|
1360
1374
|
i === null && l(new Map(a.map((c) => [c, !1])));
|
|
1361
|
-
}, [a, i]),
|
|
1375
|
+
}, [a, i]), b = M((c) => {
|
|
1362
1376
|
l((m) => {
|
|
1363
1377
|
const g = new Map(m);
|
|
1364
1378
|
return g.set(c, !0), g;
|
|
1365
1379
|
});
|
|
1366
1380
|
}, []);
|
|
1367
|
-
return
|
|
1381
|
+
return Z(() => {
|
|
1368
1382
|
i === 100 && n();
|
|
1369
1383
|
}, [i, n]), /* @__PURE__ */ t.jsxs("div", { className: "relative size-full", children: [
|
|
1370
1384
|
i !== null && i !== 100 && // Add images to DOM to preload them
|
|
@@ -1372,7 +1386,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1372
1386
|
me,
|
|
1373
1387
|
{
|
|
1374
1388
|
src: c,
|
|
1375
|
-
onLoad: () =>
|
|
1389
|
+
onLoad: () => b(c),
|
|
1376
1390
|
onError: o
|
|
1377
1391
|
},
|
|
1378
1392
|
c
|
|
@@ -1387,7 +1401,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1387
1401
|
),
|
|
1388
1402
|
/* @__PURE__ */ t.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35", children: [
|
|
1389
1403
|
/* @__PURE__ */ t.jsx(kt, { className: "size-20 text-primary-light" }),
|
|
1390
|
-
/* @__PURE__ */ t.jsx(
|
|
1404
|
+
/* @__PURE__ */ t.jsx(q, { color: "neutral", shape: "icon", onClick: s, children: /* @__PURE__ */ t.jsx(Fe, { className: "size-full" }) }),
|
|
1391
1405
|
/* @__PURE__ */ t.jsx(
|
|
1392
1406
|
"div",
|
|
1393
1407
|
{
|
|
@@ -1406,12 +1420,18 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1406
1420
|
)
|
|
1407
1421
|
] })
|
|
1408
1422
|
] });
|
|
1409
|
-
},
|
|
1410
|
-
const { itemIndex: r } = e, { setItemInteraction: n } =
|
|
1411
|
-
return
|
|
1423
|
+
}, yr = (e) => {
|
|
1424
|
+
const { itemIndex: r } = e, { setItemInteraction: n } = K(), [o, a] = F();
|
|
1425
|
+
return Z(() => {
|
|
1412
1426
|
o === null || o === "error" || n(r, o === "spin" ? "running" : "ready");
|
|
1413
|
-
}, [r, n, o]), o === "error" ? /* @__PURE__ */ t.jsx(
|
|
1414
|
-
|
|
1427
|
+
}, [r, n, o]), o === "error" ? /* @__PURE__ */ t.jsx(
|
|
1428
|
+
jt,
|
|
1429
|
+
{
|
|
1430
|
+
className: "text-background",
|
|
1431
|
+
text: "Spin could not be loaded"
|
|
1432
|
+
}
|
|
1433
|
+
) : o !== "spin" ? /* @__PURE__ */ t.jsx(
|
|
1434
|
+
br,
|
|
1415
1435
|
{
|
|
1416
1436
|
...e,
|
|
1417
1437
|
onPlaceholderImageLoaded: () => a("placeholder"),
|
|
@@ -1419,7 +1439,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1419
1439
|
onError: () => a("error")
|
|
1420
1440
|
}
|
|
1421
1441
|
) : /* @__PURE__ */ t.jsx(wr, { ...e });
|
|
1422
|
-
}, jr = (e) => /* @__PURE__ */ t.jsx(
|
|
1442
|
+
}, jr = (e) => /* @__PURE__ */ t.jsx(q, { color: "neutral", shape: "icon", ...e, children: /* @__PURE__ */ t.jsx(Fe, { className: "size-full" }) }), Cr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_PAUSE", children: /* @__PURE__ */ t.jsx(
|
|
1423
1443
|
"svg",
|
|
1424
1444
|
{
|
|
1425
1445
|
className: e,
|
|
@@ -1453,7 +1473,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1453
1473
|
}
|
|
1454
1474
|
)
|
|
1455
1475
|
}
|
|
1456
|
-
) }),
|
|
1476
|
+
) }), Nr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_VOLUME_OFF", children: /* @__PURE__ */ t.jsx(
|
|
1457
1477
|
"svg",
|
|
1458
1478
|
{
|
|
1459
1479
|
className: e,
|
|
@@ -1470,110 +1490,110 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1470
1490
|
}
|
|
1471
1491
|
)
|
|
1472
1492
|
}
|
|
1473
|
-
) }),
|
|
1493
|
+
) }), qe = ({ progress: e }) => /* @__PURE__ */ t.jsx("div", { className: "h-1 w-full overflow-hidden rounded-ui-sm bg-background/25", children: /* @__PURE__ */ t.jsx(
|
|
1474
1494
|
"div",
|
|
1475
1495
|
{
|
|
1476
1496
|
className: "size-full rounded-ui-sm bg-background transition-transform",
|
|
1477
1497
|
style: { transform: `translateX(-${100 * (1 - e)}%)` }
|
|
1478
1498
|
}
|
|
1479
|
-
) }),
|
|
1480
|
-
const { carrouselItemIndex: o, setItemInteraction: a } =
|
|
1499
|
+
) }), Er = 3e3, Lr = ({ src: e, poster: r, itemIndex: n }) => {
|
|
1500
|
+
const { carrouselItemIndex: o, setItemInteraction: a } = K(), u = Y(null), l = Y(null), i = M(() => {
|
|
1481
1501
|
if (!l.current)
|
|
1482
1502
|
throw new Error("videoRef.current is null");
|
|
1483
1503
|
return l.current;
|
|
1484
1504
|
}, []);
|
|
1485
|
-
|
|
1505
|
+
Z(() => {
|
|
1486
1506
|
a(n, "ready");
|
|
1487
1507
|
}, [n, a]);
|
|
1488
1508
|
const s = M(() => {
|
|
1489
1509
|
i().play();
|
|
1490
|
-
}, [i]),
|
|
1510
|
+
}, [i]), b = M(() => {
|
|
1491
1511
|
i().pause();
|
|
1492
1512
|
}, [i]);
|
|
1493
|
-
|
|
1494
|
-
o === n ||
|
|
1495
|
-
}, [o, n,
|
|
1496
|
-
const [c, m] =
|
|
1513
|
+
Z(() => {
|
|
1514
|
+
o === n || b();
|
|
1515
|
+
}, [o, n, b]);
|
|
1516
|
+
const [c, m] = F(!1), [g, _] = F(!0), w = () => {
|
|
1497
1517
|
m(!0), a(n, "running");
|
|
1498
1518
|
}, x = () => {
|
|
1499
1519
|
m(!1), a(n, "ready");
|
|
1500
|
-
},
|
|
1520
|
+
}, N = () => {
|
|
1501
1521
|
_(!1);
|
|
1502
1522
|
}, C = () => {
|
|
1503
1523
|
_(!0);
|
|
1504
|
-
}, [z, f] =
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1524
|
+
}, [z, f] = F(null), p = (d) => {
|
|
1525
|
+
const y = i(), k = d.currentTarget.getBoundingClientRect(), A = (d.clientX - k.left) / k.width, D = Math.min(1, Math.max(0, A));
|
|
1526
|
+
y.volume = D, y.muted = !1;
|
|
1507
1527
|
}, v = (d) => {
|
|
1508
|
-
const
|
|
1509
|
-
|
|
1528
|
+
const y = i();
|
|
1529
|
+
y.muted = d;
|
|
1510
1530
|
};
|
|
1511
|
-
|
|
1531
|
+
Z(() => {
|
|
1512
1532
|
const d = l.current;
|
|
1513
1533
|
if (!d)
|
|
1514
1534
|
return;
|
|
1515
|
-
const
|
|
1535
|
+
const y = () => {
|
|
1516
1536
|
f({
|
|
1517
1537
|
volume: d.volume,
|
|
1518
1538
|
isMuted: d.muted
|
|
1519
1539
|
});
|
|
1520
1540
|
};
|
|
1521
|
-
return
|
|
1522
|
-
d.removeEventListener("volumechange",
|
|
1541
|
+
return y(), d.addEventListener("volumechange", y), () => {
|
|
1542
|
+
d.removeEventListener("volumechange", y);
|
|
1523
1543
|
};
|
|
1524
1544
|
}, []);
|
|
1525
|
-
const [j,
|
|
1526
|
-
|
|
1545
|
+
const [j, S] = F(null), R = j ? j.currentTime / j.duration : 0;
|
|
1546
|
+
Z(() => {
|
|
1527
1547
|
const d = l.current;
|
|
1528
1548
|
if (!d) return;
|
|
1529
|
-
const
|
|
1549
|
+
const y = () => {
|
|
1530
1550
|
const k = d.currentTime, A = d.duration;
|
|
1531
|
-
isNaN(k) || isNaN(A) ||
|
|
1551
|
+
isNaN(k) || isNaN(A) || S({
|
|
1532
1552
|
currentTime: k,
|
|
1533
1553
|
duration: A
|
|
1534
1554
|
});
|
|
1535
1555
|
};
|
|
1536
|
-
return
|
|
1537
|
-
d.removeEventListener("timeupdate",
|
|
1556
|
+
return y(), d.addEventListener("timeupdate", y), () => {
|
|
1557
|
+
d.removeEventListener("timeupdate", y);
|
|
1538
1558
|
};
|
|
1539
1559
|
}, []);
|
|
1540
|
-
const
|
|
1541
|
-
const
|
|
1542
|
-
|
|
1543
|
-
},
|
|
1544
|
-
const
|
|
1545
|
-
return `${
|
|
1546
|
-
}, [L, I] =
|
|
1560
|
+
const V = (d) => {
|
|
1561
|
+
const y = i(), k = d.currentTarget.getBoundingClientRect(), A = (d.clientX - k.left) / k.width, D = y.duration * A;
|
|
1562
|
+
y.currentTime = D;
|
|
1563
|
+
}, E = (d) => {
|
|
1564
|
+
const y = Math.floor(d % 3600 / 60), k = Math.floor(d % 60);
|
|
1565
|
+
return `${y}:${k.toString().padStart(2, "0")}`;
|
|
1566
|
+
}, [L, I] = F(!1), H = Y(void 0), h = M(
|
|
1547
1567
|
() => clearTimeout(H.current),
|
|
1548
1568
|
[]
|
|
1549
|
-
),
|
|
1569
|
+
), T = M(() => {
|
|
1550
1570
|
h(), H.current = setTimeout(() => {
|
|
1551
1571
|
I(!1);
|
|
1552
|
-
},
|
|
1572
|
+
}, Er);
|
|
1553
1573
|
}, [h]);
|
|
1554
|
-
return
|
|
1555
|
-
const d = u.current,
|
|
1556
|
-
if (!d || !
|
|
1574
|
+
return Z(() => {
|
|
1575
|
+
const d = u.current, y = l.current;
|
|
1576
|
+
if (!d || !y)
|
|
1557
1577
|
return;
|
|
1558
1578
|
const k = () => {
|
|
1559
|
-
|
|
1579
|
+
T(), I(!0);
|
|
1560
1580
|
}, A = () => {
|
|
1561
1581
|
h(), I(!1);
|
|
1562
1582
|
};
|
|
1563
1583
|
let D = !1;
|
|
1564
|
-
const
|
|
1584
|
+
const $ = () => {
|
|
1565
1585
|
D = !0;
|
|
1566
|
-
},
|
|
1567
|
-
D && (D = !1,
|
|
1586
|
+
}, W = () => {
|
|
1587
|
+
D && (D = !1, b());
|
|
1568
1588
|
}, X = () => {
|
|
1569
1589
|
D = !1, k();
|
|
1570
1590
|
}, B = (G) => {
|
|
1571
|
-
G.preventDefault(), G.touches.length === 1 && (
|
|
1591
|
+
G.preventDefault(), G.touches.length === 1 && (T(), I((Q) => !Q));
|
|
1572
1592
|
};
|
|
1573
|
-
return d.addEventListener("mousedown",
|
|
1574
|
-
d.removeEventListener("mousedown",
|
|
1593
|
+
return d.addEventListener("mousedown", $), d.addEventListener("mouseup", W), d.addEventListener("mouseenter", k), d.addEventListener("mousemove", X), d.addEventListener("mouseleave", A), y.addEventListener("touchstart", B), () => {
|
|
1594
|
+
d.removeEventListener("mousedown", $), d.removeEventListener("mouseup", W), d.removeEventListener("mouseenter", k), d.removeEventListener("mousemove", k), d.removeEventListener("mouseleave", A), y.removeEventListener("touchstart", B);
|
|
1575
1595
|
};
|
|
1576
|
-
}, [h,
|
|
1596
|
+
}, [h, b, T]), /* @__PURE__ */ t.jsxs("div", { ref: u, className: "relative size-full", children: [
|
|
1577
1597
|
/* @__PURE__ */ t.jsx(
|
|
1578
1598
|
"video",
|
|
1579
1599
|
{
|
|
@@ -1586,7 +1606,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1586
1606
|
onPlay: w,
|
|
1587
1607
|
onPause: x,
|
|
1588
1608
|
onEnded: x,
|
|
1589
|
-
onCanPlay:
|
|
1609
|
+
onCanPlay: N,
|
|
1590
1610
|
onWaiting: C
|
|
1591
1611
|
}
|
|
1592
1612
|
),
|
|
@@ -1607,20 +1627,20 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1607
1627
|
className: "flex items-center gap-x-4",
|
|
1608
1628
|
children: [
|
|
1609
1629
|
/* @__PURE__ */ t.jsx(
|
|
1610
|
-
|
|
1630
|
+
q,
|
|
1611
1631
|
{
|
|
1612
1632
|
shape: "icon",
|
|
1613
1633
|
variant: "ghost",
|
|
1614
1634
|
color: "neutral",
|
|
1615
|
-
onClick:
|
|
1635
|
+
onClick: b,
|
|
1616
1636
|
children: /* @__PURE__ */ t.jsx(Cr, { className: "size-full" })
|
|
1617
1637
|
}
|
|
1618
1638
|
),
|
|
1619
1639
|
j && /* @__PURE__ */ t.jsxs("span", { className: "text-sm", children: [
|
|
1620
|
-
|
|
1640
|
+
E(j.currentTime),
|
|
1621
1641
|
" /",
|
|
1622
1642
|
" ",
|
|
1623
|
-
|
|
1643
|
+
E(j.duration)
|
|
1624
1644
|
] })
|
|
1625
1645
|
]
|
|
1626
1646
|
}
|
|
@@ -1635,7 +1655,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1635
1655
|
{
|
|
1636
1656
|
className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${z.isMuted ? "group-hover/volume:opacity-50" : "group-hover/volume:opacity-100"}`,
|
|
1637
1657
|
onClick: p,
|
|
1638
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1658
|
+
children: /* @__PURE__ */ t.jsx(qe, { progress: z.volume })
|
|
1639
1659
|
}
|
|
1640
1660
|
),
|
|
1641
1661
|
/* @__PURE__ */ t.jsx(
|
|
@@ -1643,7 +1663,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1643
1663
|
{
|
|
1644
1664
|
className: "size-5 cursor-pointer",
|
|
1645
1665
|
onClick: () => v(!z.isMuted),
|
|
1646
|
-
children: z.isMuted ? /* @__PURE__ */ t.jsx(
|
|
1666
|
+
children: z.isMuted ? /* @__PURE__ */ t.jsx(Nr, { className: "size-full" }) : /* @__PURE__ */ t.jsx(kr, { className: "size-full" })
|
|
1647
1667
|
}
|
|
1648
1668
|
)
|
|
1649
1669
|
]
|
|
@@ -1654,8 +1674,8 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1654
1674
|
"div",
|
|
1655
1675
|
{
|
|
1656
1676
|
className: "cursor-pointer py-1",
|
|
1657
|
-
onClick:
|
|
1658
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1677
|
+
onClick: V,
|
|
1678
|
+
children: /* @__PURE__ */ t.jsx(qe, { progress: R })
|
|
1659
1679
|
}
|
|
1660
1680
|
)
|
|
1661
1681
|
]
|
|
@@ -1665,7 +1685,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1665
1685
|
"div",
|
|
1666
1686
|
{
|
|
1667
1687
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",
|
|
1668
|
-
children: /* @__PURE__ */ t.jsx(Ct, { size: "lg" })
|
|
1688
|
+
children: /* @__PURE__ */ t.jsx(Ct, { size: "lg", color: "background" })
|
|
1669
1689
|
}
|
|
1670
1690
|
)
|
|
1671
1691
|
] }) : /* @__PURE__ */ t.jsx(
|
|
@@ -1691,7 +1711,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1691
1711
|
break;
|
|
1692
1712
|
case "360":
|
|
1693
1713
|
u = /* @__PURE__ */ t.jsx(
|
|
1694
|
-
|
|
1714
|
+
yr,
|
|
1695
1715
|
{
|
|
1696
1716
|
itemIndex: e,
|
|
1697
1717
|
onlyPreload: !n,
|
|
@@ -1704,7 +1724,7 @@ const wt = _e(null), yt = () => ze(wt), De = () => {
|
|
|
1704
1724
|
}
|
|
1705
1725
|
return u;
|
|
1706
1726
|
}, zr = (e) => {
|
|
1707
|
-
|
|
1727
|
+
Z(() => {
|
|
1708
1728
|
const r = (n) => {
|
|
1709
1729
|
n.key === "Escape" && e();
|
|
1710
1730
|
};
|
|
@@ -1720,25 +1740,25 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1720
1740
|
/* @__PURE__ */ t.jsx("span", { children: e + 1 }),
|
|
1721
1741
|
/* @__PURE__ */ t.jsx("span", { children: "/" }),
|
|
1722
1742
|
/* @__PURE__ */ t.jsx("span", { children: r + 1 })
|
|
1723
|
-
] }),
|
|
1743
|
+
] }), Ke = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_ARROW_RIGHT", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
1724
1744
|
"path",
|
|
1725
1745
|
{
|
|
1726
1746
|
d: "M4.07666 13.4868L5.25666 14.6668L11.9233 8.00016L5.25666 1.3335L4.07666 2.5135L9.56333 8.00016L4.07666 13.4868Z",
|
|
1727
1747
|
fill: "currentColor"
|
|
1728
1748
|
}
|
|
1729
|
-
) }) }),
|
|
1749
|
+
) }) }), Sr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_EXTEND", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
1730
1750
|
"path",
|
|
1731
1751
|
{
|
|
1732
1752
|
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",
|
|
1733
1753
|
fill: "currentColor"
|
|
1734
1754
|
}
|
|
1735
|
-
) }) }),
|
|
1755
|
+
) }) }), Vr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_GALLERY", children: /* @__PURE__ */ t.jsx("svg", { className: e, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t.jsx(
|
|
1736
1756
|
"path",
|
|
1737
1757
|
{
|
|
1738
1758
|
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",
|
|
1739
1759
|
fill: "currentColor"
|
|
1740
1760
|
}
|
|
1741
|
-
) }) }),
|
|
1761
|
+
) }) }), Tr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_HOTSPOTS", children: /* @__PURE__ */ t.jsxs(
|
|
1742
1762
|
"svg",
|
|
1743
1763
|
{
|
|
1744
1764
|
className: e,
|
|
@@ -1843,7 +1863,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1843
1863
|
)
|
|
1844
1864
|
]
|
|
1845
1865
|
}
|
|
1846
|
-
),
|
|
1866
|
+
), Zr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_BURGER", children: /* @__PURE__ */ t.jsx(
|
|
1847
1867
|
"svg",
|
|
1848
1868
|
{
|
|
1849
1869
|
className: e,
|
|
@@ -1861,7 +1881,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1861
1881
|
)
|
|
1862
1882
|
}
|
|
1863
1883
|
) }), Ar = ({ sharedClassName: e }) => {
|
|
1864
|
-
const { categories: r } = ne(), { displayedCategoryId: n, changeCategory: o } =
|
|
1884
|
+
const { categories: r } = ne(), { displayedCategoryId: n, changeCategory: o } = K(), [a, u] = F(!1), l = () => {
|
|
1865
1885
|
u(!a);
|
|
1866
1886
|
}, i = () => {
|
|
1867
1887
|
u(!1);
|
|
@@ -1884,15 +1904,15 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1884
1904
|
),
|
|
1885
1905
|
children: [
|
|
1886
1906
|
/* @__PURE__ */ t.jsx(
|
|
1887
|
-
|
|
1907
|
+
q,
|
|
1888
1908
|
{
|
|
1889
1909
|
shape: "icon",
|
|
1890
1910
|
color: a ? "primary" : "neutral",
|
|
1891
1911
|
onClick: l,
|
|
1892
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1912
|
+
children: /* @__PURE__ */ t.jsx(Zr, {})
|
|
1893
1913
|
}
|
|
1894
1914
|
),
|
|
1895
|
-
a && /* @__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: s, title:
|
|
1915
|
+
a && /* @__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: s, title: b }) => /* @__PURE__ */ t.jsx(
|
|
1896
1916
|
"li",
|
|
1897
1917
|
{
|
|
1898
1918
|
className: O(
|
|
@@ -1902,7 +1922,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1902
1922
|
onClick: () => {
|
|
1903
1923
|
o(s), u(!1);
|
|
1904
1924
|
},
|
|
1905
|
-
children:
|
|
1925
|
+
children: b
|
|
1906
1926
|
},
|
|
1907
1927
|
s
|
|
1908
1928
|
)) }) })
|
|
@@ -1917,12 +1937,12 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1917
1937
|
vt("top"),
|
|
1918
1938
|
"w-full overflow-x-auto max-small:hidden"
|
|
1919
1939
|
),
|
|
1920
|
-
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: s, title:
|
|
1921
|
-
|
|
1940
|
+
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: s, title: b }) => /* @__PURE__ */ t.jsx(
|
|
1941
|
+
q,
|
|
1922
1942
|
{
|
|
1923
1943
|
variant: s === n ? "fill" : "ghost",
|
|
1924
1944
|
onClick: () => o(s),
|
|
1925
|
-
children:
|
|
1945
|
+
children: b
|
|
1926
1946
|
},
|
|
1927
1947
|
s
|
|
1928
1948
|
)) })
|
|
@@ -1938,26 +1958,26 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1938
1958
|
carrouselItemIndex: l,
|
|
1939
1959
|
masterItemIndex: i,
|
|
1940
1960
|
prevItem: s,
|
|
1941
|
-
nextItem:
|
|
1961
|
+
nextItem: b,
|
|
1942
1962
|
showGalleryControls: c,
|
|
1943
1963
|
enableHotspotsControl: m,
|
|
1944
1964
|
showHotspots: g,
|
|
1945
1965
|
toggleHotspots: _,
|
|
1946
1966
|
showGallery: w,
|
|
1947
1967
|
toggleGallery: x,
|
|
1948
|
-
extendMode:
|
|
1968
|
+
extendMode: N,
|
|
1949
1969
|
toggleExtendMode: C,
|
|
1950
1970
|
shownDetails: z,
|
|
1951
1971
|
isShowingDetails: f,
|
|
1952
1972
|
resetShownDetails: p,
|
|
1953
1973
|
showZoomControls: v,
|
|
1954
1974
|
isZooming: j,
|
|
1955
|
-
canZoomIn:
|
|
1975
|
+
canZoomIn: S,
|
|
1956
1976
|
zoomIn: R,
|
|
1957
|
-
canZoomOut:
|
|
1958
|
-
zoomOut:
|
|
1977
|
+
canZoomOut: V,
|
|
1978
|
+
zoomOut: E,
|
|
1959
1979
|
resetView: L
|
|
1960
|
-
} =
|
|
1980
|
+
} = K(), I = M(
|
|
1961
1981
|
(h) => {
|
|
1962
1982
|
Ir(h) && p();
|
|
1963
1983
|
},
|
|
@@ -1985,7 +2005,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1985
2005
|
) }),
|
|
1986
2006
|
u && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1987
2007
|
/* @__PURE__ */ t.jsx(
|
|
1988
|
-
|
|
2008
|
+
q,
|
|
1989
2009
|
{
|
|
1990
2010
|
shape: "icon",
|
|
1991
2011
|
color: "neutral",
|
|
@@ -1996,11 +2016,11 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
1996
2016
|
),
|
|
1997
2017
|
onClick: s,
|
|
1998
2018
|
disabled: !r && i <= 0,
|
|
1999
|
-
children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_ARROW_LEFT", children: /* @__PURE__ */ t.jsx(
|
|
2019
|
+
children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_ARROW_LEFT", children: /* @__PURE__ */ t.jsx(Ke, { className: "size-full rotate-180" }) })
|
|
2000
2020
|
}
|
|
2001
2021
|
),
|
|
2002
2022
|
/* @__PURE__ */ t.jsx(
|
|
2003
|
-
|
|
2023
|
+
q,
|
|
2004
2024
|
{
|
|
2005
2025
|
shape: "icon",
|
|
2006
2026
|
color: "neutral",
|
|
@@ -2009,9 +2029,9 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2009
2029
|
ue("middle-right"),
|
|
2010
2030
|
j ? "!pointer-events-none opacity-0" : "opacity-100"
|
|
2011
2031
|
),
|
|
2012
|
-
onClick:
|
|
2032
|
+
onClick: b,
|
|
2013
2033
|
disabled: !r && i >= o - 1,
|
|
2014
|
-
children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_ARROW_RIGHT", children: /* @__PURE__ */ t.jsx(
|
|
2034
|
+
children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_ARROW_RIGHT", children: /* @__PURE__ */ t.jsx(Ke, { className: "size-full" }) })
|
|
2015
2035
|
}
|
|
2016
2036
|
)
|
|
2017
2037
|
] }),
|
|
@@ -2026,18 +2046,18 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2026
2046
|
children: [
|
|
2027
2047
|
!n && u && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2028
2048
|
/* @__PURE__ */ t.jsx(
|
|
2029
|
-
|
|
2049
|
+
q,
|
|
2030
2050
|
{
|
|
2031
2051
|
className: c && !j ? "opacity-100" : "!pointer-events-none opacity-0",
|
|
2032
2052
|
variant: "fill",
|
|
2033
2053
|
color: w ? "primary" : "neutral",
|
|
2034
2054
|
shape: "icon",
|
|
2035
2055
|
onClick: x,
|
|
2036
|
-
children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_GALLERY", children: /* @__PURE__ */ t.jsx(
|
|
2056
|
+
children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_GALLERY", children: /* @__PURE__ */ t.jsx(Vr, { className: "size-full" }) })
|
|
2037
2057
|
}
|
|
2038
2058
|
),
|
|
2039
2059
|
w && /* @__PURE__ */ t.jsx(
|
|
2040
|
-
|
|
2060
|
+
Et,
|
|
2041
2061
|
{
|
|
2042
2062
|
className: O(
|
|
2043
2063
|
"transition-opacity",
|
|
@@ -2059,42 +2079,42 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2059
2079
|
),
|
|
2060
2080
|
enabled: g,
|
|
2061
2081
|
onToggle: _,
|
|
2062
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2082
|
+
children: /* @__PURE__ */ t.jsx(Tr, { className: "size-full" })
|
|
2063
2083
|
}
|
|
2064
2084
|
),
|
|
2065
2085
|
v && /* @__PURE__ */ t.jsxs("div", { className: "max-small:hidden", children: [
|
|
2066
2086
|
/* @__PURE__ */ t.jsx(
|
|
2067
|
-
|
|
2087
|
+
q,
|
|
2068
2088
|
{
|
|
2069
2089
|
className: "rounded-b-none",
|
|
2070
2090
|
color: "neutral",
|
|
2071
2091
|
shape: "icon",
|
|
2072
|
-
disabled: !
|
|
2092
|
+
disabled: !S,
|
|
2073
2093
|
onClick: R,
|
|
2074
2094
|
children: /* @__PURE__ */ t.jsx(Or, { className: "size-full" })
|
|
2075
2095
|
}
|
|
2076
2096
|
),
|
|
2077
|
-
/* @__PURE__ */ t.jsx(
|
|
2097
|
+
/* @__PURE__ */ t.jsx(Nt, { color: "background" }),
|
|
2078
2098
|
/* @__PURE__ */ t.jsx(
|
|
2079
|
-
|
|
2099
|
+
q,
|
|
2080
2100
|
{
|
|
2081
2101
|
className: "rounded-t-none",
|
|
2082
2102
|
color: "neutral",
|
|
2083
2103
|
shape: "icon",
|
|
2084
|
-
disabled: !
|
|
2085
|
-
onClick:
|
|
2104
|
+
disabled: !V,
|
|
2105
|
+
onClick: E,
|
|
2086
2106
|
children: /* @__PURE__ */ t.jsx(Hr, { className: "size-full" })
|
|
2087
2107
|
}
|
|
2088
2108
|
)
|
|
2089
2109
|
] }),
|
|
2090
2110
|
/* @__PURE__ */ t.jsx(
|
|
2091
|
-
|
|
2111
|
+
q,
|
|
2092
2112
|
{
|
|
2093
2113
|
variant: "fill",
|
|
2094
|
-
color:
|
|
2114
|
+
color: N ? "primary" : "neutral",
|
|
2095
2115
|
shape: "icon",
|
|
2096
2116
|
onClick: C,
|
|
2097
|
-
children:
|
|
2117
|
+
children: N ? /* @__PURE__ */ t.jsx(Rr, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Sr, { className: "size-full" })
|
|
2098
2118
|
}
|
|
2099
2119
|
)
|
|
2100
2120
|
] })
|
|
@@ -2132,7 +2152,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2132
2152
|
{
|
|
2133
2153
|
className: O(
|
|
2134
2154
|
"space-y-1 px-2 py-1 small:p-3",
|
|
2135
|
-
|
|
2155
|
+
N && "large:p-4"
|
|
2136
2156
|
),
|
|
2137
2157
|
children: [
|
|
2138
2158
|
z.title && /* @__PURE__ */ t.jsx(
|
|
@@ -2140,7 +2160,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2140
2160
|
{
|
|
2141
2161
|
className: O(
|
|
2142
2162
|
"text-sm font-semibold small:text-base small:font-bold",
|
|
2143
|
-
|
|
2163
|
+
N && "large:text-lg"
|
|
2144
2164
|
),
|
|
2145
2165
|
children: z.title
|
|
2146
2166
|
}
|
|
@@ -2150,7 +2170,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2150
2170
|
{
|
|
2151
2171
|
className: O(
|
|
2152
2172
|
"text-xs text-foreground/65 small:text-sm",
|
|
2153
|
-
|
|
2173
|
+
N && "large:text-base"
|
|
2154
2174
|
),
|
|
2155
2175
|
children: z.text
|
|
2156
2176
|
}
|
|
@@ -2164,120 +2184,120 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2164
2184
|
}
|
|
2165
2185
|
),
|
|
2166
2186
|
(j || f) && /* @__PURE__ */ t.jsx(
|
|
2167
|
-
|
|
2187
|
+
yt,
|
|
2168
2188
|
{
|
|
2169
2189
|
className: O(H, ue("top-right")),
|
|
2170
2190
|
onClick: L
|
|
2171
2191
|
}
|
|
2172
2192
|
)
|
|
2173
2193
|
] });
|
|
2174
|
-
},
|
|
2194
|
+
}, Fr = ({ className: e = "" }) => {
|
|
2175
2195
|
const { infiniteCarrousel: r, isFullScreen: n } = J(), { items: o, aspectRatioStyle: a } = ne(), {
|
|
2176
2196
|
slidable: u,
|
|
2177
2197
|
carrouselItemIndex: l,
|
|
2178
2198
|
setCarrouselItemIndex: i,
|
|
2179
2199
|
itemIndexCommand: s,
|
|
2180
|
-
setItemIndexCommand:
|
|
2200
|
+
setItemIndexCommand: b,
|
|
2181
2201
|
specialCommand: c,
|
|
2182
2202
|
isRunningSpecialCommand: m,
|
|
2183
2203
|
finishSpecialCommand: g,
|
|
2184
2204
|
extendMode: _,
|
|
2185
2205
|
extendTransition: w
|
|
2186
|
-
} =
|
|
2206
|
+
} = K(), x = Y(null), N = M((h) => {
|
|
2187
2207
|
if (!x.current)
|
|
2188
2208
|
throw new Error(`[${h ?? "sliderOrThrow"}] slider.current is null`);
|
|
2189
2209
|
return x.current;
|
|
2190
|
-
}, []), C =
|
|
2210
|
+
}, []), C = Y(!1), z = Y(null), f = Y(null), p = Y(null), v = M(() => {
|
|
2191
2211
|
p.current && cancelAnimationFrame(p.current);
|
|
2192
2212
|
}, []), j = M(() => {
|
|
2193
|
-
const h =
|
|
2213
|
+
const h = N("computeClosestSnapIndex"), T = Array.from(h.children), d = h.scrollLeft, y = T.reduce(
|
|
2194
2214
|
(k, A, D) => {
|
|
2195
|
-
const
|
|
2196
|
-
return Math.abs(
|
|
2215
|
+
const $ = A.offsetLeft;
|
|
2216
|
+
return Math.abs($ - d) < Math.abs(T[k].offsetLeft - d) ? D : k;
|
|
2197
2217
|
},
|
|
2198
2218
|
0
|
|
2199
2219
|
);
|
|
2200
|
-
return c === "first_to_last" ? Xe(
|
|
2201
|
-
}, [c,
|
|
2220
|
+
return c === "first_to_last" ? Xe(y, o.length) : c === "last_to_first" ? Xe(y - 1, o.length) : y;
|
|
2221
|
+
}, [c, N, o.length]), S = M(
|
|
2202
2222
|
(h) => {
|
|
2203
|
-
const
|
|
2204
|
-
|
|
2223
|
+
const T = N("setStyleCursor");
|
|
2224
|
+
T.style.cursor = h;
|
|
2205
2225
|
},
|
|
2206
|
-
[
|
|
2226
|
+
[N]
|
|
2207
2227
|
), R = M(
|
|
2208
2228
|
(h) => {
|
|
2209
|
-
const
|
|
2210
|
-
h === "mandatory" ?
|
|
2229
|
+
const T = N("setStyleSnapState");
|
|
2230
|
+
h === "mandatory" ? T.style.scrollSnapType = "x mandatory" : T.style.scrollSnapType = "none";
|
|
2211
2231
|
},
|
|
2212
|
-
[
|
|
2213
|
-
),
|
|
2214
|
-
(h,
|
|
2232
|
+
[N]
|
|
2233
|
+
), V = M(
|
|
2234
|
+
(h, T, d) => {
|
|
2215
2235
|
v();
|
|
2216
|
-
const
|
|
2217
|
-
|
|
2236
|
+
const y = N("scrollToIndex"), k = Array.from(y.children), A = y.scrollLeft, D = k[h].offsetLeft, $ = (pe) => {
|
|
2237
|
+
y.scrollTo({
|
|
2218
2238
|
left: pe,
|
|
2219
2239
|
behavior: "instant"
|
|
2220
2240
|
});
|
|
2221
|
-
},
|
|
2222
|
-
|
|
2241
|
+
}, W = () => {
|
|
2242
|
+
$(D), R("mandatory"), d?.();
|
|
2223
2243
|
}, X = Math.abs(A - D);
|
|
2224
|
-
if (X < 1 ||
|
|
2225
|
-
|
|
2244
|
+
if (X < 1 || T === "instant") {
|
|
2245
|
+
W();
|
|
2226
2246
|
return;
|
|
2227
2247
|
}
|
|
2228
2248
|
const B = ae(X / 2.5, 300, 1e3), G = (/* @__PURE__ */ new Date()).getTime();
|
|
2229
2249
|
R("none");
|
|
2230
2250
|
const Q = () => {
|
|
2231
2251
|
const pe = () => {
|
|
2232
|
-
const
|
|
2233
|
-
if (
|
|
2234
|
-
|
|
2252
|
+
const ye = (/* @__PURE__ */ new Date()).getTime() - G;
|
|
2253
|
+
if (ye >= B) {
|
|
2254
|
+
W();
|
|
2235
2255
|
return;
|
|
2236
2256
|
}
|
|
2237
|
-
const Ie = Math.min(
|
|
2238
|
-
|
|
2257
|
+
const Ie = Math.min(ye / B, 1), ie = Lt(Ie), he = Ee(A, D, ie);
|
|
2258
|
+
$(he), Q();
|
|
2239
2259
|
};
|
|
2240
2260
|
p.current = requestAnimationFrame(pe);
|
|
2241
2261
|
};
|
|
2242
2262
|
Q();
|
|
2243
2263
|
},
|
|
2244
|
-
[v,
|
|
2245
|
-
), [
|
|
2246
|
-
|
|
2264
|
+
[v, N, R]
|
|
2265
|
+
), [E, L] = F(), I = !!E;
|
|
2266
|
+
Z(() => {
|
|
2247
2267
|
const h = () => {
|
|
2248
|
-
clearTimeout(
|
|
2249
|
-
const
|
|
2268
|
+
clearTimeout(E);
|
|
2269
|
+
const T = setTimeout(() => {
|
|
2250
2270
|
L(void 0);
|
|
2251
2271
|
}, pt);
|
|
2252
|
-
L(
|
|
2272
|
+
L(T);
|
|
2253
2273
|
};
|
|
2254
2274
|
return addEventListener("resize", h), document.addEventListener("fullscreenchange", h), () => {
|
|
2255
2275
|
removeEventListener("resize", h), document.removeEventListener("fullscreenchange", h);
|
|
2256
2276
|
};
|
|
2257
|
-
}, [
|
|
2277
|
+
}, [E]), Z(() => {
|
|
2258
2278
|
const h = j();
|
|
2259
|
-
Number.isNaN(h) || h !== l &&
|
|
2279
|
+
Number.isNaN(h) || h !== l && V(l, "instant");
|
|
2260
2280
|
}, [
|
|
2261
2281
|
l,
|
|
2262
|
-
|
|
2282
|
+
V,
|
|
2263
2283
|
j,
|
|
2264
2284
|
// - Run the effect when those values change
|
|
2265
2285
|
o,
|
|
2266
|
-
|
|
2286
|
+
E,
|
|
2267
2287
|
n,
|
|
2268
2288
|
_,
|
|
2269
2289
|
w
|
|
2270
|
-
]),
|
|
2290
|
+
]), Z(() => {
|
|
2271
2291
|
if (!u || m) {
|
|
2272
|
-
|
|
2292
|
+
S("auto");
|
|
2273
2293
|
return;
|
|
2274
2294
|
}
|
|
2275
2295
|
const h = x.current;
|
|
2276
2296
|
if (!h)
|
|
2277
2297
|
return;
|
|
2278
|
-
|
|
2279
|
-
const
|
|
2280
|
-
k.button === 0 && (k.preventDefault(), k.stopPropagation(), v(), C.current = !0, z.current = k.pageX - h.offsetLeft, f.current = h.scrollLeft,
|
|
2298
|
+
S("grab"), R("mandatory");
|
|
2299
|
+
const T = (k) => {
|
|
2300
|
+
k.button === 0 && (k.preventDefault(), k.stopPropagation(), v(), C.current = !0, z.current = k.pageX - h.offsetLeft, f.current = h.scrollLeft, S("grabbing"));
|
|
2281
2301
|
}, d = (k) => {
|
|
2282
2302
|
if (!C.current)
|
|
2283
2303
|
return;
|
|
@@ -2290,36 +2310,36 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2290
2310
|
throw new Error("[onMouseMove] scrollLeft is null");
|
|
2291
2311
|
h.scrollLeft = f.current - A;
|
|
2292
2312
|
});
|
|
2293
|
-
},
|
|
2313
|
+
}, y = () => {
|
|
2294
2314
|
if (!C.current)
|
|
2295
2315
|
return;
|
|
2296
|
-
C.current = !1,
|
|
2316
|
+
C.current = !1, S("grab");
|
|
2297
2317
|
const k = j();
|
|
2298
|
-
|
|
2318
|
+
V(k, "smooth");
|
|
2299
2319
|
};
|
|
2300
|
-
return h.addEventListener("mousedown",
|
|
2301
|
-
h.removeEventListener("mousedown",
|
|
2320
|
+
return h.addEventListener("mousedown", T), document.addEventListener("mousemove", d), document.addEventListener("mouseleave", y), document.addEventListener("mouseup", y), document.addEventListener("contextmenu", y), () => {
|
|
2321
|
+
h.removeEventListener("mousedown", T), document.removeEventListener("mousemove", d), document.removeEventListener("mouseleave", y), document.removeEventListener("mouseup", y), document.removeEventListener("contextmenu", y);
|
|
2302
2322
|
};
|
|
2303
2323
|
}, [
|
|
2304
2324
|
v,
|
|
2305
2325
|
j,
|
|
2306
2326
|
m,
|
|
2327
|
+
V,
|
|
2307
2328
|
S,
|
|
2308
|
-
T,
|
|
2309
2329
|
R,
|
|
2310
2330
|
u
|
|
2311
|
-
]),
|
|
2331
|
+
]), Z(() => {
|
|
2312
2332
|
if (w || I)
|
|
2313
2333
|
return;
|
|
2314
2334
|
const h = x.current;
|
|
2315
2335
|
if (!h)
|
|
2316
2336
|
return;
|
|
2317
|
-
const
|
|
2337
|
+
const T = () => {
|
|
2318
2338
|
const d = j();
|
|
2319
|
-
Number.isNaN(d) || (i(d), d === s &&
|
|
2339
|
+
Number.isNaN(d) || (i(d), d === s && b(null));
|
|
2320
2340
|
};
|
|
2321
|
-
return h.addEventListener("scroll",
|
|
2322
|
-
h.removeEventListener("scroll",
|
|
2341
|
+
return h.addEventListener("scroll", T), () => {
|
|
2342
|
+
h.removeEventListener("scroll", T);
|
|
2323
2343
|
};
|
|
2324
2344
|
}, [
|
|
2325
2345
|
j,
|
|
@@ -2329,23 +2349,23 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2329
2349
|
s,
|
|
2330
2350
|
o.length,
|
|
2331
2351
|
i,
|
|
2332
|
-
|
|
2333
|
-
]),
|
|
2352
|
+
b
|
|
2353
|
+
]), Z(() => {
|
|
2334
2354
|
if (s === null)
|
|
2335
2355
|
return;
|
|
2336
2356
|
const h = () => g();
|
|
2337
2357
|
switch (c) {
|
|
2338
2358
|
case "first_to_last":
|
|
2339
|
-
|
|
2359
|
+
V(o.length, "instant"), V(o.length - 1, "smooth", h);
|
|
2340
2360
|
break;
|
|
2341
2361
|
case "last_to_first":
|
|
2342
|
-
|
|
2362
|
+
V(0, "instant"), V(1, "smooth", h);
|
|
2343
2363
|
break;
|
|
2344
2364
|
case "instant":
|
|
2345
|
-
|
|
2365
|
+
V(s, "instant", h);
|
|
2346
2366
|
break;
|
|
2347
2367
|
default:
|
|
2348
|
-
|
|
2368
|
+
V(s, "smooth");
|
|
2349
2369
|
break;
|
|
2350
2370
|
}
|
|
2351
2371
|
}, [
|
|
@@ -2353,7 +2373,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2353
2373
|
g,
|
|
2354
2374
|
s,
|
|
2355
2375
|
o.length,
|
|
2356
|
-
|
|
2376
|
+
V
|
|
2357
2377
|
]);
|
|
2358
2378
|
const H = () => /* @__PURE__ */ t.jsx("div", { className: "h-full", style: a });
|
|
2359
2379
|
return /* @__PURE__ */ t.jsxs(
|
|
@@ -2372,10 +2392,10 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2372
2392
|
className: `flex size-full ${u ? "overflow-x-auto no-scrollbar *:snap-start *:snap-always" : "justify-center"}`,
|
|
2373
2393
|
children: [
|
|
2374
2394
|
c === "last_to_first" && /* @__PURE__ */ t.jsx(H, {}),
|
|
2375
|
-
o.map((h,
|
|
2376
|
-
const d = h.type === "360" ? h.images[0] : h.src,
|
|
2395
|
+
o.map((h, T) => {
|
|
2396
|
+
const d = h.type === "360" ? h.images[0] : h.src, y = T === l, k = T === 0, A = l === o.length - 1, D = T === o.length - 1, $ = l === 0, W = Math.abs(T - l) > 1 && // Not next to the current one
|
|
2377
2397
|
!(r && k && A) && // Not the last one when the first one is shown (only for infinite carrousel)
|
|
2378
|
-
!(r && D &&
|
|
2398
|
+
!(r && D && $), X = (() => {
|
|
2379
2399
|
if (c === "first_to_last" && k)
|
|
2380
2400
|
return {
|
|
2381
2401
|
transform: `translateX(${100 * o.length}%)`
|
|
@@ -2389,22 +2409,22 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2389
2409
|
"div",
|
|
2390
2410
|
{
|
|
2391
2411
|
className: O(
|
|
2392
|
-
"h-full bg-foreground/
|
|
2393
|
-
l ===
|
|
2412
|
+
"h-full bg-foreground/35",
|
|
2413
|
+
l === T && "z-1"
|
|
2394
2414
|
// Give high-ground to the shown item (to avoid 1px vertical line)
|
|
2395
2415
|
),
|
|
2396
2416
|
style: { ...a, ...X },
|
|
2397
2417
|
children: /* @__PURE__ */ t.jsx(
|
|
2398
2418
|
_r,
|
|
2399
2419
|
{
|
|
2400
|
-
index:
|
|
2420
|
+
index: T,
|
|
2401
2421
|
item: h,
|
|
2402
|
-
isShown:
|
|
2403
|
-
lazy:
|
|
2422
|
+
isShown: y,
|
|
2423
|
+
lazy: W
|
|
2404
2424
|
}
|
|
2405
2425
|
)
|
|
2406
2426
|
},
|
|
2407
|
-
`${
|
|
2427
|
+
`${T}_${d}`
|
|
2408
2428
|
);
|
|
2409
2429
|
}),
|
|
2410
2430
|
c === "first_to_last" && /* @__PURE__ */ t.jsx(H, {})
|
|
@@ -2415,7 +2435,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2415
2435
|
]
|
|
2416
2436
|
}
|
|
2417
2437
|
);
|
|
2418
|
-
},
|
|
2438
|
+
}, Yr = () => {
|
|
2419
2439
|
const { permanentGallery: e } = J(), { aspectRatioStyle: r } = ne(), {
|
|
2420
2440
|
prevItem: n,
|
|
2421
2441
|
nextItem: o,
|
|
@@ -2424,17 +2444,17 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2424
2444
|
extendMode: l,
|
|
2425
2445
|
disableExtendMode: i,
|
|
2426
2446
|
isZooming: s,
|
|
2427
|
-
resetZoom:
|
|
2447
|
+
resetZoom: b,
|
|
2428
2448
|
fakeFullScreen: c
|
|
2429
|
-
} =
|
|
2430
|
-
return
|
|
2449
|
+
} = K(), m = Y(null), g = Y(null), _ = Y(null);
|
|
2450
|
+
return Z(() => {
|
|
2431
2451
|
if (!l)
|
|
2432
2452
|
return;
|
|
2433
|
-
const w = m.current, x = g.current,
|
|
2434
|
-
if (!w || !x || !
|
|
2453
|
+
const w = m.current, x = g.current, N = _.current;
|
|
2454
|
+
if (!w || !x || !N)
|
|
2435
2455
|
return;
|
|
2436
2456
|
let C = !1;
|
|
2437
|
-
const z = (v) => [w, x,
|
|
2457
|
+
const z = (v) => [w, x, N].includes(v.target), f = (v) => {
|
|
2438
2458
|
C = z(v);
|
|
2439
2459
|
}, p = (v) => {
|
|
2440
2460
|
C && (z(v) && i(), C = !1);
|
|
@@ -2442,9 +2462,9 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2442
2462
|
return w.addEventListener("mousedown", f), w.addEventListener("mouseup", p), () => {
|
|
2443
2463
|
w.removeEventListener("mousedown", f), w.removeEventListener("mouseup", p);
|
|
2444
2464
|
};
|
|
2445
|
-
}, [i, l]),
|
|
2465
|
+
}, [i, l]), Z(() => {
|
|
2446
2466
|
const w = (x) => {
|
|
2447
|
-
x.key === "Escape" && (s ?
|
|
2467
|
+
x.key === "Escape" && (s ? b() : a ? u() : i());
|
|
2448
2468
|
};
|
|
2449
2469
|
return addEventListener("keydown", w), () => {
|
|
2450
2470
|
removeEventListener("keydown", w);
|
|
@@ -2456,7 +2476,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2456
2476
|
o,
|
|
2457
2477
|
n,
|
|
2458
2478
|
u,
|
|
2459
|
-
|
|
2479
|
+
b
|
|
2460
2480
|
]), /* @__PURE__ */ t.jsxs(
|
|
2461
2481
|
"div",
|
|
2462
2482
|
{
|
|
@@ -2480,15 +2500,15 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2480
2500
|
l && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
|
|
2481
2501
|
),
|
|
2482
2502
|
style: r,
|
|
2483
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2503
|
+
children: /* @__PURE__ */ t.jsx(Fr, { className: O(l && "h-full min-w-0") })
|
|
2484
2504
|
}
|
|
2485
2505
|
),
|
|
2486
|
-
e && /* @__PURE__ */ t.jsx(
|
|
2506
|
+
e && /* @__PURE__ */ t.jsx(Et, { className: O(l && "my-2 shrink-0 small:my-4") })
|
|
2487
2507
|
]
|
|
2488
2508
|
}
|
|
2489
2509
|
),
|
|
2490
2510
|
l && /* @__PURE__ */ t.jsx(
|
|
2491
|
-
|
|
2511
|
+
yt,
|
|
2492
2512
|
{
|
|
2493
2513
|
className: "absolute right-2 top-2 small:right-4 small:top-4",
|
|
2494
2514
|
onClick: i
|
|
@@ -2497,7 +2517,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2497
2517
|
]
|
|
2498
2518
|
}
|
|
2499
2519
|
);
|
|
2500
|
-
},
|
|
2520
|
+
}, $r = ({
|
|
2501
2521
|
compositionUrl: e
|
|
2502
2522
|
}) => {
|
|
2503
2523
|
const { emitEvent: r } = J(), {
|
|
@@ -2506,33 +2526,39 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2506
2526
|
isSuccess: a,
|
|
2507
2527
|
error: u
|
|
2508
2528
|
} = Gt(e);
|
|
2509
|
-
return
|
|
2529
|
+
return Z(() => {
|
|
2510
2530
|
u ? r(nt, u) : o === "fetching" ? r(tt, e) : a && r(rt, n);
|
|
2511
|
-
}, [n, e, r, u, a, o]), u ? /* @__PURE__ */ t.jsx(
|
|
2512
|
-
|
|
2513
|
-
|
|
2531
|
+
}, [n, e, r, u, a, o]), u ? /* @__PURE__ */ t.jsx(
|
|
2532
|
+
jt,
|
|
2533
|
+
{
|
|
2534
|
+
className: "aspect-square text-foreground/70",
|
|
2535
|
+
text: "Player could not be loaded"
|
|
2536
|
+
}
|
|
2537
|
+
) : a ? /* @__PURE__ */ t.jsx(qt, { composition: n, children: /* @__PURE__ */ t.jsx(Jt, { children: /* @__PURE__ */ t.jsx(Yr, {}) }) }) : /* @__PURE__ */ t.jsxs("div", { className: "flex aspect-square size-full flex-col items-center justify-center gap-y-4", children: [
|
|
2538
|
+
/* @__PURE__ */ t.jsx("div", { className: "animate-pulse text-xl", children: "Loading Player" }),
|
|
2539
|
+
/* @__PURE__ */ t.jsx(Ct, { color: "foreground" })
|
|
2514
2540
|
] });
|
|
2515
|
-
},
|
|
2541
|
+
}, Wr = ({
|
|
2516
2542
|
compositionUrl: e,
|
|
2517
2543
|
hideCategories: r = At,
|
|
2518
2544
|
infiniteCarrousel: n = Dt,
|
|
2519
|
-
permanentGallery: o =
|
|
2520
|
-
imageLoadStrategy: a =
|
|
2521
|
-
preventFullScreen: u =
|
|
2545
|
+
permanentGallery: o = Ft,
|
|
2546
|
+
imageLoadStrategy: a = Yt,
|
|
2547
|
+
preventFullScreen: u = $t,
|
|
2522
2548
|
eventPrefix: l = dt,
|
|
2523
|
-
reverse360: i =
|
|
2549
|
+
reverse360: i = Wt,
|
|
2524
2550
|
children: s,
|
|
2525
2551
|
// NOTE: use to customize the player, not to display the content
|
|
2526
|
-
...
|
|
2552
|
+
...b
|
|
2527
2553
|
}) => {
|
|
2528
|
-
const c =
|
|
2554
|
+
const c = Y(null), [m, g] = F(0.5), [_, w] = F(!1), x = M(
|
|
2529
2555
|
(z, f) => {
|
|
2530
2556
|
const p = l + z, v = new CustomEvent(p, { detail: f });
|
|
2531
2557
|
document.dispatchEvent(v);
|
|
2532
2558
|
},
|
|
2533
2559
|
[l]
|
|
2534
2560
|
);
|
|
2535
|
-
|
|
2561
|
+
Z(() => {
|
|
2536
2562
|
if (_) {
|
|
2537
2563
|
g(1);
|
|
2538
2564
|
return;
|
|
@@ -2546,7 +2572,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2546
2572
|
return f(), addEventListener("resize", f), () => {
|
|
2547
2573
|
removeEventListener("resize", f);
|
|
2548
2574
|
};
|
|
2549
|
-
}, [_]),
|
|
2575
|
+
}, [_]), Z(() => {
|
|
2550
2576
|
if (u)
|
|
2551
2577
|
return;
|
|
2552
2578
|
const z = c.current;
|
|
@@ -2556,14 +2582,14 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2556
2582
|
const { fullscreenElement: p } = document;
|
|
2557
2583
|
w(
|
|
2558
2584
|
p === z || // NOTE: For custom element, the web browser is making the whole custom element full-screen and not only the wrapper
|
|
2559
|
-
p?.localName ===
|
|
2585
|
+
p?.localName === Ze
|
|
2560
2586
|
);
|
|
2561
2587
|
};
|
|
2562
2588
|
return document.addEventListener("fullscreenchange", f), () => {
|
|
2563
2589
|
document.removeEventListener("fullscreenchange", f);
|
|
2564
2590
|
};
|
|
2565
2591
|
}, [u]);
|
|
2566
|
-
const
|
|
2592
|
+
const N = M(async () => {
|
|
2567
2593
|
const z = c.current;
|
|
2568
2594
|
if (!z)
|
|
2569
2595
|
throw new Error("Wrapper not found");
|
|
@@ -2580,9 +2606,9 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2580
2606
|
}
|
|
2581
2607
|
}, []);
|
|
2582
2608
|
return /* @__PURE__ */ t.jsx(
|
|
2583
|
-
|
|
2609
|
+
Kt,
|
|
2584
2610
|
{
|
|
2585
|
-
...
|
|
2611
|
+
...b,
|
|
2586
2612
|
reverse360: i,
|
|
2587
2613
|
imageLoadStrategy: a,
|
|
2588
2614
|
hideCategories: r,
|
|
@@ -2592,7 +2618,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2592
2618
|
emitEvent: x,
|
|
2593
2619
|
playerInViewportWidthRatio: m,
|
|
2594
2620
|
isFullScreen: _,
|
|
2595
|
-
requestFullscreen:
|
|
2621
|
+
requestFullscreen: N,
|
|
2596
2622
|
exitFullscreen: C,
|
|
2597
2623
|
children: /* @__PURE__ */ t.jsxs(ar, { children: [
|
|
2598
2624
|
/* @__PURE__ */ t.jsx(
|
|
@@ -2601,7 +2627,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2601
2627
|
id: "cc-webplayer-wrapper",
|
|
2602
2628
|
ref: c,
|
|
2603
2629
|
className: "select-none text-foreground",
|
|
2604
|
-
children: /* @__PURE__ */ t.jsx(
|
|
2630
|
+
children: /* @__PURE__ */ t.jsx($r, { compositionUrl: e })
|
|
2605
2631
|
}
|
|
2606
2632
|
),
|
|
2607
2633
|
s
|
|
@@ -2610,7 +2636,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2610
2636
|
);
|
|
2611
2637
|
}, Ur = ({ name: e, color: r, children: n }) => {
|
|
2612
2638
|
const { setIconConfig: o, resetIconConfig: a } = De();
|
|
2613
|
-
return
|
|
2639
|
+
return Z(() => {
|
|
2614
2640
|
if (!(!n && !r))
|
|
2615
2641
|
return o(e, {
|
|
2616
2642
|
Icon: n,
|
|
@@ -2619,7 +2645,7 @@ const Mr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", {
|
|
|
2619
2645
|
a(e);
|
|
2620
2646
|
};
|
|
2621
2647
|
}, [n, r, e, a, o]), null;
|
|
2622
|
-
}, Xr = (e) => yt() ? /* @__PURE__ */ t.jsx(Ur, { ...e }) : /* @__PURE__ */ t.jsx("slot", {}), Br = '*,: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}.aspect-video{aspect-ratio:16 / 9}.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-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 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-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-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-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\\: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}}';
|
|
2648
|
+
}, Xr = (e) => bt() ? /* @__PURE__ */ t.jsx(Ur, { ...e }) : /* @__PURE__ */ t.jsx("slot", {}), Br = '*,: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}}';
|
|
2623
2649
|
var zt = { exports: {} }, we = {};
|
|
2624
2650
|
/**
|
|
2625
2651
|
* @license React
|
|
@@ -2634,10 +2660,10 @@ var Je;
|
|
|
2634
2660
|
function Gr() {
|
|
2635
2661
|
if (Je) return we;
|
|
2636
2662
|
Je = 1;
|
|
2637
|
-
var e =
|
|
2638
|
-
function l(i, s,
|
|
2663
|
+
var e = be, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
2664
|
+
function l(i, s, b) {
|
|
2639
2665
|
var c, m = {}, g = null, _ = null;
|
|
2640
|
-
|
|
2666
|
+
b !== void 0 && (g = "" + b), s.key !== void 0 && (g = "" + s.key), s.ref !== void 0 && (_ = s.ref);
|
|
2641
2667
|
for (c in s) o.call(s, c) && !u.hasOwnProperty(c) && (m[c] = s[c]);
|
|
2642
2668
|
if (i && i.defaultProps) for (c in s = i.defaultProps, s) m[c] === void 0 && (m[c] = s[c]);
|
|
2643
2669
|
return { $$typeof: r, type: i, key: g, ref: _, props: m, _owner: a.current };
|
|
@@ -2645,7 +2671,7 @@ function Gr() {
|
|
|
2645
2671
|
return we.Fragment = n, we.jsx = l, we.jsxs = l, we;
|
|
2646
2672
|
}
|
|
2647
2673
|
zt.exports = Gr();
|
|
2648
|
-
var je = zt.exports,
|
|
2674
|
+
var je = zt.exports, qr = Object.defineProperty, Kr = (e, r, n) => r in e ? qr(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Ce = (e, r, n) => (Kr(e, typeof r != "symbol" ? r + "" : r, n), n);
|
|
2649
2675
|
const Jr = {
|
|
2650
2676
|
stringify: (e) => e,
|
|
2651
2677
|
parse: (e) => e
|
|
@@ -2682,15 +2708,15 @@ function nn(e) {
|
|
|
2682
2708
|
(r, n, o) => `${n}-${o.toLowerCase()}`
|
|
2683
2709
|
);
|
|
2684
2710
|
}
|
|
2685
|
-
const ke = Symbol.for("r2wc.render"),
|
|
2711
|
+
const ke = Symbol.for("r2wc.render"), Ne = Symbol.for("r2wc.connected"), se = Symbol.for("r2wc.context"), te = Symbol.for("r2wc.props");
|
|
2686
2712
|
function on(e, r, n) {
|
|
2687
2713
|
var o, a, u;
|
|
2688
2714
|
r.props || (r.props = e.propTypes ? Object.keys(e.propTypes) : []);
|
|
2689
|
-
const l = Array.isArray(r.props) ? r.props.slice() : Object.keys(r.props), i = {}, s = {},
|
|
2715
|
+
const l = Array.isArray(r.props) ? r.props.slice() : Object.keys(r.props), i = {}, s = {}, b = {};
|
|
2690
2716
|
for (const m of l) {
|
|
2691
2717
|
i[m] = Array.isArray(r.props) ? "string" : r.props[m];
|
|
2692
2718
|
const g = nn(m);
|
|
2693
|
-
s[m] = g,
|
|
2719
|
+
s[m] = g, b[g] = m;
|
|
2694
2720
|
}
|
|
2695
2721
|
class c extends HTMLElement {
|
|
2696
2722
|
constructor() {
|
|
@@ -2698,25 +2724,25 @@ function on(e, r, n) {
|
|
|
2698
2724
|
mode: r.shadow
|
|
2699
2725
|
}) : this.container = this, this[te].container = this.container;
|
|
2700
2726
|
for (const g of l) {
|
|
2701
|
-
const _ = s[g], w = this.getAttribute(_), x = i[g],
|
|
2702
|
-
|
|
2727
|
+
const _ = s[g], w = this.getAttribute(_), x = i[g], N = x ? Re[x] : null;
|
|
2728
|
+
N != null && N.parse && w && (this[te][g] = N.parse(w, _, this));
|
|
2703
2729
|
}
|
|
2704
2730
|
}
|
|
2705
2731
|
static get observedAttributes() {
|
|
2706
|
-
return Object.keys(
|
|
2732
|
+
return Object.keys(b);
|
|
2707
2733
|
}
|
|
2708
2734
|
connectedCallback() {
|
|
2709
|
-
this[
|
|
2735
|
+
this[Ne] = !0, this[ke]();
|
|
2710
2736
|
}
|
|
2711
2737
|
disconnectedCallback() {
|
|
2712
|
-
this[
|
|
2738
|
+
this[Ne] = !1, this[se] && n.unmount(this[se]), delete this[se];
|
|
2713
2739
|
}
|
|
2714
2740
|
attributeChangedCallback(g, _, w) {
|
|
2715
|
-
const x =
|
|
2741
|
+
const x = b[g], N = i[x], C = N ? Re[N] : null;
|
|
2716
2742
|
x in i && C != null && C.parse && w && (this[te][x] = C.parse(w, g, this), this[ke]());
|
|
2717
2743
|
}
|
|
2718
|
-
[(o =
|
|
2719
|
-
this[
|
|
2744
|
+
[(o = Ne, a = se, u = te, ke)]() {
|
|
2745
|
+
this[Ne] && (this[se] ? n.update(this[se], this[te]) : this[se] = n.mount(
|
|
2720
2746
|
this.container,
|
|
2721
2747
|
e,
|
|
2722
2748
|
this[te]
|
|
@@ -2735,8 +2761,8 @@ function on(e, r, n) {
|
|
|
2735
2761
|
this[te][m] = w;
|
|
2736
2762
|
const x = _ ? Re[_] : null;
|
|
2737
2763
|
if (x != null && x.stringify) {
|
|
2738
|
-
const
|
|
2739
|
-
this.getAttribute(g) !==
|
|
2764
|
+
const N = x.stringify(w, g, this);
|
|
2765
|
+
this.getAttribute(g) !== N && this.setAttribute(g, N);
|
|
2740
2766
|
} else
|
|
2741
2767
|
this[ke]();
|
|
2742
2768
|
}
|
|
@@ -2745,14 +2771,14 @@ function on(e, r, n) {
|
|
|
2745
2771
|
return c;
|
|
2746
2772
|
}
|
|
2747
2773
|
function sn(e, r, n) {
|
|
2748
|
-
const o = Pt(e), a =
|
|
2774
|
+
const o = Pt(e), a = be.createElement(r, n);
|
|
2749
2775
|
return o.render(a), {
|
|
2750
2776
|
root: o,
|
|
2751
2777
|
ReactComponent: r
|
|
2752
2778
|
};
|
|
2753
2779
|
}
|
|
2754
2780
|
function an({ root: e, ReactComponent: r }, n) {
|
|
2755
|
-
const o =
|
|
2781
|
+
const o = be.createElement(r, n);
|
|
2756
2782
|
e.render(o);
|
|
2757
2783
|
}
|
|
2758
2784
|
function ln({ root: e }) {
|
|
@@ -2775,7 +2801,7 @@ function dn(e) {
|
|
|
2775
2801
|
}
|
|
2776
2802
|
const un = (e) => /* @__PURE__ */ je.jsxs(je.Fragment, { children: [
|
|
2777
2803
|
/* @__PURE__ */ je.jsx("style", { children: Br }),
|
|
2778
|
-
/* @__PURE__ */ je.jsx(
|
|
2804
|
+
/* @__PURE__ */ je.jsx(Wr, { ...e })
|
|
2779
2805
|
] }), mn = It(un, {
|
|
2780
2806
|
shadow: "open",
|
|
2781
2807
|
props: {
|
|
@@ -2798,16 +2824,16 @@ const un = (e) => /* @__PURE__ */ je.jsxs(je.Fragment, { children: [
|
|
|
2798
2824
|
}
|
|
2799
2825
|
});
|
|
2800
2826
|
function gn() {
|
|
2801
|
-
return !!customElements.get(
|
|
2827
|
+
return !!customElements.get(Ze) && !!customElements.get(Ae);
|
|
2802
2828
|
}
|
|
2803
2829
|
function fn() {
|
|
2804
|
-
customElements.define(
|
|
2830
|
+
customElements.define(Ze, mn), customElements.define(Ae, hn);
|
|
2805
2831
|
}
|
|
2806
2832
|
function Mt() {
|
|
2807
2833
|
gn() || fn();
|
|
2808
2834
|
}
|
|
2809
2835
|
Mt();
|
|
2810
|
-
const
|
|
2836
|
+
const bn = ({
|
|
2811
2837
|
onCompositionLoading: e,
|
|
2812
2838
|
onCompositionLoaded: r,
|
|
2813
2839
|
onCompositionLoadError: n,
|
|
@@ -2817,11 +2843,11 @@ const yn = ({
|
|
|
2817
2843
|
onHotspotsOff: l,
|
|
2818
2844
|
onGalleryOpen: i,
|
|
2819
2845
|
onGalleryClose: s,
|
|
2820
|
-
...
|
|
2846
|
+
...b
|
|
2821
2847
|
}) => {
|
|
2822
|
-
const c = pn(
|
|
2823
|
-
return
|
|
2824
|
-
const m =
|
|
2848
|
+
const c = pn(b);
|
|
2849
|
+
return Z(() => {
|
|
2850
|
+
const m = b.eventPrefix ?? dt, g = (x) => `${m}${x}`, _ = {
|
|
2825
2851
|
[tt]: e,
|
|
2826
2852
|
[rt]: r,
|
|
2827
2853
|
[nt]: n,
|
|
@@ -2832,18 +2858,18 @@ const yn = ({
|
|
|
2832
2858
|
[lt]: i,
|
|
2833
2859
|
[ct]: s
|
|
2834
2860
|
}, w = /* @__PURE__ */ new Map();
|
|
2835
|
-
return Object.entries(_).forEach(([x,
|
|
2836
|
-
if (!
|
|
2861
|
+
return Object.entries(_).forEach(([x, N]) => {
|
|
2862
|
+
if (!N)
|
|
2837
2863
|
return;
|
|
2838
|
-
const C = g(x), z = (f) =>
|
|
2864
|
+
const C = g(x), z = (f) => N(f.detail);
|
|
2839
2865
|
w.set(C, z), document.addEventListener(C, z);
|
|
2840
2866
|
}), () => {
|
|
2841
|
-
w.forEach((x,
|
|
2842
|
-
document.removeEventListener(
|
|
2867
|
+
w.forEach((x, N) => {
|
|
2868
|
+
document.removeEventListener(N, x);
|
|
2843
2869
|
});
|
|
2844
2870
|
};
|
|
2845
2871
|
}, [
|
|
2846
|
-
|
|
2872
|
+
b.eventPrefix,
|
|
2847
2873
|
e,
|
|
2848
2874
|
r,
|
|
2849
2875
|
n,
|
|
@@ -2856,7 +2882,7 @@ const yn = ({
|
|
|
2856
2882
|
]), /* @__PURE__ */ et.jsx("cc-webplayer", { ...c });
|
|
2857
2883
|
};
|
|
2858
2884
|
Mt();
|
|
2859
|
-
const
|
|
2885
|
+
const yn = ({ name: e, color: r }) => /* @__PURE__ */ et.jsx("cc-webplayer-icon", { name: e, color: r });
|
|
2860
2886
|
export {
|
|
2861
2887
|
dt as DEFAULT_EVENT_PREFIX,
|
|
2862
2888
|
rt as EVENT_COMPOSITION_LOADED,
|
|
@@ -2869,8 +2895,8 @@ export {
|
|
|
2869
2895
|
it as EVENT_HOTSPOTS_OFF,
|
|
2870
2896
|
at as EVENT_HOTSPOTS_ON,
|
|
2871
2897
|
Ae as WEB_PLAYER_ICON_WC_TAG,
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2898
|
+
Ze as WEB_PLAYER_WC_TAG,
|
|
2899
|
+
bn as WebPlayer,
|
|
2900
|
+
yn as WebPlayerIcon,
|
|
2875
2901
|
wn as generateCompositionUrl
|
|
2876
2902
|
};
|