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