@car-cutter/react-webplayer 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +54 -3
- package/dist/index.js +923 -914
- package/dist/index.umd.cjs +4 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import ye, { createContext as Ie, useContext as Me, useRef as $, useState as
|
|
2
|
-
import { createRoot as
|
|
3
|
-
var tt = { exports: {} },
|
|
1
|
+
import ye, { createContext as Ie, useContext as Me, useRef as $, useState as D, useCallback as M, useEffect as Z, useMemo as te, Fragment as Ot } from "react";
|
|
2
|
+
import { createRoot as Pt } from "react-dom/client";
|
|
3
|
+
var tt = { exports: {} }, xe = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -11,27 +11,27 @@ var tt = { exports: {} }, ge = {};
|
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
13
|
var Xe;
|
|
14
|
-
function
|
|
15
|
-
if (Xe) return
|
|
14
|
+
function At() {
|
|
15
|
+
if (Xe) return xe;
|
|
16
16
|
Xe = 1;
|
|
17
17
|
var e = ye, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function c(l,
|
|
19
|
-
var d, m = {}, f = null,
|
|
20
|
-
|
|
21
|
-
for (d in
|
|
22
|
-
if (l && l.defaultProps) for (d in
|
|
23
|
-
return { $$typeof: r, type: l, key: f, ref:
|
|
18
|
+
function c(l, a, w) {
|
|
19
|
+
var d, m = {}, f = null, z = null;
|
|
20
|
+
w !== void 0 && (f = "" + w), a.key !== void 0 && (f = "" + a.key), a.ref !== void 0 && (z = a.ref);
|
|
21
|
+
for (d in a) o.call(a, d) && !u.hasOwnProperty(d) && (m[d] = a[d]);
|
|
22
|
+
if (l && l.defaultProps) for (d in a = l.defaultProps, a) m[d] === void 0 && (m[d] = a[d]);
|
|
23
|
+
return { $$typeof: r, type: l, key: f, ref: z, props: m, _owner: i.current };
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return xe.Fragment = n, xe.jsx = c, xe.jsxs = c, xe;
|
|
26
26
|
}
|
|
27
|
-
tt.exports =
|
|
27
|
+
tt.exports = At();
|
|
28
28
|
var rt = tt.exports;
|
|
29
|
-
const
|
|
29
|
+
const Fe = "cc-webplayer", De = "cc-webplayer-icon", nt = "composition-loading", ot = "composition-loaded", st = "composition-load-error", at = "extend-mode-on", it = "extend-mode-off", lt = "hotspots-on", ct = "hotspots-off", dt = "gallery-open", ut = "gallery-close", Zt = !1, Ft = !1, Dt = !1, $t = "quality", Yt = !1, mt = "cc-webplayer:", Wt = !1;
|
|
30
30
|
function Ut(e, r) {
|
|
31
31
|
const n = e.split("/"), o = n.pop();
|
|
32
32
|
return [n.join("/"), r, o].join("/");
|
|
33
33
|
}
|
|
34
|
-
var pt = { exports: {} },
|
|
34
|
+
var pt = { exports: {} }, ve = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.production.min.js
|
|
@@ -43,17 +43,17 @@ var pt = { exports: {} }, xe = {};
|
|
|
43
43
|
*/
|
|
44
44
|
var Be;
|
|
45
45
|
function Xt() {
|
|
46
|
-
if (Be) return
|
|
46
|
+
if (Be) return ve;
|
|
47
47
|
Be = 1;
|
|
48
48
|
var e = ye, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
49
|
-
function c(l,
|
|
50
|
-
var d, m = {}, f = null,
|
|
51
|
-
|
|
52
|
-
for (d in
|
|
53
|
-
if (l && l.defaultProps) for (d in
|
|
54
|
-
return { $$typeof: r, type: l, key: f, ref:
|
|
49
|
+
function c(l, a, w) {
|
|
50
|
+
var d, m = {}, f = null, z = null;
|
|
51
|
+
w !== void 0 && (f = "" + w), a.key !== void 0 && (f = "" + a.key), a.ref !== void 0 && (z = a.ref);
|
|
52
|
+
for (d in a) o.call(a, d) && !u.hasOwnProperty(d) && (m[d] = a[d]);
|
|
53
|
+
if (l && l.defaultProps) for (d in a = l.defaultProps, a) m[d] === void 0 && (m[d] = a[d]);
|
|
54
|
+
return { $$typeof: r, type: l, key: f, ref: z, props: m, _owner: i.current };
|
|
55
55
|
}
|
|
56
|
-
return
|
|
56
|
+
return ve.Fragment = n, ve.jsx = c, ve.jsxs = c, ve;
|
|
57
57
|
}
|
|
58
58
|
pt.exports = Xt();
|
|
59
59
|
var t = pt.exports;
|
|
@@ -63,13 +63,13 @@ async function Bt(e) {
|
|
|
63
63
|
throw new Error(`Failed to fetch composition: ${r.statusText}`);
|
|
64
64
|
return await r.json();
|
|
65
65
|
}
|
|
66
|
-
const
|
|
67
|
-
const [r, n] =
|
|
66
|
+
const Pe = /* @__PURE__ */ new Map(), Gt = (e) => {
|
|
67
|
+
const [r, n] = D({
|
|
68
68
|
status: "pending",
|
|
69
69
|
isSuccess: !1
|
|
70
70
|
});
|
|
71
|
-
return
|
|
72
|
-
const o = (u) => n({ status: "success", data: u, isSuccess: !0 }), i =
|
|
71
|
+
return Z(() => {
|
|
72
|
+
const o = (u) => n({ status: "success", data: u, isSuccess: !0 }), i = Pe.get(e);
|
|
73
73
|
if (i && !(i instanceof Promise)) {
|
|
74
74
|
o(i);
|
|
75
75
|
return;
|
|
@@ -84,7 +84,7 @@ const Fe = /* @__PURE__ */ new Map(), Gt = (e) => {
|
|
|
84
84
|
u = await i;
|
|
85
85
|
else {
|
|
86
86
|
const c = Bt(e);
|
|
87
|
-
|
|
87
|
+
Pe.set(e, c), u = await c, Pe.set(e, u);
|
|
88
88
|
}
|
|
89
89
|
o(u);
|
|
90
90
|
} catch (u) {
|
|
@@ -121,11 +121,11 @@ const Fe = /* @__PURE__ */ new Map(), Gt = (e) => {
|
|
|
121
121
|
children: r
|
|
122
122
|
}
|
|
123
123
|
);
|
|
124
|
-
}, ft = 500,
|
|
124
|
+
}, ft = 500, Ze = 0.75, ze = 1 + Ze * 2;
|
|
125
125
|
function se(e, r, n) {
|
|
126
126
|
return Math.min(Math.max(e, r), n);
|
|
127
127
|
}
|
|
128
|
-
const
|
|
128
|
+
const _e = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Ie(null), J = () => {
|
|
129
129
|
const e = Me(gt);
|
|
130
130
|
if (!e)
|
|
131
131
|
throw new Error(
|
|
@@ -149,110 +149,110 @@ const ze = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Ie
|
|
|
149
149
|
isFullScreen: i,
|
|
150
150
|
requestFullscreen: u,
|
|
151
151
|
exitFullscreen: c
|
|
152
|
-
} = J(), { categories: l, items:
|
|
153
|
-
(
|
|
152
|
+
} = J(), { categories: l, items: a } = re(), [w, d] = D(a.map(() => null)), m = M(
|
|
153
|
+
(P, Q) => {
|
|
154
154
|
d(
|
|
155
|
-
(de) => de.map((
|
|
155
|
+
(de) => de.map((fe, ge) => ge === P ? Q : fe)
|
|
156
156
|
);
|
|
157
157
|
},
|
|
158
158
|
[]
|
|
159
|
-
), [f,
|
|
159
|
+
), [f, z] = D(0), [v, g] = D(null), I = v ?? f, x = a[I], T = w[I], [b, p] = D(
|
|
160
160
|
null
|
|
161
|
-
),
|
|
162
|
-
if (
|
|
161
|
+
), h = !!b, k = M(() => p(null), []), L = M(() => {
|
|
162
|
+
if (h || v !== null)
|
|
163
163
|
return;
|
|
164
|
-
const
|
|
165
|
-
|
|
164
|
+
const P = f - 1;
|
|
165
|
+
P >= 0 ? g(P) : r && (p("first_to_last"), g(a.length - 1));
|
|
166
166
|
}, [
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
h,
|
|
168
|
+
v,
|
|
169
169
|
f,
|
|
170
170
|
r,
|
|
171
|
-
|
|
172
|
-
]),
|
|
173
|
-
if (
|
|
171
|
+
a.length
|
|
172
|
+
]), R = M(() => {
|
|
173
|
+
if (h || v !== null)
|
|
174
174
|
return;
|
|
175
|
-
const
|
|
176
|
-
|
|
175
|
+
const P = f + 1;
|
|
176
|
+
P < a.length ? g(P) : r && (p("last_to_first"), g(0));
|
|
177
177
|
}, [
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
h,
|
|
179
|
+
v,
|
|
180
180
|
f,
|
|
181
|
-
|
|
181
|
+
a.length,
|
|
182
182
|
r
|
|
183
|
-
]),
|
|
184
|
-
(
|
|
185
|
-
const Q = Math.min(f,
|
|
186
|
-
|
|
183
|
+
]), V = M(
|
|
184
|
+
(P) => {
|
|
185
|
+
const Q = Math.min(f, P), de = Math.max(f, P);
|
|
186
|
+
w.slice(Q, de + 1).filter((fe) => fe === null).length > 2 && p("instant"), g(P);
|
|
187
187
|
},
|
|
188
|
-
[f,
|
|
189
|
-
),
|
|
190
|
-
for (const
|
|
191
|
-
if (
|
|
192
|
-
return
|
|
188
|
+
[f, w]
|
|
189
|
+
), y = te(() => {
|
|
190
|
+
for (const P of l)
|
|
191
|
+
if (P.items.includes(x))
|
|
192
|
+
return P.id;
|
|
193
193
|
throw new Error("Current item not found in any category");
|
|
194
|
-
}, [l,
|
|
195
|
-
(
|
|
194
|
+
}, [l, x]), E = M(
|
|
195
|
+
(P) => {
|
|
196
196
|
var Q;
|
|
197
|
-
const de = (Q = l.find(({ id:
|
|
197
|
+
const de = (Q = l.find(({ id: ge }) => ge === P)) == null ? void 0 : Q.items[0];
|
|
198
198
|
if (de === void 0)
|
|
199
199
|
throw new Error("Failed to find target category");
|
|
200
|
-
const
|
|
201
|
-
|
|
200
|
+
const fe = a.findIndex((ge) => ge === de);
|
|
201
|
+
V(fe);
|
|
202
202
|
},
|
|
203
|
-
[l,
|
|
204
|
-
),
|
|
205
|
-
var
|
|
206
|
-
switch (
|
|
203
|
+
[l, a, V]
|
|
204
|
+
), _ = te(() => {
|
|
205
|
+
var P;
|
|
206
|
+
switch (x.type) {
|
|
207
207
|
case "image":
|
|
208
|
-
return !!((
|
|
208
|
+
return !!((P = x.hotspots) != null && P.length);
|
|
209
209
|
case "360":
|
|
210
|
-
return
|
|
210
|
+
return T === "running";
|
|
211
211
|
case "video":
|
|
212
212
|
return !1;
|
|
213
213
|
}
|
|
214
|
-
}, [
|
|
215
|
-
const
|
|
216
|
-
|
|
217
|
-
}, [o,
|
|
218
|
-
switch (
|
|
214
|
+
}, [x, T]), [S, O] = D(!0), C = M(() => {
|
|
215
|
+
const P = !S;
|
|
216
|
+
O(P), o(P ? lt : ct);
|
|
217
|
+
}, [o, S]), s = te(() => {
|
|
218
|
+
switch (x.type) {
|
|
219
219
|
case "image":
|
|
220
220
|
case "360":
|
|
221
221
|
return !0;
|
|
222
222
|
case "video":
|
|
223
|
-
return
|
|
223
|
+
return T !== "running";
|
|
224
224
|
}
|
|
225
|
-
}, [
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
}, [o,
|
|
229
|
-
switch (
|
|
225
|
+
}, [x, T]), [j, N] = D(!1), H = M(() => {
|
|
226
|
+
const P = !j;
|
|
227
|
+
N(P), o(P ? dt : ut);
|
|
228
|
+
}, [o, j]), [F, Y] = D(null), W = M(() => Y(null), []), G = !!F, X = te(() => {
|
|
229
|
+
switch (x.type) {
|
|
230
230
|
case "image":
|
|
231
231
|
return !0;
|
|
232
232
|
case "360":
|
|
233
|
-
return
|
|
233
|
+
return T === "running";
|
|
234
234
|
case "video":
|
|
235
235
|
return !1;
|
|
236
236
|
}
|
|
237
|
-
}, [
|
|
238
|
-
ne((Q) => se(Q +
|
|
239
|
-
}, []),
|
|
240
|
-
|
|
241
|
-
}, [
|
|
242
|
-
async (
|
|
243
|
-
Ve(), Rt(
|
|
237
|
+
}, [x.type, T]), [B, ne] = D(1), je = B !== 1, pe = B < ze, ke = B > 1, ae = M((P) => {
|
|
238
|
+
ne((Q) => se(Q + P, 1, ze));
|
|
239
|
+
}, []), he = M(() => ne(1), []), Te = M(() => ae(Ze), [ae]), St = M(() => ae(-Ze), [ae]), Ve = M(() => {
|
|
240
|
+
he(), W();
|
|
241
|
+
}, [he, W]), [ie, Rt] = D(!1), [Se, We] = D(), [Re, Ue] = D(!1), le = M(
|
|
242
|
+
async (P) => {
|
|
243
|
+
Ve(), Rt(P), o(P ? at : it);
|
|
244
244
|
},
|
|
245
245
|
[o, Ve]
|
|
246
246
|
), ce = M(() => {
|
|
247
247
|
clearTimeout(Se);
|
|
248
|
-
const
|
|
248
|
+
const P = setTimeout(() => {
|
|
249
249
|
We(void 0);
|
|
250
250
|
}, ft);
|
|
251
|
-
We(
|
|
251
|
+
We(P);
|
|
252
252
|
}, [Se]), He = M(async () => {
|
|
253
253
|
if (ce(), !n) {
|
|
254
|
-
const
|
|
255
|
-
if (Ue(!
|
|
254
|
+
const P = await u();
|
|
255
|
+
if (Ue(!P), P)
|
|
256
256
|
return;
|
|
257
257
|
}
|
|
258
258
|
le(!0);
|
|
@@ -271,7 +271,7 @@ const ze = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Ie
|
|
|
271
271
|
]), Ht = M(() => {
|
|
272
272
|
ie ? Oe() : He();
|
|
273
273
|
}, [Oe, He, ie]);
|
|
274
|
-
return
|
|
274
|
+
return Z(() => {
|
|
275
275
|
n || Re && ie || i !== ie && (ce(), le(i));
|
|
276
276
|
}, [
|
|
277
277
|
n,
|
|
@@ -285,27 +285,27 @@ const ze = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Ie
|
|
|
285
285
|
{
|
|
286
286
|
value: {
|
|
287
287
|
setItemInteraction: m,
|
|
288
|
-
slidable:
|
|
288
|
+
slidable: a.length > 1,
|
|
289
289
|
carrouselItemIndex: f,
|
|
290
|
-
setCarrouselItemIndex:
|
|
291
|
-
itemIndexCommand:
|
|
292
|
-
setItemIndexCommand:
|
|
293
|
-
masterItemIndex:
|
|
294
|
-
specialCommand:
|
|
295
|
-
isRunningSpecialCommand:
|
|
296
|
-
finishSpecialCommand:
|
|
297
|
-
prevItem:
|
|
298
|
-
nextItem:
|
|
299
|
-
scrollToItemIndex:
|
|
300
|
-
displayedCategoryId:
|
|
301
|
-
changeCategory:
|
|
302
|
-
enableHotspotsControl:
|
|
303
|
-
showHotspots:
|
|
304
|
-
toggleHotspots:
|
|
305
|
-
showGalleryControls:
|
|
306
|
-
showGallery:
|
|
290
|
+
setCarrouselItemIndex: z,
|
|
291
|
+
itemIndexCommand: v,
|
|
292
|
+
setItemIndexCommand: g,
|
|
293
|
+
masterItemIndex: I,
|
|
294
|
+
specialCommand: b,
|
|
295
|
+
isRunningSpecialCommand: h,
|
|
296
|
+
finishSpecialCommand: k,
|
|
297
|
+
prevItem: L,
|
|
298
|
+
nextItem: R,
|
|
299
|
+
scrollToItemIndex: V,
|
|
300
|
+
displayedCategoryId: y,
|
|
301
|
+
changeCategory: E,
|
|
302
|
+
enableHotspotsControl: _,
|
|
303
|
+
showHotspots: S,
|
|
304
|
+
toggleHotspots: C,
|
|
305
|
+
showGalleryControls: s,
|
|
306
|
+
showGallery: j,
|
|
307
307
|
toggleGallery: H,
|
|
308
|
-
shownDetails:
|
|
308
|
+
shownDetails: F,
|
|
309
309
|
isShowingDetails: G,
|
|
310
310
|
setShownDetails: Y,
|
|
311
311
|
resetShownDetails: W,
|
|
@@ -313,8 +313,8 @@ const ze = (e, r, n) => e + (r - e) * n, Ge = (e, r) => (e % r + r) % r, gt = Ie
|
|
|
313
313
|
zoom: B,
|
|
314
314
|
isZooming: je,
|
|
315
315
|
setZoom: ne,
|
|
316
|
-
resetZoom:
|
|
317
|
-
canZoomIn:
|
|
316
|
+
resetZoom: he,
|
|
317
|
+
canZoomIn: pe,
|
|
318
318
|
zoomIn: Te,
|
|
319
319
|
canZoomOut: ke,
|
|
320
320
|
zoomOut: St,
|
|
@@ -363,7 +363,7 @@ function nr(e) {
|
|
|
363
363
|
throw new Error(`Invalid position: ${e}`);
|
|
364
364
|
return tr(e) ? [e, void 0] : er(e) ? [void 0, e] : e.split("-");
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function A(...e) {
|
|
367
367
|
return e.filter((r) => !!r).map((r) => r.trim()).join(" ");
|
|
368
368
|
}
|
|
369
369
|
function or(e) {
|
|
@@ -409,32 +409,32 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
409
409
|
);
|
|
410
410
|
return e;
|
|
411
411
|
}, ar = ({ children: e }) => {
|
|
412
|
-
const [r, n] =
|
|
412
|
+
const [r, n] = D(
|
|
413
413
|
/* @__PURE__ */ new Map()
|
|
414
414
|
), o = M(
|
|
415
415
|
(c) => {
|
|
416
416
|
const l = r.get(c);
|
|
417
417
|
if (l)
|
|
418
418
|
return l;
|
|
419
|
-
const
|
|
419
|
+
const a = document.querySelector(
|
|
420
420
|
`${De}[name="${c}"]`
|
|
421
421
|
);
|
|
422
|
-
if (!
|
|
422
|
+
if (!a)
|
|
423
423
|
return;
|
|
424
|
-
const
|
|
424
|
+
const w = a.getAttribute("color") ?? void 0, d = a.innerHTML, m = d ? /* @__PURE__ */ t.jsx(
|
|
425
425
|
"div",
|
|
426
426
|
{
|
|
427
427
|
className: "size-full",
|
|
428
428
|
dangerouslySetInnerHTML: { __html: d }
|
|
429
429
|
}
|
|
430
430
|
) : void 0;
|
|
431
|
-
if (!(!
|
|
432
|
-
return { Icon: m, color:
|
|
431
|
+
if (!(!w && !m))
|
|
432
|
+
return { Icon: m, color: w };
|
|
433
433
|
},
|
|
434
434
|
[r]
|
|
435
435
|
), i = M(
|
|
436
436
|
(c, l) => {
|
|
437
|
-
n((
|
|
437
|
+
n((a) => new Map(a.set(c, l)));
|
|
438
438
|
},
|
|
439
439
|
[]
|
|
440
440
|
), u = M((c) => {
|
|
@@ -511,11 +511,11 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
511
511
|
children: i
|
|
512
512
|
}
|
|
513
513
|
);
|
|
514
|
-
}, kt = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(K, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(ir, { className: "size-full" }) }),
|
|
514
|
+
}, kt = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(K, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(ir, { className: "size-full" }) }), Ct = ({
|
|
515
515
|
title: e,
|
|
516
516
|
error: r,
|
|
517
517
|
children: n
|
|
518
|
-
}) => (
|
|
518
|
+
}) => (Z(() => {
|
|
519
519
|
console.error(e, r);
|
|
520
520
|
}, [r, e]), /* @__PURE__ */ t.jsxs("div", { className: "space-y-2", children: [
|
|
521
521
|
/* @__PURE__ */ t.jsx("div", { className: "text-xl", children: e }),
|
|
@@ -527,7 +527,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
527
527
|
sm: "size-4 border",
|
|
528
528
|
md: "size-8 border-2",
|
|
529
529
|
lg: "size-12 border-4"
|
|
530
|
-
},
|
|
530
|
+
}, Et = ({
|
|
531
531
|
color: e = "neutral",
|
|
532
532
|
size: r = "md"
|
|
533
533
|
}) => {
|
|
@@ -538,7 +538,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
538
538
|
className: `inline-block ${o} animate-rotation rounded-full ${n} border-b-transparent`
|
|
539
539
|
}
|
|
540
540
|
);
|
|
541
|
-
},
|
|
541
|
+
}, me = ({
|
|
542
542
|
src: e,
|
|
543
543
|
className: r,
|
|
544
544
|
onLoad: n,
|
|
@@ -549,66 +549,66 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
549
549
|
}) => {
|
|
550
550
|
const {
|
|
551
551
|
minImageWidth: l,
|
|
552
|
-
maxImageWidth:
|
|
553
|
-
imageLoadStrategy:
|
|
552
|
+
maxImageWidth: a,
|
|
553
|
+
imageLoadStrategy: w,
|
|
554
554
|
playerInViewportWidthRatio: d
|
|
555
|
-
} = J(), { imageHdWidth: m, imageSubWidths: f } = re(), [
|
|
556
|
-
const
|
|
557
|
-
if (
|
|
555
|
+
} = J(), { imageHdWidth: m, imageSubWidths: f } = re(), [z, v] = te(() => {
|
|
556
|
+
const x = f.concat(m).sort((p, h) => p - h).filter((p) => !(l && p < l || a && p > a));
|
|
557
|
+
if (x.length === 0)
|
|
558
558
|
throw new Error("No image widths available for the given constraints");
|
|
559
|
-
const
|
|
560
|
-
let
|
|
559
|
+
const T = x.map((p) => `${p !== m ? Ut(e, p) : e} ${p}w`);
|
|
560
|
+
let b;
|
|
561
561
|
if (i)
|
|
562
|
-
|
|
562
|
+
b = [`${x.shift()}px`];
|
|
563
563
|
else {
|
|
564
|
-
const
|
|
565
|
-
if (
|
|
566
|
-
const
|
|
567
|
-
|
|
568
|
-
(
|
|
569
|
-
),
|
|
564
|
+
const p = 1 / (o * d);
|
|
565
|
+
if (w === "quality") {
|
|
566
|
+
const h = x.pop();
|
|
567
|
+
b = x.map(
|
|
568
|
+
(k) => `(max-width: ${p * k}px) ${k}px`
|
|
569
|
+
), b.push(`${h}px`);
|
|
570
570
|
} else {
|
|
571
|
-
const
|
|
572
|
-
|
|
573
|
-
(
|
|
574
|
-
),
|
|
571
|
+
const h = x.shift();
|
|
572
|
+
b = x.reverse().map(
|
|
573
|
+
(k) => `(min-width: ${p * k}px) ${k}px`
|
|
574
|
+
), b.push(`${h}px`);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
return [
|
|
577
|
+
return [T.join(", "), b.join(", ")];
|
|
578
578
|
}, [
|
|
579
579
|
m,
|
|
580
|
-
|
|
580
|
+
w,
|
|
581
581
|
f,
|
|
582
582
|
o,
|
|
583
|
-
|
|
583
|
+
a,
|
|
584
584
|
l,
|
|
585
585
|
i,
|
|
586
586
|
d,
|
|
587
587
|
e
|
|
588
|
-
]), [
|
|
589
|
-
return
|
|
590
|
-
if (
|
|
588
|
+
]), [g, I] = D();
|
|
589
|
+
return Z(() => {
|
|
590
|
+
if (g === !0)
|
|
591
591
|
return;
|
|
592
|
-
const
|
|
593
|
-
|
|
592
|
+
const x = setTimeout(() => {
|
|
593
|
+
I((T) => T ?? !1);
|
|
594
594
|
}, 30);
|
|
595
|
-
return () => clearTimeout(
|
|
596
|
-
}, [
|
|
595
|
+
return () => clearTimeout(x);
|
|
596
|
+
}, [g]), /* @__PURE__ */ t.jsx(
|
|
597
597
|
"img",
|
|
598
598
|
{
|
|
599
599
|
src: e,
|
|
600
|
-
srcSet:
|
|
601
|
-
sizes:
|
|
602
|
-
className:
|
|
600
|
+
srcSet: z,
|
|
601
|
+
sizes: v,
|
|
602
|
+
className: A(
|
|
603
603
|
r,
|
|
604
|
-
u &&
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
604
|
+
u && A(
|
|
605
|
+
g !== void 0 && "transition-opacity duration-200",
|
|
606
|
+
g === !1 && "opacity-0",
|
|
607
|
+
g === !0 && "opacity-100"
|
|
608
608
|
)
|
|
609
609
|
),
|
|
610
|
-
onLoad: (
|
|
611
|
-
|
|
610
|
+
onLoad: (x) => {
|
|
611
|
+
I(!0), n == null || n(x);
|
|
612
612
|
},
|
|
613
613
|
...c
|
|
614
614
|
}
|
|
@@ -625,7 +625,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
625
625
|
strokeLinejoin: "round",
|
|
626
626
|
children: /* @__PURE__ */ t.jsx("polygon", { points: "6 3 20 12 6 21 6 3" })
|
|
627
627
|
}
|
|
628
|
-
) }),
|
|
628
|
+
) }), Nt = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_360", children: /* @__PURE__ */ t.jsxs(
|
|
629
629
|
"svg",
|
|
630
630
|
{
|
|
631
631
|
className: e,
|
|
@@ -687,7 +687,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
687
687
|
return /* @__PURE__ */ t.jsx(
|
|
688
688
|
"div",
|
|
689
689
|
{
|
|
690
|
-
className:
|
|
690
|
+
className: A(
|
|
691
691
|
"flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",
|
|
692
692
|
r && "large:h-3/5 large:p-2"
|
|
693
693
|
),
|
|
@@ -709,7 +709,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
709
709
|
break;
|
|
710
710
|
}
|
|
711
711
|
const u = /* @__PURE__ */ t.jsx(
|
|
712
|
-
|
|
712
|
+
me,
|
|
713
713
|
{
|
|
714
714
|
className: "size-full object-cover",
|
|
715
715
|
src: i,
|
|
@@ -720,7 +720,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
720
720
|
let c;
|
|
721
721
|
switch (o) {
|
|
722
722
|
case "360":
|
|
723
|
-
c = /* @__PURE__ */ t.jsx(Ke, { children: /* @__PURE__ */ t.jsx(
|
|
723
|
+
c = /* @__PURE__ */ t.jsx(Ke, { children: /* @__PURE__ */ t.jsx(Nt, { className: "size-full text-primary" }) });
|
|
724
724
|
break;
|
|
725
725
|
case "video":
|
|
726
726
|
c = /* @__PURE__ */ t.jsx(Ke, { children: /* @__PURE__ */ t.jsx(Ye, { className: "size-full p-0.5 text-background" }) });
|
|
@@ -747,109 +747,109 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
747
747
|
orientation: r = "horizontal"
|
|
748
748
|
}) => {
|
|
749
749
|
const n = pr[e], o = r === "horizontal" ? "h-px w-full" : "w-px h-full";
|
|
750
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
751
|
-
},
|
|
750
|
+
return /* @__PURE__ */ t.jsx("div", { className: A(n, o) });
|
|
751
|
+
}, _t = ({
|
|
752
752
|
className: e = "",
|
|
753
753
|
containerClassName: r = ""
|
|
754
754
|
}) => {
|
|
755
|
-
const { flatten: n, infiniteCarrousel: o, permanentGallery: i, isFullScreen: u } = J(), { categories: c, items: l, aspectRatioStyle:
|
|
756
|
-
extendMode:
|
|
755
|
+
const { flatten: n, infiniteCarrousel: o, permanentGallery: i, isFullScreen: u } = J(), { categories: c, items: l, aspectRatioStyle: a } = re(), {
|
|
756
|
+
extendMode: w,
|
|
757
757
|
extendTransition: d,
|
|
758
758
|
masterItemIndex: m,
|
|
759
759
|
prevItem: f,
|
|
760
|
-
nextItem:
|
|
761
|
-
scrollToItemIndex:
|
|
762
|
-
resetView:
|
|
763
|
-
} = q(),
|
|
760
|
+
nextItem: z,
|
|
761
|
+
scrollToItemIndex: v,
|
|
762
|
+
resetView: g
|
|
763
|
+
} = q(), I = te(() => {
|
|
764
764
|
if (n)
|
|
765
765
|
return [];
|
|
766
|
-
const
|
|
767
|
-
let
|
|
768
|
-
for (let
|
|
769
|
-
const
|
|
770
|
-
|
|
766
|
+
const y = new Array();
|
|
767
|
+
let E = 0;
|
|
768
|
+
for (let _ = 0; _ < c.length - 1; _++) {
|
|
769
|
+
const S = c[_].items.length;
|
|
770
|
+
y.push(E + S), E += S;
|
|
771
771
|
}
|
|
772
|
-
return
|
|
773
|
-
}, [c, n]),
|
|
774
|
-
if (!
|
|
772
|
+
return y;
|
|
773
|
+
}, [c, n]), x = $(null), T = M(() => {
|
|
774
|
+
if (!x.current)
|
|
775
775
|
throw new Error("slider.current is null");
|
|
776
|
-
return
|
|
777
|
-
}, []),
|
|
776
|
+
return x.current;
|
|
777
|
+
}, []), b = $(!1), p = $(
|
|
778
778
|
null
|
|
779
|
-
), [
|
|
780
|
-
(
|
|
781
|
-
const
|
|
782
|
-
|
|
783
|
-
left: se(
|
|
784
|
-
behavior:
|
|
779
|
+
), [h, k] = D(!1), L = M(
|
|
780
|
+
(y, E) => {
|
|
781
|
+
const _ = T(), S = _.clientWidth, O = _.scrollWidth / l.length, C = (y + 1 / 2) * O - S / 2, s = _.scrollWidth - _.clientWidth;
|
|
782
|
+
_.scrollTo({
|
|
783
|
+
left: se(C, 0, s),
|
|
784
|
+
behavior: E
|
|
785
785
|
});
|
|
786
786
|
},
|
|
787
|
-
[l.length,
|
|
787
|
+
[l.length, T]
|
|
788
788
|
);
|
|
789
|
-
|
|
790
|
-
const
|
|
791
|
-
if (!
|
|
789
|
+
Z(() => {
|
|
790
|
+
const y = x.current;
|
|
791
|
+
if (!y)
|
|
792
792
|
return;
|
|
793
|
-
const
|
|
794
|
-
|
|
795
|
-
x:
|
|
796
|
-
scrollLeft:
|
|
793
|
+
const E = (O) => {
|
|
794
|
+
O.preventDefault(), b.current = !0, p.current = {
|
|
795
|
+
x: O.pageX - y.offsetLeft,
|
|
796
|
+
scrollLeft: y.scrollLeft
|
|
797
797
|
};
|
|
798
|
-
},
|
|
799
|
-
if (!
|
|
798
|
+
}, _ = (O) => {
|
|
799
|
+
if (!b.current)
|
|
800
800
|
return;
|
|
801
|
-
if (
|
|
801
|
+
if (p.current === null)
|
|
802
802
|
throw new Error("[onMouseMove] scrollStart is null");
|
|
803
|
-
const
|
|
804
|
-
if (!
|
|
803
|
+
const C = O.pageX - y.offsetLeft - p.current.x;
|
|
804
|
+
if (!h && Math.abs(C) < 5)
|
|
805
805
|
return;
|
|
806
|
-
const
|
|
807
|
-
|
|
808
|
-
|
|
806
|
+
const s = p.current.scrollLeft - C;
|
|
807
|
+
k(!0), requestAnimationFrame(() => {
|
|
808
|
+
y.scrollLeft = s;
|
|
809
809
|
});
|
|
810
|
-
},
|
|
811
|
-
|
|
812
|
-
|
|
810
|
+
}, S = () => {
|
|
811
|
+
b.current && (b.current = !1, requestAnimationFrame(() => {
|
|
812
|
+
k(!1);
|
|
813
813
|
}));
|
|
814
814
|
};
|
|
815
|
-
return
|
|
816
|
-
|
|
815
|
+
return y.addEventListener("mousedown", E), document.addEventListener("mousemove", _), document.addEventListener("mouseleave", S), document.addEventListener("mouseup", S), document.addEventListener("contextmenu", S), () => {
|
|
816
|
+
y.removeEventListener("mousedown", E), document.removeEventListener("mousemove", _), document.removeEventListener("mouseleave", S), document.removeEventListener("mouseup", S), document.removeEventListener("contextmenu", S);
|
|
817
817
|
};
|
|
818
|
-
}, [
|
|
819
|
-
const
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
}, [m,
|
|
823
|
-
|
|
818
|
+
}, [h]);
|
|
819
|
+
const R = $(m);
|
|
820
|
+
Z(() => {
|
|
821
|
+
x.current && (L(m, "smooth"), R.current = m);
|
|
822
|
+
}, [m, L]), Z(() => {
|
|
823
|
+
x.current && L(R.current, "instant");
|
|
824
824
|
}, [
|
|
825
|
-
|
|
825
|
+
L,
|
|
826
826
|
// - Run the effect when those values change
|
|
827
827
|
u,
|
|
828
|
-
|
|
828
|
+
w,
|
|
829
829
|
d
|
|
830
830
|
]);
|
|
831
|
-
const
|
|
832
|
-
|
|
831
|
+
const V = (y, E) => {
|
|
832
|
+
h || (o && E === l.length - 1 && m === 0 ? f() : o && E === 0 && m === l.length - 1 ? z() : v(E), g());
|
|
833
833
|
};
|
|
834
834
|
return /* @__PURE__ */ t.jsx(
|
|
835
835
|
"div",
|
|
836
836
|
{
|
|
837
|
-
ref:
|
|
838
|
-
className:
|
|
837
|
+
ref: x,
|
|
838
|
+
className: A(
|
|
839
839
|
"relative w-full overflow-x-auto no-scrollbar",
|
|
840
|
-
|
|
840
|
+
h ? "cursor-grab" : "cursor-grabbing",
|
|
841
841
|
e
|
|
842
842
|
),
|
|
843
843
|
children: /* @__PURE__ */ t.jsx(
|
|
844
844
|
"div",
|
|
845
845
|
{
|
|
846
|
-
className:
|
|
846
|
+
className: A(
|
|
847
847
|
"flex h-10 w-fit gap-1 small:h-12 small:gap-2",
|
|
848
|
-
|
|
848
|
+
w && "large:h-20 large:gap-4",
|
|
849
849
|
r
|
|
850
850
|
),
|
|
851
|
-
children: l.map((
|
|
852
|
-
|
|
851
|
+
children: l.map((y, E) => /* @__PURE__ */ t.jsxs(Ot, { children: [
|
|
852
|
+
I.includes(E) && /* @__PURE__ */ t.jsx("div", { className: "my-2", children: /* @__PURE__ */ t.jsx(
|
|
853
853
|
Lt,
|
|
854
854
|
{
|
|
855
855
|
color: i && !u ? "neutral" : "background",
|
|
@@ -859,23 +859,23 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
859
859
|
/* @__PURE__ */ t.jsx(
|
|
860
860
|
"div",
|
|
861
861
|
{
|
|
862
|
-
className:
|
|
862
|
+
className: A(
|
|
863
863
|
"relative h-full rounded-gallery ",
|
|
864
|
-
!
|
|
864
|
+
!h && "cursor-pointer",
|
|
865
865
|
"after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-opacity",
|
|
866
|
-
|
|
866
|
+
E === m ? "after:opacity-100" : "after:opacity-0 hover:after:opacity-70"
|
|
867
867
|
),
|
|
868
|
-
style:
|
|
869
|
-
onClick: () =>
|
|
870
|
-
children: /* @__PURE__ */ t.jsx(mr, { item:
|
|
868
|
+
style: a,
|
|
869
|
+
onClick: () => V(y, E),
|
|
870
|
+
children: /* @__PURE__ */ t.jsx(mr, { item: y })
|
|
871
871
|
}
|
|
872
872
|
)
|
|
873
|
-
] },
|
|
873
|
+
] }, E))
|
|
874
874
|
}
|
|
875
875
|
)
|
|
876
876
|
}
|
|
877
877
|
);
|
|
878
|
-
},
|
|
878
|
+
}, zt = (e) => 1 - Math.pow(1 - e, 2), hr = ({ currentIndex: e, maxIndex: r }) => /* @__PURE__ */ t.jsxs("div", { className: "space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 small:space-x-1 small:px-2 small:py-1 small:text-sm", children: [
|
|
879
879
|
/* @__PURE__ */ t.jsx("span", { children: e + 1 }),
|
|
880
880
|
/* @__PURE__ */ t.jsx("span", { children: "/" }),
|
|
881
881
|
/* @__PURE__ */ t.jsx("span", { children: r + 1 })
|
|
@@ -885,210 +885,222 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
885
885
|
onlyPreload: e,
|
|
886
886
|
...r
|
|
887
887
|
}) => {
|
|
888
|
-
const { zoom: n, isZooming: o, setZoom: i } = q(), u = $(null), c = $(null), l = M((
|
|
888
|
+
const { zoom: n, isZooming: o, setZoom: i } = q(), u = $(null), c = $(null), l = M((b) => {
|
|
889
889
|
if (!c.current)
|
|
890
890
|
throw new Error(
|
|
891
|
-
`[${
|
|
891
|
+
`[${b ?? "getTransformElementOrThrow"}] transformElementRef.current is null`
|
|
892
892
|
);
|
|
893
893
|
return c.current;
|
|
894
|
-
}, []),
|
|
895
|
-
(
|
|
896
|
-
const
|
|
894
|
+
}, []), a = $(!1), w = $(null), d = $(/* @__PURE__ */ new Map()), m = $({ x: 0, y: 0, scale: 1 }), f = $(null), z = M(
|
|
895
|
+
(b) => {
|
|
896
|
+
const p = l("setTransformStyle"), {
|
|
897
897
|
x: h,
|
|
898
|
-
y:
|
|
899
|
-
scale:
|
|
898
|
+
y: k,
|
|
899
|
+
scale: L
|
|
900
900
|
} = {
|
|
901
901
|
...m.current,
|
|
902
|
-
...
|
|
903
|
-
},
|
|
904
|
-
m.current = { x:
|
|
902
|
+
...b
|
|
903
|
+
}, R = se(L, 1, ze), V = p.clientWidth, y = p.clientHeight, E = V * R, _ = y * R, S = se(h, -(E - V), 0), O = se(k, -(_ - y), 0);
|
|
904
|
+
m.current = { x: S, y: O, scale: R }, p.style.transform = `translate(${S}px, ${O}px) scale(${R})`;
|
|
905
905
|
},
|
|
906
906
|
[l]
|
|
907
|
-
),
|
|
908
|
-
(
|
|
907
|
+
), v = M(
|
|
908
|
+
(b, p) => {
|
|
909
909
|
const {
|
|
910
910
|
x: h,
|
|
911
|
-
y:
|
|
912
|
-
scale:
|
|
911
|
+
y: k,
|
|
912
|
+
scale: L
|
|
913
913
|
} = m.current, {
|
|
914
|
-
x:
|
|
914
|
+
x: R,
|
|
915
915
|
y: V,
|
|
916
|
-
scale:
|
|
916
|
+
scale: y
|
|
917
917
|
} = {
|
|
918
918
|
...m.current,
|
|
919
|
-
...
|
|
919
|
+
...b
|
|
920
920
|
};
|
|
921
921
|
f.current && (cancelAnimationFrame(f.current), f.current = null);
|
|
922
|
-
const
|
|
923
|
-
|
|
924
|
-
}, _ = Math.abs(
|
|
925
|
-
if (!
|
|
926
|
-
|
|
922
|
+
const E = () => {
|
|
923
|
+
z({ x: R, y: V, scale: y }), i(y);
|
|
924
|
+
}, _ = Math.abs(R - h) < 1 && Math.abs(V - k) < 1 && Math.abs(y - L) < 5e-3;
|
|
925
|
+
if (!p || _) {
|
|
926
|
+
E();
|
|
927
927
|
return;
|
|
928
928
|
}
|
|
929
|
-
const
|
|
930
|
-
const
|
|
931
|
-
const
|
|
932
|
-
if (
|
|
933
|
-
|
|
929
|
+
const S = (/* @__PURE__ */ new Date()).getTime(), O = () => {
|
|
930
|
+
const C = () => {
|
|
931
|
+
const s = (/* @__PURE__ */ new Date()).getTime() - S;
|
|
932
|
+
if (s >= p) {
|
|
933
|
+
E(), f.current = null;
|
|
934
934
|
return;
|
|
935
935
|
}
|
|
936
|
-
const
|
|
937
|
-
|
|
936
|
+
const j = Math.min(s / p, 1), N = zt(j), H = _e(h, R, N), F = _e(k, V, N), Y = _e(L, y, N);
|
|
937
|
+
z({ x: H, y: F, scale: Y }), O();
|
|
938
938
|
};
|
|
939
|
-
f.current = requestAnimationFrame(
|
|
939
|
+
f.current = requestAnimationFrame(C);
|
|
940
940
|
};
|
|
941
|
-
|
|
941
|
+
O();
|
|
942
942
|
},
|
|
943
|
-
[
|
|
944
|
-
),
|
|
945
|
-
(
|
|
946
|
-
let { x: h, y:
|
|
947
|
-
|
|
943
|
+
[z, i]
|
|
944
|
+
), g = M(
|
|
945
|
+
(b, p) => {
|
|
946
|
+
let { x: h, y: k } = m.current;
|
|
947
|
+
b.x && (h += b.x), b.y && (k += b.y), v(
|
|
948
948
|
{
|
|
949
949
|
x: h,
|
|
950
|
-
y:
|
|
950
|
+
y: k
|
|
951
951
|
},
|
|
952
|
-
|
|
952
|
+
p
|
|
953
953
|
);
|
|
954
954
|
},
|
|
955
|
-
[
|
|
956
|
-
),
|
|
957
|
-
(
|
|
958
|
-
const
|
|
959
|
-
|
|
955
|
+
[v]
|
|
956
|
+
), I = M(
|
|
957
|
+
(b, p, h) => {
|
|
958
|
+
const k = m.current.scale, L = se(b, 1, ze), R = L / k, { x: V, y } = m.current, { x: E, y: _ } = p, S = -V + E, O = -y + _, C = S * R, s = O * R, j = C - E, N = s - _, H = -j, F = -N;
|
|
959
|
+
v(
|
|
960
960
|
{
|
|
961
|
-
x:
|
|
962
|
-
y:
|
|
963
|
-
scale:
|
|
961
|
+
x: H,
|
|
962
|
+
y: F,
|
|
963
|
+
scale: L
|
|
964
964
|
},
|
|
965
965
|
h
|
|
966
966
|
);
|
|
967
967
|
},
|
|
968
|
-
[
|
|
969
|
-
),
|
|
970
|
-
(
|
|
971
|
-
const
|
|
968
|
+
[v]
|
|
969
|
+
), x = M(
|
|
970
|
+
(b) => {
|
|
971
|
+
const p = l(
|
|
972
972
|
"shiftZoomFromButton"
|
|
973
|
-
), h =
|
|
974
|
-
|
|
975
|
-
|
|
973
|
+
), h = p.clientWidth, k = p.clientHeight;
|
|
974
|
+
I(
|
|
975
|
+
b,
|
|
976
976
|
{
|
|
977
977
|
x: h / 2,
|
|
978
|
-
y:
|
|
978
|
+
y: k / 2
|
|
979
979
|
},
|
|
980
980
|
200
|
|
981
981
|
);
|
|
982
982
|
},
|
|
983
|
-
[l,
|
|
983
|
+
[l, I]
|
|
984
|
+
), T = M(
|
|
985
|
+
(b, p, h) => {
|
|
986
|
+
const { scale: k } = m.current;
|
|
987
|
+
I(
|
|
988
|
+
k + b,
|
|
989
|
+
p,
|
|
990
|
+
h
|
|
991
|
+
);
|
|
992
|
+
},
|
|
993
|
+
[I]
|
|
984
994
|
);
|
|
985
|
-
return
|
|
986
|
-
c.current &&
|
|
987
|
-
}, [
|
|
988
|
-
if (!o)
|
|
995
|
+
return Z(() => {
|
|
996
|
+
e || c.current && x(n);
|
|
997
|
+
}, [e, x, n]), Z(() => {
|
|
998
|
+
if (e || !o)
|
|
989
999
|
return;
|
|
990
|
-
const
|
|
991
|
-
if (!
|
|
1000
|
+
const b = c.current;
|
|
1001
|
+
if (!b)
|
|
992
1002
|
return;
|
|
993
|
-
const
|
|
994
|
-
|
|
995
|
-
x:
|
|
996
|
-
y:
|
|
1003
|
+
const p = (L) => {
|
|
1004
|
+
L.preventDefault(), L.stopPropagation(), a.current = !0, w.current = {
|
|
1005
|
+
x: L.clientX,
|
|
1006
|
+
y: L.clientY
|
|
997
1007
|
};
|
|
998
|
-
}, h = (
|
|
999
|
-
if (!
|
|
1008
|
+
}, h = (L) => {
|
|
1009
|
+
if (!a.current)
|
|
1000
1010
|
return;
|
|
1001
|
-
if (!
|
|
1011
|
+
if (!w.current)
|
|
1002
1012
|
throw new Error("mouseStartXY.current is null");
|
|
1003
|
-
|
|
1004
|
-
const
|
|
1005
|
-
|
|
1006
|
-
x:
|
|
1013
|
+
L.stopPropagation();
|
|
1014
|
+
const R = L.clientX - w.current.x, V = L.clientY - w.current.y;
|
|
1015
|
+
g({
|
|
1016
|
+
x: R,
|
|
1007
1017
|
y: V
|
|
1008
|
-
}),
|
|
1009
|
-
x:
|
|
1010
|
-
y:
|
|
1018
|
+
}), w.current = {
|
|
1019
|
+
x: L.clientX,
|
|
1020
|
+
y: L.clientY
|
|
1011
1021
|
};
|
|
1012
|
-
},
|
|
1013
|
-
|
|
1022
|
+
}, k = () => {
|
|
1023
|
+
a.current = !1;
|
|
1014
1024
|
};
|
|
1015
|
-
return
|
|
1016
|
-
|
|
1025
|
+
return b.addEventListener("mousedown", p), document.addEventListener("mousemove", h), document.addEventListener("mouseleave", k), document.addEventListener("mouseup", k), document.addEventListener("contextmenu", k), () => {
|
|
1026
|
+
b.removeEventListener("mousedown", p), document.removeEventListener("mousemove", h), document.removeEventListener("mouseleave", k), document.removeEventListener("mouseup", k), document.removeEventListener("contextmenu", k);
|
|
1017
1027
|
};
|
|
1018
|
-
}, [o,
|
|
1019
|
-
|
|
1020
|
-
|
|
1028
|
+
}, [o, g, e]), Z(() => {
|
|
1029
|
+
if (e)
|
|
1030
|
+
return;
|
|
1031
|
+
const b = u.current;
|
|
1032
|
+
if (!b)
|
|
1021
1033
|
return;
|
|
1022
|
-
const
|
|
1023
|
-
const { ctrlKey:
|
|
1024
|
-
if (
|
|
1025
|
-
if (!o &&
|
|
1034
|
+
const p = (h) => {
|
|
1035
|
+
const { ctrlKey: k, clientX: L, clientY: R, deltaX: V, deltaY: y } = h;
|
|
1036
|
+
if (k) {
|
|
1037
|
+
if (!o && y >= 0)
|
|
1026
1038
|
return;
|
|
1027
|
-
const { left:
|
|
1028
|
-
|
|
1029
|
-
x:
|
|
1030
|
-
y:
|
|
1039
|
+
const { left: E, top: _ } = b.getBoundingClientRect(), S = L - E, O = R - _;
|
|
1040
|
+
T(-0.01 * y, {
|
|
1041
|
+
x: S,
|
|
1042
|
+
y: O
|
|
1031
1043
|
});
|
|
1032
1044
|
} else {
|
|
1033
1045
|
if (!o)
|
|
1034
1046
|
return;
|
|
1035
|
-
|
|
1047
|
+
g({
|
|
1036
1048
|
x: -2 * V,
|
|
1037
|
-
y: -2 *
|
|
1049
|
+
y: -2 * y
|
|
1038
1050
|
});
|
|
1039
1051
|
}
|
|
1040
1052
|
h.preventDefault();
|
|
1041
1053
|
};
|
|
1042
|
-
return
|
|
1043
|
-
|
|
1054
|
+
return b.addEventListener("wheel", p), () => {
|
|
1055
|
+
b.removeEventListener("wheel", p);
|
|
1044
1056
|
};
|
|
1045
|
-
}, [o,
|
|
1046
|
-
const
|
|
1047
|
-
if (!
|
|
1057
|
+
}, [o, g, T, e]), Z(() => {
|
|
1058
|
+
const b = u.current, p = c.current;
|
|
1059
|
+
if (!b || !p)
|
|
1048
1060
|
return;
|
|
1049
|
-
const h = d.current,
|
|
1050
|
-
for (let
|
|
1051
|
-
const
|
|
1052
|
-
h.set(
|
|
1061
|
+
const h = d.current, k = (V) => {
|
|
1062
|
+
for (let y = 0; y < V.changedTouches.length; y++) {
|
|
1063
|
+
const E = V.changedTouches[y];
|
|
1064
|
+
h.set(E.identifier, E);
|
|
1053
1065
|
}
|
|
1054
|
-
},
|
|
1055
|
-
for (let
|
|
1056
|
-
const
|
|
1057
|
-
h.delete(
|
|
1066
|
+
}, L = (V) => {
|
|
1067
|
+
for (let y = 0; y < V.changedTouches.length; y++) {
|
|
1068
|
+
const E = V.changedTouches[y];
|
|
1069
|
+
h.delete(E.identifier);
|
|
1058
1070
|
}
|
|
1059
|
-
},
|
|
1060
|
-
const
|
|
1061
|
-
if (
|
|
1071
|
+
}, R = (V) => {
|
|
1072
|
+
const y = V.touches.length;
|
|
1073
|
+
if (y === 1) {
|
|
1062
1074
|
if (!o)
|
|
1063
1075
|
return;
|
|
1064
1076
|
V.preventDefault();
|
|
1065
|
-
const
|
|
1077
|
+
const E = V.touches[0], _ = h.get(E.identifier);
|
|
1066
1078
|
if (!_)
|
|
1067
1079
|
throw new Error("touchStart is null");
|
|
1068
|
-
const
|
|
1069
|
-
|
|
1070
|
-
x:
|
|
1071
|
-
y:
|
|
1072
|
-
}), h.set(
|
|
1073
|
-
} else if (
|
|
1080
|
+
const S = E.clientX - _.clientX, O = E.clientY - _.clientY;
|
|
1081
|
+
g({
|
|
1082
|
+
x: S,
|
|
1083
|
+
y: O
|
|
1084
|
+
}), h.set(E.identifier, E);
|
|
1085
|
+
} else if (y === 2) {
|
|
1074
1086
|
V.preventDefault();
|
|
1075
|
-
const [
|
|
1076
|
-
if (!
|
|
1087
|
+
const [E, _] = V.touches, S = h.get(E.identifier), O = h.get(_.identifier);
|
|
1088
|
+
if (!S || !O)
|
|
1077
1089
|
throw new Error("intialTouch1 or intialTouch2 is null");
|
|
1078
|
-
const
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
),
|
|
1082
|
-
|
|
1083
|
-
x: (
|
|
1084
|
-
y: (
|
|
1085
|
-
}), h.set(
|
|
1090
|
+
const C = qe(
|
|
1091
|
+
S,
|
|
1092
|
+
O
|
|
1093
|
+
), s = qe(E, _) / C, { left: j, top: N } = b.getBoundingClientRect();
|
|
1094
|
+
T(s - 1, {
|
|
1095
|
+
x: (E.clientX + _.clientX) / 2 - j,
|
|
1096
|
+
y: (E.clientY + _.clientY) / 2 - N
|
|
1097
|
+
}), h.set(E.identifier, E), h.set(_.identifier, _);
|
|
1086
1098
|
}
|
|
1087
1099
|
};
|
|
1088
|
-
return
|
|
1089
|
-
|
|
1100
|
+
return p.addEventListener("touchstart", k), p.addEventListener("touchmove", R), p.addEventListener("touchend", L), p.addEventListener("touchcancel", L), () => {
|
|
1101
|
+
p.removeEventListener("touchstart", k), p.removeEventListener("touchmove", R), p.removeEventListener("touchend", L), p.removeEventListener("touchcancel", L);
|
|
1090
1102
|
};
|
|
1091
|
-
}, [o,
|
|
1103
|
+
}, [o, g, T]), /* @__PURE__ */ t.jsx(
|
|
1092
1104
|
"div",
|
|
1093
1105
|
{
|
|
1094
1106
|
ref: u,
|
|
@@ -1099,7 +1111,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1099
1111
|
ref: c,
|
|
1100
1112
|
className: "origin-top-left",
|
|
1101
1113
|
children: /* @__PURE__ */ t.jsx(
|
|
1102
|
-
|
|
1114
|
+
me,
|
|
1103
1115
|
{
|
|
1104
1116
|
...r,
|
|
1105
1117
|
imgInPlayerWidthRatio: e ? 1 : n
|
|
@@ -1116,8 +1128,8 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1116
1128
|
fill: "currentColor"
|
|
1117
1129
|
}
|
|
1118
1130
|
) }) }), xr = ({ hotspot: e }) => {
|
|
1119
|
-
const { title: r, icon: n, description: o, position: i, detail: u } = e, { getIconConfig: c } = $e(), l = n ? c(n) : void 0, { extendMode:
|
|
1120
|
-
m &&
|
|
1131
|
+
const { title: r, icon: n, description: o, position: i, detail: u } = e, { getIconConfig: c } = $e(), l = n ? c(n) : void 0, { extendMode: a, setShownDetails: w } = q(), d = !!u, m = (u == null ? void 0 : u.type) === "image", f = !!r || !!o, z = m ? /* @__PURE__ */ t.jsx(gr, { className: "size-4" }) : /* @__PURE__ */ t.jsx("div", { className: "size-1" }), v = () => {
|
|
1132
|
+
m && w({
|
|
1121
1133
|
src: u.src,
|
|
1122
1134
|
title: r,
|
|
1123
1135
|
text: o
|
|
@@ -1126,7 +1138,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1126
1138
|
return /* @__PURE__ */ t.jsxs(
|
|
1127
1139
|
"div",
|
|
1128
1140
|
{
|
|
1129
|
-
className:
|
|
1141
|
+
className: A(
|
|
1130
1142
|
"group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",
|
|
1131
1143
|
d ? "cursor-pointer" : "cursor-help"
|
|
1132
1144
|
),
|
|
@@ -1134,7 +1146,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1134
1146
|
top: `${100 * e.position.y}%`,
|
|
1135
1147
|
left: `${100 * e.position.x}%`
|
|
1136
1148
|
},
|
|
1137
|
-
onClick:
|
|
1149
|
+
onClick: v,
|
|
1138
1150
|
children: [
|
|
1139
1151
|
/* @__PURE__ */ t.jsxs(
|
|
1140
1152
|
"div",
|
|
@@ -1148,23 +1160,23 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1148
1160
|
className: "pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"
|
|
1149
1161
|
}
|
|
1150
1162
|
),
|
|
1151
|
-
l != null && l.Icon ? /* @__PURE__ */ t.jsx("div", { className: "size-5", children: l.Icon }) : /* @__PURE__ */ t.jsx("div", { className: "p-1", children:
|
|
1163
|
+
l != null && l.Icon ? /* @__PURE__ */ t.jsx("div", { className: "size-5", children: l.Icon }) : /* @__PURE__ */ t.jsx("div", { className: "p-1", children: z })
|
|
1152
1164
|
]
|
|
1153
1165
|
}
|
|
1154
1166
|
),
|
|
1155
1167
|
!m && f && /* @__PURE__ */ t.jsx(
|
|
1156
1168
|
"div",
|
|
1157
1169
|
{
|
|
1158
|
-
className:
|
|
1170
|
+
className: A(
|
|
1159
1171
|
"absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",
|
|
1160
|
-
|
|
1172
|
+
a && "large:max-w-56",
|
|
1161
1173
|
i.y < 0.55 ? "-top-1" : "-bottom-1",
|
|
1162
1174
|
i.x < 0.55 ? "-left-1 pl-6 small:pl-8" : "-right-1 pr-4 small:pr-6",
|
|
1163
|
-
"pointer-events-none opacity-0 transition-opacity duration-
|
|
1175
|
+
"pointer-events-none opacity-0 transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100"
|
|
1164
1176
|
),
|
|
1165
|
-
children: /* @__PURE__ */ t.jsxs("div", { className: "space-y-1", children: [
|
|
1166
|
-
r && /* @__PURE__ */ t.jsx("div", { className: "text-sm", children: r }),
|
|
1167
|
-
o && /* @__PURE__ */ t.jsx("div", { className: "text-xs", children: o })
|
|
1177
|
+
children: /* @__PURE__ */ t.jsxs("div", { className: "space-y-1 text-pretty", children: [
|
|
1178
|
+
r && /* @__PURE__ */ t.jsx("div", { className: "text-sm font-semibold small:text-base small:font-bold", children: r }),
|
|
1179
|
+
o && /* @__PURE__ */ t.jsx("div", { className: "text-xs text-foreground/65 small:text-sm", children: o })
|
|
1168
1180
|
] })
|
|
1169
1181
|
}
|
|
1170
1182
|
)
|
|
@@ -1214,10 +1226,10 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1214
1226
|
...i
|
|
1215
1227
|
}) => {
|
|
1216
1228
|
const { isShowingDetails: u, showHotspots: c, setItemInteraction: l } = q();
|
|
1217
|
-
return /* @__PURE__ */ t.jsx("div", { className:
|
|
1229
|
+
return /* @__PURE__ */ t.jsx("div", { className: A("relative size-full overflow-hidden", n), children: /* @__PURE__ */ t.jsxs(
|
|
1218
1230
|
"div",
|
|
1219
1231
|
{
|
|
1220
|
-
className:
|
|
1232
|
+
className: A(
|
|
1221
1233
|
"size-full duration-details",
|
|
1222
1234
|
u ? "scale-105" : "scale-100"
|
|
1223
1235
|
),
|
|
@@ -1226,37 +1238,37 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1226
1238
|
fr,
|
|
1227
1239
|
{
|
|
1228
1240
|
className: "size-full",
|
|
1229
|
-
onLoad: (
|
|
1230
|
-
r !== void 0 && l(r, "ready"), o == null || o(
|
|
1241
|
+
onLoad: (a) => {
|
|
1242
|
+
r !== void 0 && l(r, "ready"), o == null || o(a);
|
|
1231
1243
|
},
|
|
1232
1244
|
...i
|
|
1233
1245
|
}
|
|
1234
1246
|
),
|
|
1235
|
-
c && (e == null ? void 0 : e.map((
|
|
1247
|
+
c && (e == null ? void 0 : e.map((a, w) => /* @__PURE__ */ t.jsx(vr, { hotspot: a }, w)))
|
|
1236
1248
|
]
|
|
1237
1249
|
}
|
|
1238
1250
|
) });
|
|
1239
|
-
},
|
|
1251
|
+
}, we = 10, wr = 15, br = ({
|
|
1240
1252
|
images: e,
|
|
1241
1253
|
onlyPreload: r
|
|
1242
1254
|
}) => {
|
|
1243
|
-
const { reverse360: n } = J(), { isShowingDetails: o, isZooming: i } = q(), u = i || o, c = $(null), l = $(null), [
|
|
1244
|
-
|
|
1255
|
+
const { reverse360: n } = J(), { isShowingDetails: o, isZooming: i } = q(), u = i || o, c = $(null), l = $(null), [a, w] = D(0), d = e.length, m = M(() => {
|
|
1256
|
+
w((z) => (z - 1 + d) % d);
|
|
1245
1257
|
}, [d]), f = M(() => {
|
|
1246
|
-
|
|
1258
|
+
w((z) => (z + 1) % d);
|
|
1247
1259
|
}, [d]);
|
|
1248
|
-
return
|
|
1260
|
+
return Z(() => {
|
|
1249
1261
|
if (u)
|
|
1250
1262
|
return;
|
|
1251
|
-
const
|
|
1252
|
-
if (!
|
|
1263
|
+
const z = c.current, v = l.current;
|
|
1264
|
+
if (!z || !v)
|
|
1253
1265
|
return;
|
|
1254
|
-
let
|
|
1255
|
-
const
|
|
1256
|
-
|
|
1257
|
-
},
|
|
1258
|
-
const
|
|
1259
|
-
const Y = Date.now(), W =
|
|
1266
|
+
let g = null, I = [], x = null;
|
|
1267
|
+
const T = (s) => {
|
|
1268
|
+
I.push(s), I.length > 20 && I.shift();
|
|
1269
|
+
}, b = () => {
|
|
1270
|
+
const s = Date.now(), j = (() => {
|
|
1271
|
+
const Y = Date.now(), W = I.filter(
|
|
1260
1272
|
(B) => Y - B.timestamp < 50
|
|
1261
1273
|
);
|
|
1262
1274
|
if (W.length < 2)
|
|
@@ -1264,114 +1276,114 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1264
1276
|
const G = W[0], X = W[W.length - 1];
|
|
1265
1277
|
return (X.value - G.value) / (1e-3 * Math.max(X.timestamp - G.timestamp, 1));
|
|
1266
1278
|
})();
|
|
1267
|
-
let
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1270
|
-
const Y = Date.now(), W = (Y -
|
|
1271
|
-
if (
|
|
1272
|
-
|
|
1279
|
+
let N = 0, H = s;
|
|
1280
|
+
const F = () => {
|
|
1281
|
+
x = requestAnimationFrame(() => {
|
|
1282
|
+
const Y = Date.now(), W = (Y - s) / 1e3, G = Math.pow(0.05, W), X = j * G, B = (Y - H) / 1e3;
|
|
1283
|
+
if (N += X * B, Math.abs(X) < 5 * we && Math.abs(N) < we) {
|
|
1284
|
+
x = null;
|
|
1273
1285
|
return;
|
|
1274
1286
|
}
|
|
1275
|
-
Math.abs(
|
|
1287
|
+
Math.abs(N) >= we && (N > 0 !== n ? f() : m(), N = 0), H = Y, F();
|
|
1276
1288
|
});
|
|
1277
1289
|
};
|
|
1278
|
-
|
|
1279
|
-
},
|
|
1280
|
-
|
|
1281
|
-
},
|
|
1282
|
-
if (
|
|
1290
|
+
F();
|
|
1291
|
+
}, p = () => {
|
|
1292
|
+
x && (cancelAnimationFrame(x), x = null);
|
|
1293
|
+
}, h = (s) => {
|
|
1294
|
+
if (s.button !== 0)
|
|
1283
1295
|
return;
|
|
1284
|
-
|
|
1285
|
-
const
|
|
1286
|
-
|
|
1287
|
-
},
|
|
1288
|
-
if (
|
|
1296
|
+
s.preventDefault(), s.stopPropagation(), p();
|
|
1297
|
+
const j = s.clientX;
|
|
1298
|
+
g = j, I = [{ timestamp: Date.now(), value: j }];
|
|
1299
|
+
}, k = (s) => {
|
|
1300
|
+
if (g === null)
|
|
1289
1301
|
return;
|
|
1290
|
-
|
|
1291
|
-
const { clientX:
|
|
1292
|
-
|
|
1293
|
-
const
|
|
1294
|
-
Math.abs(
|
|
1295
|
-
},
|
|
1296
|
-
|
|
1302
|
+
s.stopPropagation();
|
|
1303
|
+
const { clientX: j } = s;
|
|
1304
|
+
T({ timestamp: Date.now(), value: j });
|
|
1305
|
+
const N = j - g;
|
|
1306
|
+
Math.abs(N) < we || (N > 0 !== n ? f() : m(), g = j);
|
|
1307
|
+
}, L = () => {
|
|
1308
|
+
g !== null && (g = null, b());
|
|
1297
1309
|
};
|
|
1298
|
-
|
|
1299
|
-
const
|
|
1300
|
-
const
|
|
1301
|
-
|
|
1310
|
+
z.addEventListener("mousedown", h), document.addEventListener("mousemove", k), document.addEventListener("mouseleave", L), document.addEventListener("mouseup", L), document.addEventListener("contextmenu", L);
|
|
1311
|
+
const R = () => v.getBoundingClientRect().width, V = () => v.scrollWidth / 2 - R() / 2, y = () => {
|
|
1312
|
+
const s = V();
|
|
1313
|
+
v.scrollLeft = s;
|
|
1302
1314
|
};
|
|
1303
|
-
|
|
1304
|
-
const
|
|
1305
|
-
const
|
|
1306
|
-
Math.abs(
|
|
1315
|
+
y();
|
|
1316
|
+
const E = () => {
|
|
1317
|
+
const s = v.scrollLeft - V();
|
|
1318
|
+
Math.abs(s) < wr || (s < 0 !== n ? f() : m(), y());
|
|
1307
1319
|
};
|
|
1308
|
-
|
|
1309
|
-
let
|
|
1310
|
-
const
|
|
1311
|
-
if (
|
|
1320
|
+
v.addEventListener("scroll", E);
|
|
1321
|
+
let _ = null;
|
|
1322
|
+
const S = (s) => {
|
|
1323
|
+
if (_ !== null || s.changedTouches.length !== 1)
|
|
1312
1324
|
return;
|
|
1313
|
-
|
|
1314
|
-
const { identifier:
|
|
1315
|
-
|
|
1316
|
-
},
|
|
1317
|
-
if (!
|
|
1325
|
+
p();
|
|
1326
|
+
const { identifier: j, clientX: N } = s.changedTouches[0];
|
|
1327
|
+
_ = j, g = N, I = [{ timestamp: Date.now(), value: N }];
|
|
1328
|
+
}, O = (s) => {
|
|
1329
|
+
if (!g)
|
|
1318
1330
|
return;
|
|
1319
|
-
const
|
|
1320
|
-
({ identifier:
|
|
1331
|
+
const j = Array.from(s.changedTouches).find(
|
|
1332
|
+
({ identifier: F }) => F === _
|
|
1321
1333
|
);
|
|
1322
|
-
if (!
|
|
1334
|
+
if (!j)
|
|
1323
1335
|
return;
|
|
1324
|
-
|
|
1325
|
-
const { clientX:
|
|
1326
|
-
|
|
1327
|
-
const H =
|
|
1328
|
-
Math.abs(H) <
|
|
1329
|
-
},
|
|
1330
|
-
!
|
|
1331
|
-
({ identifier:
|
|
1332
|
-
) || (
|
|
1336
|
+
s.preventDefault();
|
|
1337
|
+
const { clientX: N } = j;
|
|
1338
|
+
T({ timestamp: Date.now(), value: N });
|
|
1339
|
+
const H = N - g;
|
|
1340
|
+
Math.abs(H) < we || (H > 0 !== n ? f() : m(), g = N);
|
|
1341
|
+
}, C = (s) => {
|
|
1342
|
+
!g || !Array.from(s.changedTouches).some(
|
|
1343
|
+
({ identifier: j }) => j === _
|
|
1344
|
+
) || (_ = null, g = null, b());
|
|
1333
1345
|
};
|
|
1334
|
-
return
|
|
1335
|
-
|
|
1346
|
+
return v.addEventListener("touchstart", S), v.addEventListener("touchmove", O), v.addEventListener("touchend", C), v.addEventListener("touchcancel", C), () => {
|
|
1347
|
+
z.removeEventListener("mousedown", h), document.removeEventListener("mousemove", k), document.removeEventListener("mouseleave", L), document.removeEventListener("mouseup", L), document.removeEventListener("contextmenu", L), v.removeEventListener("scroll", E), v.removeEventListener("touchstart", S), v.removeEventListener("touchmove", O), v.removeEventListener("touchend", C), v.removeEventListener("touchcancel", C);
|
|
1336
1348
|
};
|
|
1337
1349
|
}, [f, m, u, n]), /* @__PURE__ */ t.jsx("div", { ref: c, className: "cursor-ew-resize", children: /* @__PURE__ */ t.jsxs("div", { ref: l, className: "overflow-x-scroll no-scrollbar", children: [
|
|
1338
|
-
/* @__PURE__ */ t.
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1350
|
+
/* @__PURE__ */ t.jsxs("div", { className: "sticky left-0 top-0", children: [
|
|
1351
|
+
e.map((z) => /* @__PURE__ */ t.jsx(
|
|
1352
|
+
me,
|
|
1353
|
+
{
|
|
1354
|
+
src: z.src,
|
|
1355
|
+
className: "pointer-events-none !absolute left-0 top-0 -z-10"
|
|
1356
|
+
},
|
|
1357
|
+
z.src
|
|
1358
|
+
)),
|
|
1359
|
+
/* @__PURE__ */ t.jsx(It, { ...e[a], onlyPreload: r })
|
|
1360
|
+
] }),
|
|
1349
1361
|
/* @__PURE__ */ t.jsx("div", { className: "pointer-events-none -mt-px h-px w-[calc(100%+1024px)]" })
|
|
1350
1362
|
] }) });
|
|
1351
1363
|
}, yr = ({ images: e, onPlaceholderImageLoaded: r, onSpinImagesLoaded: n, onError: o }) => {
|
|
1352
|
-
const i = te(() => e.map(({ src: d }) => d), [e]), [u, c] =
|
|
1364
|
+
const i = te(() => e.map(({ src: d }) => d), [e]), [u, c] = D(null), l = u ? [...u.values()].filter((d) => d).length / e.length * 100 : null, a = M(() => {
|
|
1353
1365
|
l === null && c(new Map(i.map((d) => [d, !1])));
|
|
1354
|
-
}, [i, l]),
|
|
1366
|
+
}, [i, l]), w = M((d) => {
|
|
1355
1367
|
c((m) => {
|
|
1356
1368
|
const f = new Map(m);
|
|
1357
1369
|
return f.set(d, !0), f;
|
|
1358
1370
|
});
|
|
1359
1371
|
}, []);
|
|
1360
|
-
return
|
|
1372
|
+
return Z(() => {
|
|
1361
1373
|
l === 100 && n();
|
|
1362
1374
|
}, [l, n]), /* @__PURE__ */ t.jsxs("div", { className: "relative size-full", children: [
|
|
1363
1375
|
l !== null && l !== 100 && // Add images to DOM to preload them
|
|
1364
1376
|
/* @__PURE__ */ t.jsx("div", { className: "hidden", children: i.map((d) => /* @__PURE__ */ t.jsx(
|
|
1365
|
-
|
|
1377
|
+
me,
|
|
1366
1378
|
{
|
|
1367
1379
|
src: d,
|
|
1368
|
-
onLoad: () =>
|
|
1380
|
+
onLoad: () => w(d),
|
|
1369
1381
|
onError: o
|
|
1370
1382
|
},
|
|
1371
1383
|
d
|
|
1372
1384
|
)) }),
|
|
1373
1385
|
/* @__PURE__ */ t.jsx(
|
|
1374
|
-
|
|
1386
|
+
me,
|
|
1375
1387
|
{
|
|
1376
1388
|
className: "size-full",
|
|
1377
1389
|
src: i[0],
|
|
@@ -1379,12 +1391,12 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1379
1391
|
}
|
|
1380
1392
|
),
|
|
1381
1393
|
/* @__PURE__ */ t.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35", children: [
|
|
1382
|
-
/* @__PURE__ */ t.jsx(
|
|
1383
|
-
/* @__PURE__ */ t.jsx(K, { color: "neutral", shape: "icon", onClick:
|
|
1394
|
+
/* @__PURE__ */ t.jsx(Nt, { className: "size-20 text-primary" }),
|
|
1395
|
+
/* @__PURE__ */ t.jsx(K, { color: "neutral", shape: "icon", onClick: a, children: /* @__PURE__ */ t.jsx(Ye, { className: "size-full" }) }),
|
|
1384
1396
|
/* @__PURE__ */ t.jsx(
|
|
1385
1397
|
"div",
|
|
1386
1398
|
{
|
|
1387
|
-
className:
|
|
1399
|
+
className: A(
|
|
1388
1400
|
"relative h-1 w-3/5 overflow-hidden rounded-full bg-background",
|
|
1389
1401
|
l === null && "invisible"
|
|
1390
1402
|
),
|
|
@@ -1400,10 +1412,10 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1400
1412
|
] })
|
|
1401
1413
|
] });
|
|
1402
1414
|
}, jr = (e) => {
|
|
1403
|
-
const { itemIndex: r } = e, { setItemInteraction: n } = q(), [o, i] =
|
|
1404
|
-
return
|
|
1415
|
+
const { itemIndex: r } = e, { setItemInteraction: n } = q(), [o, i] = D();
|
|
1416
|
+
return Z(() => {
|
|
1405
1417
|
o === null || o === "error" || n(r, o === "spin" ? "running" : "ready");
|
|
1406
|
-
}, [r, n, o]), o === "error" ? /* @__PURE__ */ t.jsx(
|
|
1418
|
+
}, [r, n, o]), o === "error" ? /* @__PURE__ */ t.jsx(Ct, { title: "Failed to fetch 360" }) : o !== "spin" ? /* @__PURE__ */ t.jsx(
|
|
1407
1419
|
yr,
|
|
1408
1420
|
{
|
|
1409
1421
|
...e,
|
|
@@ -1412,7 +1424,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1412
1424
|
onError: () => i("error")
|
|
1413
1425
|
}
|
|
1414
1426
|
) : /* @__PURE__ */ t.jsx(br, { ...e });
|
|
1415
|
-
}, kr = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(K, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(Ye, { className: "size-full" }) }),
|
|
1427
|
+
}, kr = ({ className: e = "", ...r }) => /* @__PURE__ */ t.jsx(K, { color: "neutral", shape: "icon", className: e, ...r, children: /* @__PURE__ */ t.jsx(Ye, { className: "size-full" }) }), Cr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_PAUSE", children: /* @__PURE__ */ t.jsx(
|
|
1416
1428
|
"svg",
|
|
1417
1429
|
{
|
|
1418
1430
|
className: e,
|
|
@@ -1429,7 +1441,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1429
1441
|
}
|
|
1430
1442
|
)
|
|
1431
1443
|
}
|
|
1432
|
-
) }),
|
|
1444
|
+
) }), Er = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_VOLUME", children: /* @__PURE__ */ t.jsx(
|
|
1433
1445
|
"svg",
|
|
1434
1446
|
{
|
|
1435
1447
|
className: e,
|
|
@@ -1446,7 +1458,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1446
1458
|
}
|
|
1447
1459
|
)
|
|
1448
1460
|
}
|
|
1449
|
-
) }),
|
|
1461
|
+
) }), Nr = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_VOLUME_OFF", children: /* @__PURE__ */ t.jsx(
|
|
1450
1462
|
"svg",
|
|
1451
1463
|
{
|
|
1452
1464
|
className: e,
|
|
@@ -1469,104 +1481,104 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1469
1481
|
className: "size-full rounded-ui-sm bg-background transition-transform",
|
|
1470
1482
|
style: { transform: `translateX(-${100 * (1 - e)}%)` }
|
|
1471
1483
|
}
|
|
1472
|
-
) }), Lr = 3e3,
|
|
1484
|
+
) }), Lr = 3e3, _r = ({ src: e, poster: r, itemIndex: n }) => {
|
|
1473
1485
|
const { carrouselItemIndex: o, setItemInteraction: i } = q(), u = $(null), c = $(null), l = M(() => {
|
|
1474
1486
|
if (!c.current)
|
|
1475
1487
|
throw new Error("videoRef.current is null");
|
|
1476
1488
|
return c.current;
|
|
1477
1489
|
}, []);
|
|
1478
|
-
|
|
1490
|
+
Z(() => {
|
|
1479
1491
|
i(n, "ready");
|
|
1480
1492
|
}, [n, i]);
|
|
1481
|
-
const
|
|
1493
|
+
const a = M(() => {
|
|
1482
1494
|
l().play();
|
|
1483
|
-
}, [l]),
|
|
1495
|
+
}, [l]), w = M(() => {
|
|
1484
1496
|
l().pause();
|
|
1485
1497
|
}, [l]);
|
|
1486
|
-
|
|
1487
|
-
o === n ||
|
|
1488
|
-
}, [o, n,
|
|
1489
|
-
const [d, m] =
|
|
1498
|
+
Z(() => {
|
|
1499
|
+
o === n || w();
|
|
1500
|
+
}, [o, n, w]);
|
|
1501
|
+
const [d, m] = D(!1), [f, z] = D(!0), v = () => {
|
|
1490
1502
|
m(!0), i(n, "running");
|
|
1491
|
-
},
|
|
1503
|
+
}, g = () => {
|
|
1492
1504
|
m(!1), i(n, "ready");
|
|
1493
|
-
},
|
|
1494
|
-
|
|
1495
|
-
},
|
|
1496
|
-
|
|
1497
|
-
}, [
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1500
|
-
},
|
|
1501
|
-
const
|
|
1502
|
-
|
|
1505
|
+
}, I = () => {
|
|
1506
|
+
z(!1);
|
|
1507
|
+
}, x = () => {
|
|
1508
|
+
z(!0);
|
|
1509
|
+
}, [T, b] = D(null), p = (s) => {
|
|
1510
|
+
const j = l(), N = s.currentTarget.getBoundingClientRect(), H = (s.clientX - N.left) / N.width, F = Math.min(1, Math.max(0, H));
|
|
1511
|
+
j.volume = F, j.muted = !1;
|
|
1512
|
+
}, h = (s) => {
|
|
1513
|
+
const j = l();
|
|
1514
|
+
j.muted = s;
|
|
1503
1515
|
};
|
|
1504
|
-
|
|
1505
|
-
const
|
|
1506
|
-
if (!
|
|
1516
|
+
Z(() => {
|
|
1517
|
+
const s = c.current;
|
|
1518
|
+
if (!s)
|
|
1507
1519
|
return;
|
|
1508
|
-
const
|
|
1509
|
-
|
|
1510
|
-
volume:
|
|
1511
|
-
isMuted:
|
|
1520
|
+
const j = () => {
|
|
1521
|
+
b({
|
|
1522
|
+
volume: s.volume,
|
|
1523
|
+
isMuted: s.muted
|
|
1512
1524
|
});
|
|
1513
1525
|
};
|
|
1514
|
-
return
|
|
1515
|
-
|
|
1526
|
+
return j(), s.addEventListener("volumechange", j), () => {
|
|
1527
|
+
s.removeEventListener("volumechange", j);
|
|
1516
1528
|
};
|
|
1517
1529
|
}, []);
|
|
1518
|
-
const [
|
|
1519
|
-
|
|
1520
|
-
const
|
|
1521
|
-
if (!
|
|
1522
|
-
const
|
|
1523
|
-
const
|
|
1524
|
-
isNaN(
|
|
1525
|
-
currentTime:
|
|
1530
|
+
const [k, L] = D(null), R = k ? k.currentTime / k.duration : 0;
|
|
1531
|
+
Z(() => {
|
|
1532
|
+
const s = c.current;
|
|
1533
|
+
if (!s) return;
|
|
1534
|
+
const j = () => {
|
|
1535
|
+
const N = s.currentTime, H = s.duration;
|
|
1536
|
+
isNaN(N) || isNaN(H) || L({
|
|
1537
|
+
currentTime: N,
|
|
1526
1538
|
duration: H
|
|
1527
1539
|
});
|
|
1528
1540
|
};
|
|
1529
|
-
return
|
|
1530
|
-
|
|
1541
|
+
return j(), s.addEventListener("timeupdate", j), () => {
|
|
1542
|
+
s.removeEventListener("timeupdate", j);
|
|
1531
1543
|
};
|
|
1532
1544
|
}, []);
|
|
1533
|
-
const
|
|
1534
|
-
const
|
|
1535
|
-
|
|
1536
|
-
},
|
|
1537
|
-
const
|
|
1538
|
-
return `${
|
|
1539
|
-
}, [
|
|
1540
|
-
() => clearTimeout(
|
|
1545
|
+
const V = (s) => {
|
|
1546
|
+
const j = l(), N = s.currentTarget.getBoundingClientRect(), H = (s.clientX - N.left) / N.width, F = j.duration * H;
|
|
1547
|
+
j.currentTime = F;
|
|
1548
|
+
}, y = (s) => {
|
|
1549
|
+
const j = Math.floor(s % 3600 / 60), N = Math.floor(s % 60);
|
|
1550
|
+
return `${j}:${N.toString().padStart(2, "0")}`;
|
|
1551
|
+
}, [E, _] = D(!1), S = $(void 0), O = M(
|
|
1552
|
+
() => clearTimeout(S.current),
|
|
1541
1553
|
[]
|
|
1542
|
-
),
|
|
1543
|
-
|
|
1544
|
-
|
|
1554
|
+
), C = M(() => {
|
|
1555
|
+
O(), S.current = setTimeout(() => {
|
|
1556
|
+
_(!1);
|
|
1545
1557
|
}, Lr);
|
|
1546
|
-
}, [
|
|
1547
|
-
return
|
|
1548
|
-
const
|
|
1549
|
-
if (!
|
|
1558
|
+
}, [O]);
|
|
1559
|
+
return Z(() => {
|
|
1560
|
+
const s = u.current, j = c.current;
|
|
1561
|
+
if (!s || !j)
|
|
1550
1562
|
return;
|
|
1551
|
-
const
|
|
1552
|
-
|
|
1563
|
+
const N = () => {
|
|
1564
|
+
C(), _(!0);
|
|
1553
1565
|
}, H = () => {
|
|
1554
|
-
|
|
1566
|
+
O(), _(!1);
|
|
1555
1567
|
};
|
|
1556
|
-
let
|
|
1568
|
+
let F = !1;
|
|
1557
1569
|
const Y = () => {
|
|
1558
|
-
|
|
1570
|
+
F = !0;
|
|
1559
1571
|
}, W = () => {
|
|
1560
|
-
|
|
1572
|
+
F && (F = !1, w());
|
|
1561
1573
|
}, G = () => {
|
|
1562
|
-
|
|
1574
|
+
F = !1, N();
|
|
1563
1575
|
}, X = (B) => {
|
|
1564
|
-
B.preventDefault(), B.touches.length === 1 && (
|
|
1576
|
+
B.preventDefault(), B.touches.length === 1 && (C(), _((ne) => !ne));
|
|
1565
1577
|
};
|
|
1566
|
-
return
|
|
1567
|
-
|
|
1578
|
+
return s.addEventListener("mousedown", Y), s.addEventListener("mouseup", W), s.addEventListener("mouseenter", N), s.addEventListener("mousemove", G), s.addEventListener("mouseleave", H), j.addEventListener("touchstart", X), () => {
|
|
1579
|
+
s.removeEventListener("mousedown", Y), s.removeEventListener("mouseup", W), s.removeEventListener("mouseenter", N), s.removeEventListener("mousemove", N), s.removeEventListener("mouseleave", H), j.removeEventListener("touchstart", X);
|
|
1568
1580
|
};
|
|
1569
|
-
}, [
|
|
1581
|
+
}, [O, w, C]), /* @__PURE__ */ t.jsxs("div", { ref: u, className: "relative size-full", children: [
|
|
1570
1582
|
/* @__PURE__ */ t.jsx(
|
|
1571
1583
|
"video",
|
|
1572
1584
|
{
|
|
@@ -1576,22 +1588,22 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1576
1588
|
poster: r,
|
|
1577
1589
|
disablePictureInPicture: !0,
|
|
1578
1590
|
playsInline: !0,
|
|
1579
|
-
onPlay:
|
|
1580
|
-
onPause:
|
|
1581
|
-
onEnded:
|
|
1582
|
-
onCanPlay:
|
|
1583
|
-
onWaiting:
|
|
1591
|
+
onPlay: v,
|
|
1592
|
+
onPause: g,
|
|
1593
|
+
onEnded: g,
|
|
1594
|
+
onCanPlay: I,
|
|
1595
|
+
onWaiting: x
|
|
1584
1596
|
}
|
|
1585
1597
|
),
|
|
1586
1598
|
d ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1587
1599
|
/* @__PURE__ */ t.jsxs(
|
|
1588
1600
|
"div",
|
|
1589
1601
|
{
|
|
1590
|
-
className:
|
|
1602
|
+
className: A(
|
|
1591
1603
|
"absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",
|
|
1592
|
-
|
|
1604
|
+
E ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"
|
|
1593
1605
|
),
|
|
1594
|
-
onMouseDownCapture: (
|
|
1606
|
+
onMouseDownCapture: (s) => s.stopPropagation(),
|
|
1595
1607
|
children: [
|
|
1596
1608
|
/* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between text-background", children: [
|
|
1597
1609
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -1605,20 +1617,20 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1605
1617
|
shape: "icon",
|
|
1606
1618
|
variant: "ghost",
|
|
1607
1619
|
color: "neutral",
|
|
1608
|
-
onClick:
|
|
1609
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1620
|
+
onClick: w,
|
|
1621
|
+
children: /* @__PURE__ */ t.jsx(Cr, { className: "size-full" })
|
|
1610
1622
|
}
|
|
1611
1623
|
),
|
|
1612
|
-
|
|
1613
|
-
|
|
1624
|
+
k && /* @__PURE__ */ t.jsxs("span", { className: "text-sm", children: [
|
|
1625
|
+
y(k.currentTime),
|
|
1614
1626
|
" /",
|
|
1615
1627
|
" ",
|
|
1616
|
-
|
|
1628
|
+
y(k.duration)
|
|
1617
1629
|
] })
|
|
1618
1630
|
]
|
|
1619
1631
|
}
|
|
1620
1632
|
),
|
|
1621
|
-
|
|
1633
|
+
T && /* @__PURE__ */ t.jsxs(
|
|
1622
1634
|
"div",
|
|
1623
1635
|
{
|
|
1624
1636
|
className: "group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",
|
|
@@ -1626,17 +1638,17 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1626
1638
|
/* @__PURE__ */ t.jsx(
|
|
1627
1639
|
"div",
|
|
1628
1640
|
{
|
|
1629
|
-
className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${
|
|
1630
|
-
onClick:
|
|
1631
|
-
children: /* @__PURE__ */ t.jsx(Je, { progress:
|
|
1641
|
+
className: `w-12 cursor-pointer py-1 opacity-0 transition-opacity ${T.isMuted ? "group-hover/volume:opacity-50" : "group-hover/volume:opacity-100"}`,
|
|
1642
|
+
onClick: p,
|
|
1643
|
+
children: /* @__PURE__ */ t.jsx(Je, { progress: T.volume })
|
|
1632
1644
|
}
|
|
1633
1645
|
),
|
|
1634
1646
|
/* @__PURE__ */ t.jsx(
|
|
1635
1647
|
"div",
|
|
1636
1648
|
{
|
|
1637
1649
|
className: "size-5 cursor-pointer",
|
|
1638
|
-
onClick: () =>
|
|
1639
|
-
children:
|
|
1650
|
+
onClick: () => h(!T.isMuted),
|
|
1651
|
+
children: T.isMuted ? /* @__PURE__ */ t.jsx(Nr, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Er, { className: "size-full" })
|
|
1640
1652
|
}
|
|
1641
1653
|
)
|
|
1642
1654
|
]
|
|
@@ -1647,8 +1659,8 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1647
1659
|
"div",
|
|
1648
1660
|
{
|
|
1649
1661
|
className: "cursor-pointer py-1",
|
|
1650
|
-
onClick:
|
|
1651
|
-
children: /* @__PURE__ */ t.jsx(Je, { progress:
|
|
1662
|
+
onClick: V,
|
|
1663
|
+
children: /* @__PURE__ */ t.jsx(Je, { progress: R })
|
|
1652
1664
|
}
|
|
1653
1665
|
)
|
|
1654
1666
|
]
|
|
@@ -1658,18 +1670,18 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1658
1670
|
"div",
|
|
1659
1671
|
{
|
|
1660
1672
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",
|
|
1661
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1673
|
+
children: /* @__PURE__ */ t.jsx(Et, { size: "lg" })
|
|
1662
1674
|
}
|
|
1663
1675
|
)
|
|
1664
1676
|
] }) : /* @__PURE__ */ t.jsx(
|
|
1665
1677
|
"div",
|
|
1666
1678
|
{
|
|
1667
1679
|
className: "absolute inset-0 flex items-center justify-center bg-foreground/25",
|
|
1668
|
-
children: /* @__PURE__ */ t.jsx(kr, { onClick:
|
|
1680
|
+
children: /* @__PURE__ */ t.jsx(kr, { onClick: a })
|
|
1669
1681
|
}
|
|
1670
1682
|
)
|
|
1671
1683
|
] });
|
|
1672
|
-
},
|
|
1684
|
+
}, zr = ({ index: e, item: r, isShown: n, lazy: o }) => {
|
|
1673
1685
|
const { type: i } = r;
|
|
1674
1686
|
let u;
|
|
1675
1687
|
if (o)
|
|
@@ -1680,7 +1692,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1680
1692
|
u = /* @__PURE__ */ t.jsx(It, { itemIndex: e, onlyPreload: !n, ...r });
|
|
1681
1693
|
break;
|
|
1682
1694
|
case "video":
|
|
1683
|
-
u = /* @__PURE__ */ t.jsx(
|
|
1695
|
+
u = /* @__PURE__ */ t.jsx(_r, { itemIndex: e, ...r });
|
|
1684
1696
|
break;
|
|
1685
1697
|
case "360":
|
|
1686
1698
|
u = /* @__PURE__ */ t.jsx(
|
|
@@ -1695,7 +1707,7 @@ const yt = Ie(null), jt = () => Me(yt), $e = () => {
|
|
|
1695
1707
|
}
|
|
1696
1708
|
return u;
|
|
1697
1709
|
}, Ir = (e) => {
|
|
1698
|
-
|
|
1710
|
+
Z(() => {
|
|
1699
1711
|
const r = (n) => {
|
|
1700
1712
|
n.key === "Escape" && e();
|
|
1701
1713
|
};
|
|
@@ -1785,7 +1797,7 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
1785
1797
|
d: "M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",
|
|
1786
1798
|
fill: "currentColor"
|
|
1787
1799
|
}
|
|
1788
|
-
) }) }),
|
|
1800
|
+
) }) }), Pr = ({
|
|
1789
1801
|
enabled: e,
|
|
1790
1802
|
onToggle: r,
|
|
1791
1803
|
label: n,
|
|
@@ -1794,7 +1806,7 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
1794
1806
|
}) => /* @__PURE__ */ t.jsxs(
|
|
1795
1807
|
"label",
|
|
1796
1808
|
{
|
|
1797
|
-
className:
|
|
1809
|
+
className: A(
|
|
1798
1810
|
"flex cursor-pointer items-center justify-center gap-x-2",
|
|
1799
1811
|
o
|
|
1800
1812
|
),
|
|
@@ -1812,14 +1824,14 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
1812
1824
|
/* @__PURE__ */ t.jsx(
|
|
1813
1825
|
"div",
|
|
1814
1826
|
{
|
|
1815
|
-
className:
|
|
1827
|
+
className: A(
|
|
1816
1828
|
"flex h-5 w-8 items-center justify-center rounded-full transition-colors",
|
|
1817
1829
|
e ? "bg-primary" : "bg-background/60"
|
|
1818
1830
|
),
|
|
1819
1831
|
children: /* @__PURE__ */ t.jsx(
|
|
1820
1832
|
"div",
|
|
1821
1833
|
{
|
|
1822
|
-
className:
|
|
1834
|
+
className: A(
|
|
1823
1835
|
"flex size-4 items-center justify-center rounded-full p-0.5 transition",
|
|
1824
1836
|
e ? "translate-x-1.5 bg-primary-foreground text-primary" : "-translate-x-1.5 bg-background text-foreground"
|
|
1825
1837
|
),
|
|
@@ -1830,7 +1842,7 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
1830
1842
|
)
|
|
1831
1843
|
]
|
|
1832
1844
|
}
|
|
1833
|
-
),
|
|
1845
|
+
), Ar = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, customizationKey: "UI_BURGER", children: /* @__PURE__ */ t.jsx(
|
|
1834
1846
|
"svg",
|
|
1835
1847
|
{
|
|
1836
1848
|
className: e,
|
|
@@ -1847,8 +1859,8 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
1847
1859
|
}
|
|
1848
1860
|
)
|
|
1849
1861
|
}
|
|
1850
|
-
) }),
|
|
1851
|
-
const { categories: r } = re(), { displayedCategoryId: n, changeCategory: o } = q(), [i, u] =
|
|
1862
|
+
) }), Zr = ({ sharedClassName: e }) => {
|
|
1863
|
+
const { categories: r } = re(), { displayedCategoryId: n, changeCategory: o } = q(), [i, u] = D(!1), c = () => {
|
|
1852
1864
|
u(!i);
|
|
1853
1865
|
}, l = () => {
|
|
1854
1866
|
u(!1);
|
|
@@ -1857,14 +1869,14 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
1857
1869
|
i && /* @__PURE__ */ t.jsx(
|
|
1858
1870
|
"div",
|
|
1859
1871
|
{
|
|
1860
|
-
className:
|
|
1872
|
+
className: A(e, "inset-0 small:hidden"),
|
|
1861
1873
|
onClick: l
|
|
1862
1874
|
}
|
|
1863
1875
|
),
|
|
1864
1876
|
/* @__PURE__ */ t.jsxs(
|
|
1865
1877
|
"div",
|
|
1866
1878
|
{
|
|
1867
|
-
className:
|
|
1879
|
+
className: A(
|
|
1868
1880
|
e,
|
|
1869
1881
|
ue("top-left"),
|
|
1870
1882
|
"flex gap-x-2 small:hidden"
|
|
@@ -1876,22 +1888,22 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
1876
1888
|
shape: "icon",
|
|
1877
1889
|
color: i ? "primary" : "neutral",
|
|
1878
1890
|
onClick: c,
|
|
1879
|
-
children: /* @__PURE__ */ t.jsx(
|
|
1891
|
+
children: /* @__PURE__ */ t.jsx(Ar, {})
|
|
1880
1892
|
}
|
|
1881
1893
|
),
|
|
1882
|
-
i && /* @__PURE__ */ t.jsx("div", { className: "rounded-ui-md bg-background", children: /* @__PURE__ */ t.jsx("ul", { className: "space-y-0.5 p-1", children: r.map(({ id:
|
|
1894
|
+
i && /* @__PURE__ */ t.jsx("div", { className: "rounded-ui-md bg-background", children: /* @__PURE__ */ t.jsx("ul", { className: "space-y-0.5 p-1", children: r.map(({ id: a, title: w }) => /* @__PURE__ */ t.jsx(
|
|
1883
1895
|
"li",
|
|
1884
1896
|
{
|
|
1885
|
-
className:
|
|
1897
|
+
className: A(
|
|
1886
1898
|
"cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-colors hover:bg-primary/30",
|
|
1887
|
-
|
|
1899
|
+
a === n && "bg-primary/50"
|
|
1888
1900
|
),
|
|
1889
1901
|
onClick: () => {
|
|
1890
|
-
o(
|
|
1902
|
+
o(a), u(!1);
|
|
1891
1903
|
},
|
|
1892
|
-
children:
|
|
1904
|
+
children: w
|
|
1893
1905
|
},
|
|
1894
|
-
|
|
1906
|
+
a
|
|
1895
1907
|
)) }) })
|
|
1896
1908
|
]
|
|
1897
1909
|
}
|
|
@@ -1899,24 +1911,24 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
1899
1911
|
/* @__PURE__ */ t.jsx(
|
|
1900
1912
|
"div",
|
|
1901
1913
|
{
|
|
1902
|
-
className:
|
|
1914
|
+
className: A(
|
|
1903
1915
|
e,
|
|
1904
1916
|
bt("top"),
|
|
1905
1917
|
"w-full overflow-x-auto max-small:hidden"
|
|
1906
1918
|
),
|
|
1907
|
-
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:
|
|
1919
|
+
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: a, title: w }) => /* @__PURE__ */ t.jsx(
|
|
1908
1920
|
K,
|
|
1909
1921
|
{
|
|
1910
|
-
variant:
|
|
1911
|
-
onClick: () => o(
|
|
1912
|
-
children:
|
|
1922
|
+
variant: a === n ? "fill" : "ghost",
|
|
1923
|
+
onClick: () => o(a),
|
|
1924
|
+
children: w
|
|
1913
1925
|
},
|
|
1914
|
-
|
|
1926
|
+
a
|
|
1915
1927
|
)) })
|
|
1916
1928
|
}
|
|
1917
1929
|
)
|
|
1918
1930
|
] });
|
|
1919
|
-
},
|
|
1931
|
+
}, Fr = () => {
|
|
1920
1932
|
const { flatten: e, infiniteCarrousel: r, permanentGallery: n } = J(), {
|
|
1921
1933
|
items: { length: o },
|
|
1922
1934
|
aspectRatioStyle: i
|
|
@@ -1924,42 +1936,42 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
1924
1936
|
slidable: u,
|
|
1925
1937
|
masterItemIndex: c,
|
|
1926
1938
|
prevItem: l,
|
|
1927
|
-
nextItem:
|
|
1928
|
-
showGalleryControls:
|
|
1939
|
+
nextItem: a,
|
|
1940
|
+
showGalleryControls: w,
|
|
1929
1941
|
enableHotspotsControl: d,
|
|
1930
1942
|
showHotspots: m,
|
|
1931
1943
|
toggleHotspots: f,
|
|
1932
|
-
showGallery:
|
|
1933
|
-
toggleGallery:
|
|
1934
|
-
extendMode:
|
|
1935
|
-
toggleExtendMode:
|
|
1936
|
-
shownDetails:
|
|
1937
|
-
isShowingDetails:
|
|
1938
|
-
resetShownDetails:
|
|
1939
|
-
showZoomControls:
|
|
1940
|
-
isZooming:
|
|
1941
|
-
canZoomIn:
|
|
1942
|
-
zoomIn:
|
|
1943
|
-
canZoomOut:
|
|
1944
|
-
zoomOut:
|
|
1945
|
-
resetView:
|
|
1946
|
-
} = q(),
|
|
1947
|
-
(
|
|
1948
|
-
Mr(
|
|
1944
|
+
showGallery: z,
|
|
1945
|
+
toggleGallery: v,
|
|
1946
|
+
extendMode: g,
|
|
1947
|
+
toggleExtendMode: I,
|
|
1948
|
+
shownDetails: x,
|
|
1949
|
+
isShowingDetails: T,
|
|
1950
|
+
resetShownDetails: b,
|
|
1951
|
+
showZoomControls: p,
|
|
1952
|
+
isZooming: h,
|
|
1953
|
+
canZoomIn: k,
|
|
1954
|
+
zoomIn: L,
|
|
1955
|
+
canZoomOut: R,
|
|
1956
|
+
zoomOut: V,
|
|
1957
|
+
resetView: y
|
|
1958
|
+
} = q(), E = M(
|
|
1959
|
+
(O) => {
|
|
1960
|
+
Mr(O) && b();
|
|
1949
1961
|
},
|
|
1950
|
-
[
|
|
1962
|
+
[b]
|
|
1951
1963
|
);
|
|
1952
|
-
Ir(
|
|
1953
|
-
const
|
|
1964
|
+
Ir(b);
|
|
1965
|
+
const _ = "absolute z-overlay", S = `transition-opacity ${w ? "opacity-100" : "opacity-0 !pointer-events-none"}`;
|
|
1954
1966
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1955
|
-
!e && !
|
|
1956
|
-
u && !
|
|
1967
|
+
!e && !h && /* @__PURE__ */ t.jsx(Zr, { sharedClassName: _ }),
|
|
1968
|
+
u && !h && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1957
1969
|
/* @__PURE__ */ t.jsx(
|
|
1958
1970
|
K,
|
|
1959
1971
|
{
|
|
1960
1972
|
shape: "icon",
|
|
1961
1973
|
color: "neutral",
|
|
1962
|
-
className:
|
|
1974
|
+
className: A(_, ue("middle-left")),
|
|
1963
1975
|
onClick: l,
|
|
1964
1976
|
disabled: !r && c <= 0,
|
|
1965
1977
|
children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_ARROW_LEFT", children: /* @__PURE__ */ t.jsx(Qe, { className: "size-full rotate-180" }) })
|
|
@@ -1970,8 +1982,8 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
1970
1982
|
{
|
|
1971
1983
|
shape: "icon",
|
|
1972
1984
|
color: "neutral",
|
|
1973
|
-
className:
|
|
1974
|
-
onClick:
|
|
1985
|
+
className: A(_, ue("middle-right")),
|
|
1986
|
+
onClick: a,
|
|
1975
1987
|
disabled: !r && c >= o - 1,
|
|
1976
1988
|
children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_ARROW_RIGHT", children: /* @__PURE__ */ t.jsx(Qe, { className: "size-full" }) })
|
|
1977
1989
|
}
|
|
@@ -1980,29 +1992,29 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
1980
1992
|
/* @__PURE__ */ t.jsxs(
|
|
1981
1993
|
"div",
|
|
1982
1994
|
{
|
|
1983
|
-
className:
|
|
1984
|
-
|
|
1995
|
+
className: A(
|
|
1996
|
+
_,
|
|
1985
1997
|
ue("bottom-fullW"),
|
|
1986
1998
|
"pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"
|
|
1987
1999
|
),
|
|
1988
2000
|
children: [
|
|
1989
|
-
!n && o > 1 && !
|
|
2001
|
+
!n && o > 1 && !h && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1990
2002
|
/* @__PURE__ */ t.jsx(
|
|
1991
2003
|
K,
|
|
1992
2004
|
{
|
|
1993
|
-
className:
|
|
2005
|
+
className: S,
|
|
1994
2006
|
variant: "fill",
|
|
1995
|
-
color:
|
|
2007
|
+
color: z ? "primary" : "neutral",
|
|
1996
2008
|
shape: "icon",
|
|
1997
|
-
onClick:
|
|
2009
|
+
onClick: v,
|
|
1998
2010
|
children: /* @__PURE__ */ t.jsx(U, { customizationKey: "CONTROLS_GALLERY", children: /* @__PURE__ */ t.jsx(Vr, { className: "size-full" }) })
|
|
1999
2011
|
}
|
|
2000
2012
|
),
|
|
2001
|
-
|
|
2002
|
-
|
|
2013
|
+
z && /* @__PURE__ */ t.jsx(
|
|
2014
|
+
_t,
|
|
2003
2015
|
{
|
|
2004
|
-
className:
|
|
2005
|
-
|
|
2016
|
+
className: A(
|
|
2017
|
+
S,
|
|
2006
2018
|
"[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"
|
|
2007
2019
|
),
|
|
2008
2020
|
containerClassName: "mx-1"
|
|
@@ -2010,16 +2022,16 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2010
2022
|
)
|
|
2011
2023
|
] }),
|
|
2012
2024
|
/* @__PURE__ */ t.jsxs("div", { className: "col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2", children: [
|
|
2013
|
-
d && !
|
|
2014
|
-
|
|
2025
|
+
d && !h && /* @__PURE__ */ t.jsx(Pr, { enabled: m, onToggle: f, children: /* @__PURE__ */ t.jsx(Sr, { className: "size-full" }) }),
|
|
2026
|
+
p && /* @__PURE__ */ t.jsxs("div", { className: "max-small:hidden", children: [
|
|
2015
2027
|
/* @__PURE__ */ t.jsx(
|
|
2016
2028
|
K,
|
|
2017
2029
|
{
|
|
2018
2030
|
className: "rounded-b-none",
|
|
2019
2031
|
color: "neutral",
|
|
2020
2032
|
shape: "icon",
|
|
2021
|
-
disabled: !
|
|
2022
|
-
onClick:
|
|
2033
|
+
disabled: !k,
|
|
2034
|
+
onClick: L,
|
|
2023
2035
|
children: /* @__PURE__ */ t.jsx(Hr, { className: "size-full" })
|
|
2024
2036
|
}
|
|
2025
2037
|
),
|
|
@@ -2030,8 +2042,8 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2030
2042
|
className: "rounded-t-none",
|
|
2031
2043
|
color: "neutral",
|
|
2032
2044
|
shape: "icon",
|
|
2033
|
-
disabled: !
|
|
2034
|
-
onClick:
|
|
2045
|
+
disabled: !R,
|
|
2046
|
+
onClick: V,
|
|
2035
2047
|
children: /* @__PURE__ */ t.jsx(Rr, { className: "size-full" })
|
|
2036
2048
|
}
|
|
2037
2049
|
)
|
|
@@ -2040,10 +2052,10 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2040
2052
|
K,
|
|
2041
2053
|
{
|
|
2042
2054
|
variant: "fill",
|
|
2043
|
-
color:
|
|
2055
|
+
color: g ? "primary" : "neutral",
|
|
2044
2056
|
shape: "icon",
|
|
2045
|
-
onClick:
|
|
2046
|
-
children:
|
|
2057
|
+
onClick: I,
|
|
2058
|
+
children: g ? /* @__PURE__ */ t.jsx(Or, { className: "size-full" }) : /* @__PURE__ */ t.jsx(Tr, { className: "size-full" })
|
|
2047
2059
|
}
|
|
2048
2060
|
)
|
|
2049
2061
|
] })
|
|
@@ -2053,55 +2065,55 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2053
2065
|
/* @__PURE__ */ t.jsx(
|
|
2054
2066
|
"div",
|
|
2055
2067
|
{
|
|
2056
|
-
className:
|
|
2057
|
-
|
|
2068
|
+
className: A(
|
|
2069
|
+
_,
|
|
2058
2070
|
"inset-0 flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",
|
|
2059
|
-
|
|
2071
|
+
T ? "opacity-100" : "pointer-events-none opacity-0"
|
|
2060
2072
|
),
|
|
2061
|
-
onClick:
|
|
2073
|
+
onClick: E,
|
|
2062
2074
|
children: /* @__PURE__ */ t.jsx(
|
|
2063
2075
|
"div",
|
|
2064
2076
|
{
|
|
2065
|
-
className:
|
|
2077
|
+
className: A(
|
|
2066
2078
|
"h-full w-3/5 bg-background transition-transform duration-details",
|
|
2067
|
-
|
|
2079
|
+
T ? "translate-x-0" : "translate-x-full"
|
|
2068
2080
|
),
|
|
2069
|
-
children: !!
|
|
2081
|
+
children: !!x && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2070
2082
|
/* @__PURE__ */ t.jsx(
|
|
2071
|
-
|
|
2083
|
+
me,
|
|
2072
2084
|
{
|
|
2073
2085
|
className: "w-full bg-foreground/65",
|
|
2074
2086
|
style: i,
|
|
2075
|
-
src:
|
|
2087
|
+
src: x.src,
|
|
2076
2088
|
imgInPlayerWidthRatio: 0.6
|
|
2077
2089
|
}
|
|
2078
2090
|
),
|
|
2079
2091
|
/* @__PURE__ */ t.jsxs(
|
|
2080
2092
|
"div",
|
|
2081
2093
|
{
|
|
2082
|
-
className:
|
|
2083
|
-
"space-y-1
|
|
2084
|
-
|
|
2094
|
+
className: A(
|
|
2095
|
+
"space-y-1 px-2 py-1 small:p-3",
|
|
2096
|
+
g && "large:p-4"
|
|
2085
2097
|
),
|
|
2086
2098
|
children: [
|
|
2087
|
-
|
|
2099
|
+
x.title && /* @__PURE__ */ t.jsx(
|
|
2088
2100
|
"span",
|
|
2089
2101
|
{
|
|
2090
|
-
className:
|
|
2091
|
-
"text-sm small:text-base",
|
|
2092
|
-
|
|
2102
|
+
className: A(
|
|
2103
|
+
"text-sm font-semibold small:text-base small:font-bold",
|
|
2104
|
+
g && "large:text-lg"
|
|
2093
2105
|
),
|
|
2094
|
-
children:
|
|
2106
|
+
children: x.title
|
|
2095
2107
|
}
|
|
2096
2108
|
),
|
|
2097
|
-
|
|
2109
|
+
x.text && /* @__PURE__ */ t.jsx(
|
|
2098
2110
|
"p",
|
|
2099
2111
|
{
|
|
2100
|
-
className:
|
|
2101
|
-
"text-xs small:text-sm",
|
|
2102
|
-
|
|
2112
|
+
className: A(
|
|
2113
|
+
"text-xs text-foreground/65 small:text-sm",
|
|
2114
|
+
g && "large:text-base"
|
|
2103
2115
|
),
|
|
2104
|
-
children:
|
|
2116
|
+
children: x.text
|
|
2105
2117
|
}
|
|
2106
2118
|
)
|
|
2107
2119
|
]
|
|
@@ -2112,11 +2124,11 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2112
2124
|
)
|
|
2113
2125
|
}
|
|
2114
2126
|
),
|
|
2115
|
-
(
|
|
2127
|
+
(h || T) && /* @__PURE__ */ t.jsx(
|
|
2116
2128
|
kt,
|
|
2117
2129
|
{
|
|
2118
|
-
className:
|
|
2119
|
-
onClick:
|
|
2130
|
+
className: A(_, ue("top-right")),
|
|
2131
|
+
onClick: y
|
|
2120
2132
|
}
|
|
2121
2133
|
)
|
|
2122
2134
|
] });
|
|
@@ -2125,203 +2137,203 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2125
2137
|
slidable: u,
|
|
2126
2138
|
carrouselItemIndex: c,
|
|
2127
2139
|
setCarrouselItemIndex: l,
|
|
2128
|
-
itemIndexCommand:
|
|
2129
|
-
setItemIndexCommand:
|
|
2140
|
+
itemIndexCommand: a,
|
|
2141
|
+
setItemIndexCommand: w,
|
|
2130
2142
|
specialCommand: d,
|
|
2131
2143
|
isRunningSpecialCommand: m,
|
|
2132
2144
|
finishSpecialCommand: f,
|
|
2133
|
-
extendMode:
|
|
2134
|
-
extendTransition:
|
|
2135
|
-
isZooming:
|
|
2136
|
-
} = q(),
|
|
2137
|
-
if (!
|
|
2138
|
-
throw new Error(`[${
|
|
2139
|
-
return
|
|
2140
|
-
}, []),
|
|
2141
|
-
|
|
2142
|
-
}, []),
|
|
2143
|
-
const
|
|
2144
|
-
(H,
|
|
2145
|
-
const W =
|
|
2146
|
-
return Math.abs(W -
|
|
2145
|
+
extendMode: z,
|
|
2146
|
+
extendTransition: v,
|
|
2147
|
+
isZooming: g
|
|
2148
|
+
} = q(), I = $(null), x = M((C) => {
|
|
2149
|
+
if (!I.current)
|
|
2150
|
+
throw new Error(`[${C ?? "sliderOrThrow"}] slider.current is null`);
|
|
2151
|
+
return I.current;
|
|
2152
|
+
}, []), T = $(!1), b = $(null), p = $(null), h = $(null), k = M(() => {
|
|
2153
|
+
h.current && cancelAnimationFrame(h.current);
|
|
2154
|
+
}, []), L = M(() => {
|
|
2155
|
+
const C = x("computeClosestSnapIndex"), s = Array.from(C.children), j = C.scrollLeft, N = s.reduce(
|
|
2156
|
+
(H, F, Y) => {
|
|
2157
|
+
const W = F.offsetLeft;
|
|
2158
|
+
return Math.abs(W - j) < Math.abs(s[H].offsetLeft - j) ? Y : H;
|
|
2147
2159
|
},
|
|
2148
2160
|
0
|
|
2149
2161
|
);
|
|
2150
|
-
return d === "first_to_last" ? Ge(
|
|
2151
|
-
}, [d,
|
|
2152
|
-
(
|
|
2153
|
-
const
|
|
2154
|
-
|
|
2162
|
+
return d === "first_to_last" ? Ge(N, o.length) : d === "last_to_first" ? Ge(N - 1, o.length) : N;
|
|
2163
|
+
}, [d, x, o.length]), R = M(
|
|
2164
|
+
(C) => {
|
|
2165
|
+
const s = x("setStyleCursor");
|
|
2166
|
+
s.style.cursor = C;
|
|
2155
2167
|
},
|
|
2156
|
-
[
|
|
2157
|
-
),
|
|
2158
|
-
(
|
|
2159
|
-
const
|
|
2160
|
-
|
|
2168
|
+
[x]
|
|
2169
|
+
), V = M(
|
|
2170
|
+
(C) => {
|
|
2171
|
+
const s = x("setStyleSnapState");
|
|
2172
|
+
C === "mandatory" ? s.style.scrollSnapType = "x mandatory" : s.style.scrollSnapType = "none";
|
|
2161
2173
|
},
|
|
2162
|
-
[
|
|
2163
|
-
),
|
|
2164
|
-
(
|
|
2165
|
-
|
|
2166
|
-
const
|
|
2167
|
-
|
|
2168
|
-
left:
|
|
2174
|
+
[x]
|
|
2175
|
+
), y = M(
|
|
2176
|
+
(C, s, j) => {
|
|
2177
|
+
k();
|
|
2178
|
+
const N = x("scrollToIndex"), H = Array.from(N.children), F = N.scrollLeft, Y = H[C].offsetLeft, W = (pe) => {
|
|
2179
|
+
N.scrollTo({
|
|
2180
|
+
left: pe,
|
|
2169
2181
|
behavior: "instant"
|
|
2170
2182
|
});
|
|
2171
2183
|
}, G = () => {
|
|
2172
|
-
W(Y),
|
|
2173
|
-
}, X = Math.abs(
|
|
2174
|
-
if (X < 1 ||
|
|
2184
|
+
W(Y), V("mandatory"), j == null || j();
|
|
2185
|
+
}, X = Math.abs(F - Y);
|
|
2186
|
+
if (X < 1 || s === "instant") {
|
|
2175
2187
|
G();
|
|
2176
2188
|
return;
|
|
2177
2189
|
}
|
|
2178
2190
|
const B = se(X / 2.5, 300, 1e3), ne = (/* @__PURE__ */ new Date()).getTime();
|
|
2179
|
-
|
|
2191
|
+
V("none");
|
|
2180
2192
|
const je = () => {
|
|
2181
|
-
const
|
|
2193
|
+
const pe = () => {
|
|
2182
2194
|
const ke = (/* @__PURE__ */ new Date()).getTime() - ne;
|
|
2183
2195
|
if (ke >= B) {
|
|
2184
2196
|
G();
|
|
2185
2197
|
return;
|
|
2186
2198
|
}
|
|
2187
|
-
const ae = Math.min(ke / B, 1),
|
|
2199
|
+
const ae = Math.min(ke / B, 1), he = zt(ae), Te = _e(F, Y, he);
|
|
2188
2200
|
W(Te), je();
|
|
2189
2201
|
};
|
|
2190
|
-
|
|
2202
|
+
h.current = requestAnimationFrame(pe);
|
|
2191
2203
|
};
|
|
2192
2204
|
je();
|
|
2193
2205
|
},
|
|
2194
|
-
[
|
|
2195
|
-
), [
|
|
2196
|
-
|
|
2197
|
-
const
|
|
2198
|
-
clearTimeout(
|
|
2199
|
-
const
|
|
2200
|
-
|
|
2206
|
+
[k, x, V]
|
|
2207
|
+
), [E, _] = D(), S = !!E;
|
|
2208
|
+
Z(() => {
|
|
2209
|
+
const C = () => {
|
|
2210
|
+
clearTimeout(E);
|
|
2211
|
+
const s = setTimeout(() => {
|
|
2212
|
+
_(void 0);
|
|
2201
2213
|
}, ft);
|
|
2202
|
-
|
|
2214
|
+
_(s);
|
|
2203
2215
|
};
|
|
2204
|
-
return addEventListener("resize",
|
|
2205
|
-
removeEventListener("resize",
|
|
2216
|
+
return addEventListener("resize", C), document.addEventListener("fullscreenchange", C), () => {
|
|
2217
|
+
removeEventListener("resize", C), document.removeEventListener("fullscreenchange", C);
|
|
2206
2218
|
};
|
|
2207
|
-
}, [
|
|
2208
|
-
const
|
|
2209
|
-
Number.isNaN(
|
|
2219
|
+
}, [E]), Z(() => {
|
|
2220
|
+
const C = L();
|
|
2221
|
+
Number.isNaN(C) || C !== c && y(c, "instant");
|
|
2210
2222
|
}, [
|
|
2211
2223
|
c,
|
|
2212
|
-
|
|
2213
|
-
|
|
2224
|
+
y,
|
|
2225
|
+
L,
|
|
2214
2226
|
// - Run the effect when those values change
|
|
2215
2227
|
o,
|
|
2216
|
-
_,
|
|
2217
|
-
n,
|
|
2218
2228
|
E,
|
|
2219
|
-
|
|
2220
|
-
|
|
2229
|
+
n,
|
|
2230
|
+
z,
|
|
2231
|
+
v
|
|
2232
|
+
]), Z(() => {
|
|
2221
2233
|
if (!u || m) {
|
|
2222
|
-
|
|
2234
|
+
R("auto");
|
|
2223
2235
|
return;
|
|
2224
2236
|
}
|
|
2225
|
-
const
|
|
2226
|
-
if (!
|
|
2237
|
+
const C = I.current;
|
|
2238
|
+
if (!C)
|
|
2227
2239
|
return;
|
|
2228
|
-
|
|
2229
|
-
const
|
|
2230
|
-
H.button === 0 && (H.preventDefault(), H.stopPropagation(),
|
|
2231
|
-
},
|
|
2232
|
-
if (!
|
|
2240
|
+
R("grab"), V("mandatory");
|
|
2241
|
+
const s = (H) => {
|
|
2242
|
+
H.button === 0 && (H.preventDefault(), H.stopPropagation(), k(), T.current = !0, b.current = H.pageX - C.offsetLeft, p.current = C.scrollLeft, R("grabbing"));
|
|
2243
|
+
}, j = (H) => {
|
|
2244
|
+
if (!T.current)
|
|
2233
2245
|
return;
|
|
2234
|
-
if (
|
|
2246
|
+
if (b.current === null)
|
|
2235
2247
|
throw new Error("[onMouseMove] startX is null");
|
|
2236
|
-
|
|
2237
|
-
const
|
|
2248
|
+
V("none");
|
|
2249
|
+
const F = H.pageX - C.offsetLeft - b.current;
|
|
2238
2250
|
requestAnimationFrame(() => {
|
|
2239
|
-
if (
|
|
2251
|
+
if (p.current === null)
|
|
2240
2252
|
throw new Error("[onMouseMove] scrollLeft is null");
|
|
2241
|
-
|
|
2253
|
+
C.scrollLeft = p.current - F;
|
|
2242
2254
|
});
|
|
2243
|
-
},
|
|
2244
|
-
if (!
|
|
2255
|
+
}, N = () => {
|
|
2256
|
+
if (!T.current)
|
|
2245
2257
|
return;
|
|
2246
|
-
|
|
2247
|
-
const H =
|
|
2248
|
-
|
|
2258
|
+
T.current = !1, R("grab");
|
|
2259
|
+
const H = L();
|
|
2260
|
+
y(H, "smooth");
|
|
2249
2261
|
};
|
|
2250
|
-
return
|
|
2251
|
-
|
|
2262
|
+
return C.addEventListener("mousedown", s), document.addEventListener("mousemove", j), document.addEventListener("mouseleave", N), document.addEventListener("mouseup", N), document.addEventListener("contextmenu", N), () => {
|
|
2263
|
+
C.removeEventListener("mousedown", s), document.removeEventListener("mousemove", j), document.removeEventListener("mouseleave", N), document.removeEventListener("mouseup", N), document.removeEventListener("contextmenu", N);
|
|
2252
2264
|
};
|
|
2253
2265
|
}, [
|
|
2254
|
-
|
|
2255
|
-
|
|
2266
|
+
k,
|
|
2267
|
+
L,
|
|
2256
2268
|
m,
|
|
2257
|
-
|
|
2269
|
+
y,
|
|
2270
|
+
R,
|
|
2258
2271
|
V,
|
|
2259
|
-
S,
|
|
2260
2272
|
u
|
|
2261
|
-
]),
|
|
2262
|
-
if (
|
|
2273
|
+
]), Z(() => {
|
|
2274
|
+
if (v || S)
|
|
2263
2275
|
return;
|
|
2264
|
-
const
|
|
2265
|
-
if (!
|
|
2276
|
+
const C = I.current;
|
|
2277
|
+
if (!C)
|
|
2266
2278
|
return;
|
|
2267
|
-
const
|
|
2268
|
-
const
|
|
2269
|
-
Number.isNaN(
|
|
2279
|
+
const s = () => {
|
|
2280
|
+
const j = L();
|
|
2281
|
+
Number.isNaN(j) || (l(j), j === a && w(null));
|
|
2270
2282
|
};
|
|
2271
|
-
return
|
|
2272
|
-
|
|
2283
|
+
return C.addEventListener("scroll", s), () => {
|
|
2284
|
+
C.removeEventListener("scroll", s);
|
|
2273
2285
|
};
|
|
2274
2286
|
}, [
|
|
2275
|
-
|
|
2276
|
-
|
|
2287
|
+
L,
|
|
2288
|
+
v,
|
|
2277
2289
|
m,
|
|
2278
|
-
|
|
2279
|
-
|
|
2290
|
+
S,
|
|
2291
|
+
a,
|
|
2280
2292
|
o.length,
|
|
2281
2293
|
l,
|
|
2282
|
-
|
|
2283
|
-
]),
|
|
2284
|
-
if (
|
|
2294
|
+
w
|
|
2295
|
+
]), Z(() => {
|
|
2296
|
+
if (a === null)
|
|
2285
2297
|
return;
|
|
2286
|
-
const
|
|
2298
|
+
const C = () => f();
|
|
2287
2299
|
switch (d) {
|
|
2288
2300
|
case "first_to_last":
|
|
2289
|
-
|
|
2301
|
+
y(o.length, "instant"), y(o.length - 1, "smooth", C);
|
|
2290
2302
|
break;
|
|
2291
2303
|
case "last_to_first":
|
|
2292
|
-
|
|
2304
|
+
y(0, "instant"), y(1, "smooth", C);
|
|
2293
2305
|
break;
|
|
2294
2306
|
case "instant":
|
|
2295
|
-
|
|
2307
|
+
y(a, "instant", C);
|
|
2296
2308
|
break;
|
|
2297
2309
|
default:
|
|
2298
|
-
|
|
2310
|
+
y(a, "smooth");
|
|
2299
2311
|
break;
|
|
2300
2312
|
}
|
|
2301
2313
|
}, [
|
|
2302
2314
|
d,
|
|
2303
2315
|
f,
|
|
2304
|
-
|
|
2316
|
+
a,
|
|
2305
2317
|
o.length,
|
|
2306
|
-
|
|
2318
|
+
y
|
|
2307
2319
|
]);
|
|
2308
|
-
const
|
|
2320
|
+
const O = () => /* @__PURE__ */ t.jsx("div", { className: "h-full", style: i });
|
|
2309
2321
|
return /* @__PURE__ */ t.jsxs(
|
|
2310
2322
|
"div",
|
|
2311
2323
|
{
|
|
2312
|
-
className:
|
|
2324
|
+
className: A("relative overflow-hidden rounded-carrousel", e),
|
|
2313
2325
|
style: i,
|
|
2314
2326
|
children: [
|
|
2315
2327
|
/* @__PURE__ */ t.jsxs(
|
|
2316
2328
|
"div",
|
|
2317
2329
|
{
|
|
2318
|
-
ref:
|
|
2330
|
+
ref: I,
|
|
2319
2331
|
className: `flex size-full ${u ? "overflow-x-auto no-scrollbar *:snap-start *:snap-always" : "justify-center"}`,
|
|
2320
2332
|
children: [
|
|
2321
|
-
d === "last_to_first" && /* @__PURE__ */ t.jsx(
|
|
2322
|
-
o.map((
|
|
2323
|
-
const
|
|
2324
|
-
!(r && H &&
|
|
2333
|
+
d === "last_to_first" && /* @__PURE__ */ t.jsx(O, {}),
|
|
2334
|
+
o.map((C, s) => {
|
|
2335
|
+
const j = C.type === "360" ? C.images[0] : C.src, N = s === c, H = s === 0, F = c === o.length - 1, Y = s === o.length - 1, W = c === 0, G = Math.abs(s - c) > 1 && // Not next to the current one
|
|
2336
|
+
!(r && H && F) && // Not the last one when the first one is shown (only for infinite carrousel)
|
|
2325
2337
|
!(r && Y && W), X = (() => {
|
|
2326
2338
|
if (d === "first_to_last" && H)
|
|
2327
2339
|
return {
|
|
@@ -2338,30 +2350,30 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2338
2350
|
className: "relative h-full bg-foreground/50",
|
|
2339
2351
|
style: { ...i, ...X },
|
|
2340
2352
|
children: /* @__PURE__ */ t.jsx(
|
|
2341
|
-
|
|
2353
|
+
zr,
|
|
2342
2354
|
{
|
|
2343
|
-
index:
|
|
2344
|
-
item:
|
|
2345
|
-
isShown:
|
|
2355
|
+
index: s,
|
|
2356
|
+
item: C,
|
|
2357
|
+
isShown: N,
|
|
2346
2358
|
lazy: G
|
|
2347
2359
|
}
|
|
2348
2360
|
)
|
|
2349
2361
|
},
|
|
2350
|
-
`${
|
|
2362
|
+
`${s}_${j}`
|
|
2351
2363
|
);
|
|
2352
2364
|
}),
|
|
2353
|
-
d === "first_to_last" && /* @__PURE__ */ t.jsx(
|
|
2365
|
+
d === "first_to_last" && /* @__PURE__ */ t.jsx(O, {})
|
|
2354
2366
|
]
|
|
2355
2367
|
}
|
|
2356
2368
|
),
|
|
2357
|
-
u && !
|
|
2369
|
+
u && !g && /* @__PURE__ */ t.jsx("div", { className: `absolute ${ue("top-right")}`, children: /* @__PURE__ */ t.jsx(
|
|
2358
2370
|
hr,
|
|
2359
2371
|
{
|
|
2360
2372
|
currentIndex: c,
|
|
2361
2373
|
maxIndex: o.length - 1
|
|
2362
2374
|
}
|
|
2363
2375
|
) }),
|
|
2364
|
-
/* @__PURE__ */ t.jsx(
|
|
2376
|
+
/* @__PURE__ */ t.jsx(Fr, {})
|
|
2365
2377
|
]
|
|
2366
2378
|
}
|
|
2367
2379
|
);
|
|
@@ -2373,45 +2385,45 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2373
2385
|
resetShownDetails: u,
|
|
2374
2386
|
extendMode: c,
|
|
2375
2387
|
disableExtendMode: l,
|
|
2376
|
-
isZooming:
|
|
2377
|
-
resetZoom:
|
|
2388
|
+
isZooming: a,
|
|
2389
|
+
resetZoom: w,
|
|
2378
2390
|
fakeFullScreen: d
|
|
2379
|
-
} = q(), m = $(null), f = $(null),
|
|
2380
|
-
return
|
|
2391
|
+
} = q(), m = $(null), f = $(null), z = $(null);
|
|
2392
|
+
return Z(() => {
|
|
2381
2393
|
if (!c)
|
|
2382
2394
|
return;
|
|
2383
|
-
const
|
|
2384
|
-
if (!
|
|
2395
|
+
const v = m.current, g = f.current, I = z.current;
|
|
2396
|
+
if (!v || !g || !I)
|
|
2385
2397
|
return;
|
|
2386
|
-
let
|
|
2387
|
-
const
|
|
2388
|
-
|
|
2389
|
-
},
|
|
2390
|
-
|
|
2398
|
+
let x = !1;
|
|
2399
|
+
const T = (h) => [v, g, I].includes(h.target), b = (h) => {
|
|
2400
|
+
x = T(h);
|
|
2401
|
+
}, p = (h) => {
|
|
2402
|
+
x && (T(h) && l(), x = !1);
|
|
2391
2403
|
};
|
|
2392
|
-
return
|
|
2393
|
-
|
|
2404
|
+
return v.addEventListener("mousedown", b), v.addEventListener("mouseup", p), () => {
|
|
2405
|
+
v.removeEventListener("mousedown", b), v.removeEventListener("mouseup", p);
|
|
2394
2406
|
};
|
|
2395
|
-
}, [l, c]),
|
|
2396
|
-
const
|
|
2397
|
-
|
|
2407
|
+
}, [l, c]), Z(() => {
|
|
2408
|
+
const v = (g) => {
|
|
2409
|
+
g.key === "Escape" && (a ? w() : i ? u() : l());
|
|
2398
2410
|
};
|
|
2399
|
-
return addEventListener("keydown",
|
|
2400
|
-
removeEventListener("keydown",
|
|
2411
|
+
return addEventListener("keydown", v), () => {
|
|
2412
|
+
removeEventListener("keydown", v);
|
|
2401
2413
|
};
|
|
2402
2414
|
}, [
|
|
2403
2415
|
l,
|
|
2404
2416
|
i,
|
|
2405
|
-
|
|
2417
|
+
a,
|
|
2406
2418
|
o,
|
|
2407
2419
|
n,
|
|
2408
2420
|
u,
|
|
2409
|
-
|
|
2421
|
+
w
|
|
2410
2422
|
]), /* @__PURE__ */ t.jsxs(
|
|
2411
2423
|
"div",
|
|
2412
2424
|
{
|
|
2413
2425
|
ref: m,
|
|
2414
|
-
className:
|
|
2426
|
+
className: A(
|
|
2415
2427
|
"relative",
|
|
2416
2428
|
c && "flex size-full items-center justify-center bg-foreground/75",
|
|
2417
2429
|
d && "fixed inset-0 z-overlay"
|
|
@@ -2426,15 +2438,15 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2426
2438
|
/* @__PURE__ */ t.jsx(
|
|
2427
2439
|
"div",
|
|
2428
2440
|
{
|
|
2429
|
-
ref:
|
|
2430
|
-
className:
|
|
2441
|
+
ref: z,
|
|
2442
|
+
className: A(
|
|
2431
2443
|
c && "mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"
|
|
2432
2444
|
),
|
|
2433
2445
|
style: r,
|
|
2434
|
-
children: /* @__PURE__ */ t.jsx(Dr, { className:
|
|
2446
|
+
children: /* @__PURE__ */ t.jsx(Dr, { className: A(c && "h-full min-w-0") })
|
|
2435
2447
|
}
|
|
2436
2448
|
),
|
|
2437
|
-
e && /* @__PURE__ */ t.jsx(
|
|
2449
|
+
e && /* @__PURE__ */ t.jsx(_t, { className: A(c && "my-2 shrink-0 small:my-4") })
|
|
2438
2450
|
]
|
|
2439
2451
|
}
|
|
2440
2452
|
),
|
|
@@ -2457,73 +2469,73 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2457
2469
|
isSuccess: i,
|
|
2458
2470
|
error: u
|
|
2459
2471
|
} = Gt(e);
|
|
2460
|
-
return
|
|
2461
|
-
u ? r(st, u) :
|
|
2462
|
-
}, [r, u, i, o]), u ? /* @__PURE__ */ t.jsx(
|
|
2472
|
+
return Z(() => {
|
|
2473
|
+
u ? r(st, u) : o === "fetching" ? r(nt, e) : i && r(ot, n);
|
|
2474
|
+
}, [n, e, r, u, i, o]), u ? /* @__PURE__ */ t.jsx(Ct, { title: "Failed to fetch composition", error: u }) : i ? /* @__PURE__ */ t.jsx(Kt, { composition: n, children: /* @__PURE__ */ t.jsx(Jt, { children: /* @__PURE__ */ t.jsx($r, {}) }) }) : /* @__PURE__ */ t.jsxs("div", { className: "flex aspect-video size-full flex-col items-center justify-center gap-y-4", children: [
|
|
2463
2475
|
/* @__PURE__ */ t.jsx("div", { className: "text-xl", children: "Loading WebPlayer..." }),
|
|
2464
|
-
/* @__PURE__ */ t.jsx(
|
|
2476
|
+
/* @__PURE__ */ t.jsx(Et, { color: "primary" })
|
|
2465
2477
|
] });
|
|
2466
2478
|
}, Wr = ({
|
|
2467
2479
|
compositionUrl: e,
|
|
2468
|
-
flatten: r =
|
|
2469
|
-
infiniteCarrousel: n =
|
|
2480
|
+
flatten: r = Zt,
|
|
2481
|
+
infiniteCarrousel: n = Ft,
|
|
2470
2482
|
permanentGallery: o = Dt,
|
|
2471
2483
|
imageLoadStrategy: i = $t,
|
|
2472
2484
|
preventFullScreen: u = Yt,
|
|
2473
2485
|
eventPrefix: c = mt,
|
|
2474
2486
|
reverse360: l = Wt,
|
|
2475
|
-
children:
|
|
2487
|
+
children: a,
|
|
2476
2488
|
// NOTE: use to customize the player, not to display the content
|
|
2477
|
-
...
|
|
2489
|
+
...w
|
|
2478
2490
|
}) => {
|
|
2479
|
-
const d = $(null), [m, f] =
|
|
2480
|
-
(
|
|
2481
|
-
const
|
|
2482
|
-
document.dispatchEvent(
|
|
2491
|
+
const d = $(null), [m, f] = D(), [z, v] = D(0.5), [g, I] = D(!1), x = M(
|
|
2492
|
+
(p, h) => {
|
|
2493
|
+
const k = c + p, L = new CustomEvent(k, { detail: h });
|
|
2494
|
+
document.dispatchEvent(L);
|
|
2483
2495
|
},
|
|
2484
2496
|
[c]
|
|
2485
2497
|
);
|
|
2486
|
-
|
|
2487
|
-
if (
|
|
2488
|
-
|
|
2498
|
+
Z(() => {
|
|
2499
|
+
if (g) {
|
|
2500
|
+
v(1);
|
|
2489
2501
|
return;
|
|
2490
2502
|
}
|
|
2491
2503
|
if (!d.current)
|
|
2492
2504
|
return;
|
|
2493
|
-
const
|
|
2494
|
-
const
|
|
2495
|
-
f(
|
|
2505
|
+
const p = d.current, h = () => {
|
|
2506
|
+
const k = window.innerWidth, L = getComputedStyle(p), R = p.getBoundingClientRect().width + parseFloat(L.marginLeft) + parseFloat(L.marginRight);
|
|
2507
|
+
f(R), v(R / k);
|
|
2496
2508
|
};
|
|
2497
|
-
return
|
|
2498
|
-
removeEventListener("resize",
|
|
2509
|
+
return h(), addEventListener("resize", h), () => {
|
|
2510
|
+
removeEventListener("resize", h);
|
|
2499
2511
|
};
|
|
2500
|
-
}, [
|
|
2512
|
+
}, [g]), Z(() => {
|
|
2501
2513
|
if (u)
|
|
2502
2514
|
return;
|
|
2503
|
-
const
|
|
2504
|
-
if (!
|
|
2515
|
+
const p = d.current;
|
|
2516
|
+
if (!p)
|
|
2505
2517
|
throw new Error("Wrapper not found");
|
|
2506
|
-
const
|
|
2507
|
-
const { fullscreenElement:
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
(
|
|
2518
|
+
const h = () => {
|
|
2519
|
+
const { fullscreenElement: k } = document;
|
|
2520
|
+
I(
|
|
2521
|
+
k === p || // NOTE: For custom element, the web browser is making the whole custom element full-screen and not only the wrapper
|
|
2522
|
+
(k == null ? void 0 : k.localName) === Fe
|
|
2511
2523
|
);
|
|
2512
2524
|
};
|
|
2513
|
-
return document.addEventListener("fullscreenchange",
|
|
2514
|
-
document.removeEventListener("fullscreenchange",
|
|
2525
|
+
return document.addEventListener("fullscreenchange", h), () => {
|
|
2526
|
+
document.removeEventListener("fullscreenchange", h);
|
|
2515
2527
|
};
|
|
2516
2528
|
}, [u]);
|
|
2517
|
-
const
|
|
2518
|
-
const
|
|
2519
|
-
if (!
|
|
2529
|
+
const T = M(async () => {
|
|
2530
|
+
const p = d.current;
|
|
2531
|
+
if (!p)
|
|
2520
2532
|
throw new Error("Wrapper not found");
|
|
2521
2533
|
try {
|
|
2522
|
-
return await
|
|
2534
|
+
return await p.requestFullscreen(), !0;
|
|
2523
2535
|
} catch {
|
|
2524
2536
|
return !1;
|
|
2525
2537
|
}
|
|
2526
|
-
}, []),
|
|
2538
|
+
}, []), b = M(async () => {
|
|
2527
2539
|
try {
|
|
2528
2540
|
return await document.exitFullscreen(), !0;
|
|
2529
2541
|
} catch {
|
|
@@ -2533,18 +2545,18 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2533
2545
|
return /* @__PURE__ */ t.jsx(
|
|
2534
2546
|
qt,
|
|
2535
2547
|
{
|
|
2536
|
-
...
|
|
2548
|
+
...w,
|
|
2537
2549
|
reverse360: l,
|
|
2538
2550
|
imageLoadStrategy: i,
|
|
2539
2551
|
flatten: r,
|
|
2540
2552
|
infiniteCarrousel: n,
|
|
2541
2553
|
preventFullScreen: u,
|
|
2542
2554
|
permanentGallery: o,
|
|
2543
|
-
emitEvent:
|
|
2544
|
-
playerInViewportWidthRatio:
|
|
2545
|
-
isFullScreen:
|
|
2546
|
-
requestFullscreen:
|
|
2547
|
-
exitFullscreen:
|
|
2555
|
+
emitEvent: x,
|
|
2556
|
+
playerInViewportWidthRatio: z,
|
|
2557
|
+
isFullScreen: g,
|
|
2558
|
+
requestFullscreen: T,
|
|
2559
|
+
exitFullscreen: b,
|
|
2548
2560
|
children: /* @__PURE__ */ t.jsxs(ar, { children: [
|
|
2549
2561
|
/* @__PURE__ */ t.jsx(
|
|
2550
2562
|
"div",
|
|
@@ -2559,13 +2571,13 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2559
2571
|
children: /* @__PURE__ */ t.jsx(Yr, { compositionUrl: e })
|
|
2560
2572
|
}
|
|
2561
2573
|
),
|
|
2562
|
-
|
|
2574
|
+
a
|
|
2563
2575
|
] })
|
|
2564
2576
|
}
|
|
2565
2577
|
);
|
|
2566
2578
|
}, Ur = ({ name: e, color: r, children: n }) => {
|
|
2567
2579
|
const { setIconConfig: o, resetIconConfig: i } = $e();
|
|
2568
|
-
return
|
|
2580
|
+
return Z(() => {
|
|
2569
2581
|
if (!(!n && !r))
|
|
2570
2582
|
return o(e, {
|
|
2571
2583
|
Icon: n,
|
|
@@ -2574,8 +2586,8 @@ const Qe = ({ className: e }) => /* @__PURE__ */ t.jsx(U, { className: e, custom
|
|
|
2574
2586
|
i(e);
|
|
2575
2587
|
};
|
|
2576
2588
|
}, [n, r, e, i, o]), null;
|
|
2577
|
-
}, Xr = (e) => jt() ? /* @__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) );--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{top:0;right:0;bottom:0;left: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-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}.-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-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-1\\.5{padding:.375rem}.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}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.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-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-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);top:0;right:0;bottom:0;left: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-opacity:after{content:var(--tw-content);transition-property:opacity;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-2{padding:.5rem}.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}}@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-3{padding:.75rem}.large\\:text-base{font-size:1rem;line-height:1.5rem}.large\\:text-lg{font-size:1.125rem;line-height:1.75rem}}';
|
|
2578
|
-
var Mt = { exports: {} },
|
|
2589
|
+
}, Xr = (e) => jt() ? /* @__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) );--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{top:0;right:0;bottom:0;left: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-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}.-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-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))}.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-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-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);top:0;right:0;bottom:0;left: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-opacity:after{content:var(--tw-content);transition-property:opacity;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}}';
|
|
2590
|
+
var Mt = { exports: {} }, be = {};
|
|
2579
2591
|
/**
|
|
2580
2592
|
* @license React
|
|
2581
2593
|
* react-jsx-runtime.production.min.js
|
|
@@ -2587,20 +2599,20 @@ var Mt = { exports: {} }, we = {};
|
|
|
2587
2599
|
*/
|
|
2588
2600
|
var et;
|
|
2589
2601
|
function Gr() {
|
|
2590
|
-
if (et) return
|
|
2602
|
+
if (et) return be;
|
|
2591
2603
|
et = 1;
|
|
2592
2604
|
var e = ye, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
2593
|
-
function c(l,
|
|
2594
|
-
var d, m = {}, f = null,
|
|
2595
|
-
|
|
2596
|
-
for (d in
|
|
2597
|
-
if (l && l.defaultProps) for (d in
|
|
2598
|
-
return { $$typeof: r, type: l, key: f, ref:
|
|
2605
|
+
function c(l, a, w) {
|
|
2606
|
+
var d, m = {}, f = null, z = null;
|
|
2607
|
+
w !== void 0 && (f = "" + w), a.key !== void 0 && (f = "" + a.key), a.ref !== void 0 && (z = a.ref);
|
|
2608
|
+
for (d in a) o.call(a, d) && !u.hasOwnProperty(d) && (m[d] = a[d]);
|
|
2609
|
+
if (l && l.defaultProps) for (d in a = l.defaultProps, a) m[d] === void 0 && (m[d] = a[d]);
|
|
2610
|
+
return { $$typeof: r, type: l, key: f, ref: z, props: m, _owner: i.current };
|
|
2599
2611
|
}
|
|
2600
|
-
return
|
|
2612
|
+
return be.Fragment = n, be.jsx = c, be.jsxs = c, be;
|
|
2601
2613
|
}
|
|
2602
2614
|
Mt.exports = Gr();
|
|
2603
|
-
var
|
|
2615
|
+
var Ce = Mt.exports, Kr = Object.defineProperty, qr = (e, r, n) => r in e ? Kr(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Ee = (e, r, n) => (qr(e, typeof r != "symbol" ? r + "" : r, n), n);
|
|
2604
2616
|
const Jr = {
|
|
2605
2617
|
stringify: (e) => e,
|
|
2606
2618
|
parse: (e) => e
|
|
@@ -2624,7 +2636,7 @@ const Jr = {
|
|
|
2624
2636
|
}, rn = {
|
|
2625
2637
|
stringify: (e) => JSON.stringify(e),
|
|
2626
2638
|
parse: (e) => JSON.parse(e)
|
|
2627
|
-
},
|
|
2639
|
+
}, Ae = {
|
|
2628
2640
|
string: Jr,
|
|
2629
2641
|
number: Qr,
|
|
2630
2642
|
boolean: en,
|
|
@@ -2637,40 +2649,40 @@ function nn(e) {
|
|
|
2637
2649
|
(r, n, o) => `${n}-${o.toLowerCase()}`
|
|
2638
2650
|
);
|
|
2639
2651
|
}
|
|
2640
|
-
const
|
|
2652
|
+
const Ne = Symbol.for("r2wc.render"), Le = Symbol.for("r2wc.connected"), oe = Symbol.for("r2wc.context"), ee = Symbol.for("r2wc.props");
|
|
2641
2653
|
function on(e, r, n) {
|
|
2642
2654
|
var o, i, u;
|
|
2643
2655
|
r.props || (r.props = e.propTypes ? Object.keys(e.propTypes) : []);
|
|
2644
|
-
const c = Array.isArray(r.props) ? r.props.slice() : Object.keys(r.props), l = {},
|
|
2656
|
+
const c = Array.isArray(r.props) ? r.props.slice() : Object.keys(r.props), l = {}, a = {}, w = {};
|
|
2645
2657
|
for (const m of c) {
|
|
2646
2658
|
l[m] = Array.isArray(r.props) ? "string" : r.props[m];
|
|
2647
2659
|
const f = nn(m);
|
|
2648
|
-
|
|
2660
|
+
a[m] = f, w[f] = m;
|
|
2649
2661
|
}
|
|
2650
2662
|
class d extends HTMLElement {
|
|
2651
2663
|
constructor() {
|
|
2652
|
-
super(),
|
|
2664
|
+
super(), Ee(this, o, !0), Ee(this, i), Ee(this, u, {}), Ee(this, "container"), r.shadow ? this.container = this.attachShadow({
|
|
2653
2665
|
mode: r.shadow
|
|
2654
2666
|
}) : this.container = this, this[ee].container = this.container;
|
|
2655
2667
|
for (const f of c) {
|
|
2656
|
-
const
|
|
2657
|
-
|
|
2668
|
+
const z = a[f], v = this.getAttribute(z), g = l[f], I = g ? Ae[g] : null;
|
|
2669
|
+
I != null && I.parse && v && (this[ee][f] = I.parse(v, z, this));
|
|
2658
2670
|
}
|
|
2659
2671
|
}
|
|
2660
2672
|
static get observedAttributes() {
|
|
2661
|
-
return Object.keys(
|
|
2673
|
+
return Object.keys(w);
|
|
2662
2674
|
}
|
|
2663
2675
|
connectedCallback() {
|
|
2664
|
-
this[Le] = !0, this[
|
|
2676
|
+
this[Le] = !0, this[Ne]();
|
|
2665
2677
|
}
|
|
2666
2678
|
disconnectedCallback() {
|
|
2667
2679
|
this[Le] = !1, this[oe] && n.unmount(this[oe]), delete this[oe];
|
|
2668
2680
|
}
|
|
2669
|
-
attributeChangedCallback(f,
|
|
2670
|
-
const
|
|
2671
|
-
|
|
2681
|
+
attributeChangedCallback(f, z, v) {
|
|
2682
|
+
const g = w[f], I = l[g], x = I ? Ae[I] : null;
|
|
2683
|
+
g in l && x != null && x.parse && v && (this[ee][g] = x.parse(v, f, this), this[Ne]());
|
|
2672
2684
|
}
|
|
2673
|
-
[(o = Le, i = oe, u = ee,
|
|
2685
|
+
[(o = Le, i = oe, u = ee, Ne)]() {
|
|
2674
2686
|
this[Le] && (this[oe] ? n.update(this[oe], this[ee]) : this[oe] = n.mount(
|
|
2675
2687
|
this.container,
|
|
2676
2688
|
e,
|
|
@@ -2679,28 +2691,28 @@ function on(e, r, n) {
|
|
|
2679
2691
|
}
|
|
2680
2692
|
}
|
|
2681
2693
|
for (const m of c) {
|
|
2682
|
-
const f =
|
|
2694
|
+
const f = a[m], z = l[m];
|
|
2683
2695
|
Object.defineProperty(d.prototype, m, {
|
|
2684
2696
|
enumerable: !0,
|
|
2685
2697
|
configurable: !0,
|
|
2686
2698
|
get() {
|
|
2687
2699
|
return this[ee][m];
|
|
2688
2700
|
},
|
|
2689
|
-
set(
|
|
2690
|
-
this[ee][m] =
|
|
2691
|
-
const
|
|
2692
|
-
if (
|
|
2693
|
-
const
|
|
2694
|
-
this.getAttribute(f) !==
|
|
2701
|
+
set(v) {
|
|
2702
|
+
this[ee][m] = v;
|
|
2703
|
+
const g = z ? Ae[z] : null;
|
|
2704
|
+
if (g != null && g.stringify) {
|
|
2705
|
+
const I = g.stringify(v, f, this);
|
|
2706
|
+
this.getAttribute(f) !== I && this.setAttribute(f, I);
|
|
2695
2707
|
} else
|
|
2696
|
-
this[
|
|
2708
|
+
this[Ne]();
|
|
2697
2709
|
}
|
|
2698
2710
|
});
|
|
2699
2711
|
}
|
|
2700
2712
|
return d;
|
|
2701
2713
|
}
|
|
2702
2714
|
function sn(e, r, n) {
|
|
2703
|
-
const o =
|
|
2715
|
+
const o = Pt(e), i = ye.createElement(r, n);
|
|
2704
2716
|
return o.render(i), {
|
|
2705
2717
|
root: o,
|
|
2706
2718
|
ReactComponent: r
|
|
@@ -2728,9 +2740,9 @@ function dn(e) {
|
|
|
2728
2740
|
r[cn(n)] = o.toString();
|
|
2729
2741
|
}), r;
|
|
2730
2742
|
}
|
|
2731
|
-
const un = (e) => /* @__PURE__ */
|
|
2732
|
-
/* @__PURE__ */
|
|
2733
|
-
/* @__PURE__ */
|
|
2743
|
+
const un = (e) => /* @__PURE__ */ Ce.jsxs(Ce.Fragment, { children: [
|
|
2744
|
+
/* @__PURE__ */ Ce.jsx("style", { children: Br }),
|
|
2745
|
+
/* @__PURE__ */ Ce.jsx(Wr, { ...e })
|
|
2734
2746
|
] }), mn = Tt(un, {
|
|
2735
2747
|
shadow: "open",
|
|
2736
2748
|
props: {
|
|
@@ -2753,10 +2765,10 @@ const un = (e) => /* @__PURE__ */ Ne.jsxs(Ne.Fragment, { children: [
|
|
|
2753
2765
|
}
|
|
2754
2766
|
});
|
|
2755
2767
|
function fn() {
|
|
2756
|
-
return !!customElements.get(
|
|
2768
|
+
return !!customElements.get(Fe) && !!customElements.get(De);
|
|
2757
2769
|
}
|
|
2758
2770
|
function gn() {
|
|
2759
|
-
customElements.define(
|
|
2771
|
+
customElements.define(Fe, mn), customElements.define(De, hn);
|
|
2760
2772
|
}
|
|
2761
2773
|
function Vt() {
|
|
2762
2774
|
fn() || gn();
|
|
@@ -2771,37 +2783,34 @@ const wn = ({
|
|
|
2771
2783
|
onHotspotsOn: u,
|
|
2772
2784
|
onHotspotsOff: c,
|
|
2773
2785
|
onGalleryOpen: l,
|
|
2774
|
-
onGalleryClose:
|
|
2775
|
-
...
|
|
2786
|
+
onGalleryClose: a,
|
|
2787
|
+
...w
|
|
2776
2788
|
}) => {
|
|
2777
|
-
const d = pn(
|
|
2778
|
-
return
|
|
2779
|
-
const m =
|
|
2780
|
-
[nt
|
|
2781
|
-
[ot
|
|
2782
|
-
[st
|
|
2783
|
-
[at
|
|
2784
|
-
[it
|
|
2785
|
-
[lt
|
|
2786
|
-
[ct
|
|
2787
|
-
[dt
|
|
2788
|
-
[ut
|
|
2789
|
-
|
|
2790
|
-
return
|
|
2791
|
-
if (
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2789
|
+
const d = pn(w);
|
|
2790
|
+
return Z(() => {
|
|
2791
|
+
const m = w.eventPrefix ?? mt, f = (g) => `${m}${g}`, z = {
|
|
2792
|
+
[nt]: e,
|
|
2793
|
+
[ot]: r,
|
|
2794
|
+
[st]: n,
|
|
2795
|
+
[at]: o,
|
|
2796
|
+
[it]: i,
|
|
2797
|
+
[lt]: u,
|
|
2798
|
+
[ct]: c,
|
|
2799
|
+
[dt]: l,
|
|
2800
|
+
[ut]: a
|
|
2801
|
+
}, v = /* @__PURE__ */ new Map();
|
|
2802
|
+
return Object.entries(z).forEach(([g, I]) => {
|
|
2803
|
+
if (!I)
|
|
2804
|
+
return;
|
|
2805
|
+
const x = f(g), T = (b) => I(b.detail);
|
|
2806
|
+
v.set(x, T), document.addEventListener(x, T);
|
|
2795
2807
|
}), () => {
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
const z = f(x);
|
|
2799
|
-
document.removeEventListener(z, p);
|
|
2800
|
-
}
|
|
2808
|
+
v.forEach((g, I) => {
|
|
2809
|
+
document.removeEventListener(I, g);
|
|
2801
2810
|
});
|
|
2802
2811
|
};
|
|
2803
2812
|
}, [
|
|
2804
|
-
|
|
2813
|
+
w.eventPrefix,
|
|
2805
2814
|
e,
|
|
2806
2815
|
r,
|
|
2807
2816
|
n,
|
|
@@ -2810,7 +2819,7 @@ const wn = ({
|
|
|
2810
2819
|
u,
|
|
2811
2820
|
c,
|
|
2812
2821
|
l,
|
|
2813
|
-
|
|
2822
|
+
a
|
|
2814
2823
|
]), /* @__PURE__ */ rt.jsx("cc-webplayer", { ...d });
|
|
2815
2824
|
};
|
|
2816
2825
|
Vt();
|
|
@@ -2827,7 +2836,7 @@ export {
|
|
|
2827
2836
|
ct as EVENT_HOTSPOTS_OFF,
|
|
2828
2837
|
lt as EVENT_HOTSPOTS_ON,
|
|
2829
2838
|
De as WEB_PLAYER_ICON_WC_TAG,
|
|
2830
|
-
|
|
2839
|
+
Fe as WEB_PLAYER_WC_TAG,
|
|
2831
2840
|
wn as WebPlayer,
|
|
2832
2841
|
bn as WebPlayerIcon
|
|
2833
2842
|
};
|