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