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